Abstract
A method is presented for computing machine independent, minimal perfect hash functions of the form: hash value ← key length + the associated value of the key's first character + the associated value of the key's last character. Such functions allow single probe retrieval from minimally sized tables of identifier lists. Application areas include table lookup for reserved words in compilers and filtering high frequency words in natural language processing. Functions for Pascal's reserved words, Pascal's predefined identifiers, frequently occurring English words, and month abbreviations are presented as examples.
- 1 Knuth, D.E. The Art of Computing Programming. Volume 3: Sorting and Searching. Addison-Wesley, Reading, Mass., 1973, pp. 506-507. Google ScholarDigital Library
- 2 Sheil, B.A. Median split trees: A fast lookup technique for frequently occurring keys. Comm. ACM 21, 11 (Nov. 1978), 947-958. Google ScholarDigital Library
- 3 Sprugnoli, R. Perfect hashing functions: A single probe retrieving method for static sets. Comm. ACM 20, I l (Nov. 1977), 841-850. Google ScholarDigital Library
Index Terms
- Minimal perfect hash functions made simple
Recommendations
Perfect hashing functions: a single probe retrieving method for static sets
A refinement of hashing which allows retrieval of an item in a static table with a single probe is considered. Given a set I of identifiers, two methods are presented for building, in a mechanical way, perfect hashing functions, i.e. functions ...
Improving the access time for random access files
Clustering in the key set is decreased by smoothing the key-to-address transformation, and by adding shadow buckets to an open chaining file. The keys are pre-hashed before the address division, to remove the effect of sequential properties in the key ...
Comments