A LINEAR-TIME ALGORITHM FOR FINDING MINIMAL PERFECT HASH FUNCTIONS

Citation
Zj. Czech et Bs. Majewski, A LINEAR-TIME ALGORITHM FOR FINDING MINIMAL PERFECT HASH FUNCTIONS, Computer journal, 36(6), 1993, pp. 579-587
Citations number
34
Categorie Soggetti
Computer Sciences","Computer Applications & Cybernetics
Journal title
ISSN journal
00104620
Volume
36
Issue
6
Year of publication
1993
Pages
579 - 587
Database
ISI
SICI code
0010-4620(1993)36:6<579:ALAFFM>2.0.ZU;2-P
Abstract
A new algorithm for finding minimal perfect hash functions (MPHF) is p roposed. The algorithm given three pseudorandom functions h0, h1 and h 2, searches for a function g such that F(w) = (h0(w) + g(h1(w)) + g(h2 (w))) mod m is a MPHF, where m is a number of input words. The algorit hm involves generation of random bipartite graphs and runs in linear t ime. The hash function generated is represented by using 2m + O(1) mem ory words of log m bits each. The empirical observations show that the algorithm runs very fast in practice.