Perfect hashing using sparse matrix packing

作者:

Highlights:

摘要

This article presents a simple algorithm for packing sparse 2-D arrays into minimal 1-D arrays in O(r2) time. Retrieving an element from the packed 1-D array is O(1). 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 for 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.

论文关键词:Perfect hashing,minimal perfect hashing,hashing,sparse matrix packing

论文评审过程:Received 4 April 1989, Available online 17 June 2003.

论文官网地址:https://doi.org/10.1016/0306-4379(90)90001-6