Perfect hash for 32 bit integers

Does anyone know of tools / algorithms of perfect hashing of 32 bit integers? The application would be to do fast dispatch based on a fixed set locations in a binary.

--
Pertti
Reply to
Pertti Kellomäki
Loading thread data ...

What's wrong with those linked to by the wikipedia entry for "perfect hash function"?

Reply to
Hans-Bernhard Bröker

Nothing really, I just somehow managed to miss the hashing of integers in the first link. Thanks!

--
Pertti
Reply to
Pertti Kellomäki

Look for gperf-3.0.1.tar.gz, the GNU perfect hash generator. That is somewhat old, so the revision may be considerably later. That is a considerable expansion of something simple generated 30 to 40 years ago in the Pascal Users Group.

--
 [mail]: Chuck F (cbfalconer at maineline dot net) 
 [page]: 
            Try the download section.


** Posted from http://www.teranews.com **
Reply to
CBFalconer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.