A New Practical Algorithm for the Construction of a Perfect Hash Function

M. Atici 1, D. R. Stinson2, R. Wei 2
1International Computer Institute University of Ege Izmir, Turkey
2Department of Combinatorics and Optimization University of Waterloo Waterloo Ontario, N2L 3G1, Canada

Abstract

A perfect hash function for a subset \(X\) of \(\{0,1,\ldots,n-1\}\) is an injection \(h\) from \(X\) into the set \(\{0,1,\ldots,m-1\}\).
Perfect hash functions are useful for the compact storage and fast retrieval of frequently used objects. In this paper, we discuss some new practical algorithms for efficient construction of perfect hash functions, and we analyze their complexity and program size.