A practical minimal perfect hashing method

  • Authors:
  • Fabiano C. Botelho;Yoshiharu Kohayakawa;Nivio Ziviani

  • Affiliations:
  • Dept. of Computer Science, Federal Univ. of Minas Gerais, Belo Horizonte, Brazil;Dept. of Computer Science, Univ. of São Paulo, São Paulo, Brazil;Dept. of Computer Science, Federal Univ. of Minas Gerais, Belo Horizonte, Brazil

  • Venue:
  • WEA'05 Proceedings of the 4th international conference on Experimental and Efficient Algorithms
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

We propose a novel algorithm based on random graphs to construct minimal perfect hash functions h. For a set of n keys, our algorithm outputs h in expected time O(n). The evaluation of h(x) requires two memory accesses for any key x and the description of h takes up 1.15n words. This improves the space requirement to 55% of a previous minimal perfect hashing scheme due to Czech, Havas and Majewski. A simple heuristic further reduces the space requirement to 0.93n words, at the expense of a slightly worse constant in the time complexity. Large scale experimental results are presented.