Recsplit Minimal Perfect Hashing Via Recursive Splitting
Esposito Emmanuel, Graf Thomas Mueller, Vigna Sebastiano. Arxiv 2019
[Paper]
ARXIV
Independent
A minimal perfect hash function bijectively maps a key set out of a
universe into the first natural numbers. Minimal perfect hash
functions are used, for example, to map irregularly-shaped keys, such as
string, in a compact space so that metadata can then be simply stored in an
array. While it is known that just bits per key are necessary to store a
minimal perfect function, no published technique can go below bits per key
in practice. We propose a new technique for storing minimal perfect hash
functions with expected linear construction time and expected constant lookup
time that makes it possible to build for the first time, for example,
structures which need bits per key, that is, within % of the lower
bound, in less than ms per key. We show that instances of our construction
are able to simultaneously beat the construction time, space usage and lookup
time of the state-of-the-art data structure reaching bits per key.
Moreover, we provide parameter choices giving structures which are competitive
with alternative, larger-size data structures in terms of space and lookup
time. The construction of our data structures can be easily parallelized or
mapped on distributed computational units (e.g., within the MapReduce
framework), and structures larger than the available RAM can be directly built
in mass storage.
Similar Work