Tight Bounds for Monotone Minimal Perfect Hashing
arXiv:2207.10556
Abstract
The monotone minimal perfect hash function (MMPHF) problem is the following indexing problem. Given a set of distinct keys from a universe of size , create a data structure that answers the following query: \[ RankOp(q) = \text{rank of } q \text{ in } S \text{ for all } q\in S ~\text{ and arbitrary answer otherwise.} \] Solutions to the MMPHF problem are in widespread use in both theory and practice. The best upper bound known for the problem encodes in bits and performs queries in time. It has been an open problem to either improve the space upper bound or to show that this somewhat odd looking bound is tight. In this paper, we show the latter: specifically that any data structure (deterministic or randomized) for monotone minimal perfect hashing of any collection of elements from a universe of size requires expected bits to answer every query correctly. We achieve our lower bound by defining a graph where the nodes are the possible inputs and where two nodes are adjacent if they cannot share the same . The size of is then lower bounded by the log of the chromatic number of . Finally, we show that the fractional chromatic number (and hence the chromatic number) of is lower bounded by .