Abstract
This paper presents a backtracking method for constructing perfect hash functions from a given set of mapping functions. A hash indicator table is employed in the composition. By the nature of backtracking, the method can always find a perfect hash function when such a function does exist according to the composing scheme. Simulation results show that the probability of getting a perfect hash function by the backtracking method is much higher than by the single-pass and multipass methods previously proposed.
Similar content being viewed by others
References
M. R. Anderson and M. G. Anderson,Comments on perfect hashing functions: A single probe retrieving method for static sets. Comm. ACM 22, 2 (Feb. 1979), 104.
J. R. Bitner and E. M. Reingold,Backtrack programming techniques. Comm. ACM 18, 11 (Nov. 1975), 651–656.
R. J. Chichelli,Minimal perfect hash functions made simple. Comm. ACM 23, 1 (Jan. 1980), 17–19.
C. R. Cook and R. R. Oldehoeft,A letter oriented minimal perfect hashing function. ACM Trans. on SIGNPLAN NOTICES 17, 9 (Sept. 1982), 18–27.
C. C. Chang,The study of an ordered minimal perfect hashing scheme. Comm. ACM 27, 4 (April 1984), 384–387.
M. W. Du, T. M. Hsieh, K. F. Jea and D. W. Shieh,The study of a new perfect hash scheme. IEEE Trans. on Software Engineering, SE-9, 3 (May 1983), 305–313.
S. W. Goloma and L. D. Baumert,Backtrack programming. JACM 12, 4 (1965), 516–524.
E. Horowitz and S. Sahni,Fundamentals of Computer Algorithms. Computer Science Press, INC., 1978.
G. Jaeschke and G. Osterburg,On Chichelli's minimal perfect hash functions method. Comm. ACM 23, 12 (Dec. 1980), 728–729.
G. Jaeschke,Reciprocal hashing: A method for generating minimal perfect hashing functions. Comm. ACM 24, 12 (Dec. 1981), 829–833.
D. E. Knuth,The Art of Computer Programming, Vol. 3, Sorting and Searching. Addison-Wesley, Reading, Mass., 1973.
W. D. Maurer,An improved hash code for scatter storage. Comm. ACM 11, 1 (Jan. 1968), 35–37.
W. D. Maurer and T. G. Lewis,Hash table method. Computing Surveys 7, 1 (Mar. 1975), 5–19.
R. Morris,Scatter storage techniques. Comm. ACM 11, 1 (Jan. 1968), 38–44.
D. G. Severance,Identifier search mechanisms: A survey and generalized model. Computing Surveys 6, (Sep. 1974), 175–194.
R. Sprugnoli,Perfect hashing, functions: A single probe retrieving method for static sets. Comm. ACM 20, 11 (Nov. 1977), 841–850.
W. P. Yang, M. W. Du and J. C. Tsay,Single-pass perfect hashing for data storage and retrieval. Proc. 1983 Conf. on Information Sciences and Systems, Baltimore, Maryland, Mar. 1983, 470–476.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Yang, W.P., Du, M.W. A backtracking method for constructing perfect hash functions from a set of mapping functions. BIT 25, 148–164 (1985). https://doi.org/10.1007/BF01934995
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01934995