A letter oriented minimal perfect hashing function
- 1 September 1982
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 17 (9) , 18-27
- https://doi.org/10.1145/947955.947957
Abstract
Cichelli has presented a simple method for constructing minimal perfect hash tables of identifiers for small static word sets. The hash function value for a word is computed as the sum of the length of the word and the values associated with the first and last letters of the word. Cichelli's backtracking algorithm considers one word at a time and performs an exhaustive search to find the letter value assignments. In considering heuristics to improve his algorithm we were led to develop a letter oriented algorithm that handles more than one word per iteration and that frequently outperforms Cichelli's. We also investigate the impact of relaxing the minimality requirement and allowing blank spaces in the constructed table. This substantially reduced the execution time of the algorithm. This relaxation and partitioning data sets are shown to be two useful schemes for handling large data sets.Keywords
This publication has 3 references indexed in Scilit:
- Reciprocal hashingCommunications of the ACM, 1981
- Technical Response to: On Cichelli's Minimal Perfect Hash Functions MethodCommunications of the ACM, 1980
- Minimal perfect hash functions made simpleCommunications of the ACM, 1980