Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
A polynomial time generator for minimal perfect hash functions
Sager T. Communications of the ACM28 (5):523-532,1985.Type:Article
Date Reviewed: Jun 1 1986

Minimal perfect hashing functions have wide application. The unappealing aspect of the solution given here is that the functions h0,h1,h2 and g that are the basis for the hashing function F, i.e.,

F(w) = (h0(w) + g:.M- C2 °h1(w) + g2 °h2(w)) mod n

have to be guessed at. The author suggests (arbitrarily?):

  • :Ch:A:0I0(:Cw:A)(length(w) + &Sgr; ord(w[i]), i- = 1 to length (w) by 3))

  • h1(w) = (&Sgr; ord(w[i]), i := 1 to length (w) by 2) mod r

  • h2(w) = (&Sgr; ord(w[i]), i := 2 to length (w) by 2) mod r + r

where r = smallest power of 2 greater than card (w)/3. (The function g is found by the algorithm; one with appropriate properties always exists.)

Sager says that the above choices worked well in most cases (it has been used successfully on sets of cardinality up to 512). An example of when it did not work is for the 40 predeclared identifiers of PASCAL. However, since the function choices have few restrictions, another set of choices did work. This current work is a direct outgrowth of Cichelli’s algorithm [1].

Reviewer:  T. Brown Review #: CR109597
1) Cichelli, R. J.Minimal perfect hash functions made simple, Commun. ACM 23 (1980), 728–729.
Bookmark and Share
 
Hash-Table Representations (E.2 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Hash-Table Representations": Date
On the use of extendible hashing without hashing
Bechtold U., Kuspert K. Information Processing Letters 19(1): 21-26, 1984. Type: Article
Mar 1 1985
Analysis of new variants of coalesced hashing
Chen W., Vitter J. (ed) ACM Transactions on Database Systems 9(4): 616-645, 1984. Type: Article
Jun 1 1985
A backtracking method for constructing perfect hash functions from a set of mapping functions
Yang W. BIT 25(1): 148-164, 1985. Type: Article
Dec 1 1985
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy