| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Perfect Hashing |
Hi, Ross.
RC>Does anybody have any information on perfect hashing functions?
RC>I gather that the general idea is to take a finite set of
RC>permissible inputs and generate a function which can efficiently
RC>map any member of the set to a unique integer in the range 0 <= n < #S,
RC>where #S is the number of members of the set of permissible inputs.
RC>Any suggestions, code or references to the literature appreciated.
Yes, that's the general idea. Selecting the general form of the hash
function is still your responsibility, but there are algorithms which
can search for solutions, given that.
For example, in lookups for words (say the reserved word list in a
programming language), you could use
hash value := word length + associated value for first letter
+ associated value for last letter.
An algorithm can find values to give a "minimal perfect hash function".
References - only some old ones, I'm afraid ...
Richard J. Chichelli in Communications of the ACM, Jan 80
Knuth volume 3
B.A.Shiel in Comm. ACM Nov 78
R.Sprugnoli in Comm. ACM Nov 77
There's sure to be more recent ones, but I don't know of them. I have
implemented one based on the Chichelli paper.
Regards, FIM.
* SLMR 2.1a * Backup not found: (A)bort (R)etry (P)anic
--- Maximus 2.01wb
* Origin: Sydney PC Users Group - COMPAQ BBS (3:712/505)SEEN-BY: 3/1 2 4 5 6 54/54 99 711/401 430 807 808 809 934 712/218 505 506 515 SEEN-BY: 712/517 537 618 623 627 700 704 719 713/306 888 714/906 @PATH: 712/505 623 54/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.