Perfect hashing using sparse matrix packing

Marshall D Brain, Alan L Tharp
1990 Information Systems  
This article presents a simple algorithm for packing sparse 2-D arrays into minimal I-D arrays in O(r?) time. Retrieving an element from the packed I-D array is O(l). This packing algorithm is then applied to create minimal perfect hashing functions for large word lists. Many existing perfect hashing algorithms process large word lists by segmenting them into several smaller lists. The perfect hashing function described in this article has been used to create minimal perfect hashing functions
more » ... r unsegmented word sets of up to 5000 words. Compared with other current algorithms for perfect hashing. this algorithm is a significant improvement in terms of both time and space efficiency.
doi:10.1016/0306-4379(90)90001-6 fatcat:if34q3jf35ab5jnjogs2fb7q7i