Minimal perfect hash functions (MPHFs) are data structures that map a set of 𝑛 keys to $\{1, \ldots, n\}$ bijectively. To store them, at least $n \cdot \log_2 e \approx 1.4427n$ bits are necessary. Previous MPHFs reach as low as 1.489 bits per key by finding seeded hash functions that split the keys into two sets of equal size repeatedly and handling a base case. However, storing all those seeds individually - even with an entropy optimal encoding - wastes up to $\log_2 e$ bits per split. We introduce Symbiotic Random Search (SRS) which solves this problem by utilizing a special search pattern. By bounding the number of attempts to find a splitting hash function in one go and backtracking if none was found, SRS creates a combined encoding of all splitting seeds. SRS can waste arbitrarily little $\omega > 0$ bits per split on average. The expected work required for SRS to find such an encoding is linear in $1/\omega$. SRS can be applied whenever a data structure shall be found by trying candidates, this search can be performed step by step and using little space is a goal. SRS-RecSplit - SRS applied to RecSplit - reaches a space usage of 1.442 91 bits per key in practice with reasonable construction time - just 0.000 21 bits overhead. For similar construction time, it reaches as low as 1/192 the space overhead of the previous record holder. For a similar overhead, SRS-RecSplit’s construction is up to 101 times faster. Furthermore, SRS-RecSplit’s theoretical construction time being linear in the inverse overhead makes it reach even smaller overheads more easily than its competitors, which have an exponential relationship between these metrics.
| Related KIT institution | Institute of Theoretical Informatics (ITI) |
|---|---|
| Language | English |
| KITopen ID | 1000177814 |
| Publisher | Karlsruher Institut fĂĽr Technologie (KIT) |
| Size | 67 |
| Supervisors | Stefan Walzer Hans-Peter Lehmann |
| Referenced in | OpenAlex |
| Sustainable Development Goals (SDGs) |