Constructing Minimal Perfect Hash Functions Using SAT Technology
Sean A. Weaver, Marijn Heule
Abstract
Minimal perfect hash functions (MPHFs) are used to provide efficient access to values of large dictionaries (sets of key-value pairs). Discovering new algorithms for building MPHFs is an area of active research, especially from the perspective of storage efficiency. The information-theoretic limit for MPHFs is 1/ln 2 ≈ 1.44 bits per key. The current best practical algorithms range between 2 and 4 bits per key. In this article, we propose two SAT-based constructions of MPHFs. Our first construction yields MPHFs near the information-theoretic limit. For this construction, current state-of-the-art SAT solvers can handle instances where the dictionaries contain up to 40 elements, thereby outperforming the existing (brute-force) methods. Our second construction uses XORSAT filters to realize a practical approach with long-term storage of approximately 1.83 bits per key.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Related papers
- PTHash: Revisiting FCH Minimal Perfect HashingGiulio Ermanno Pibiri, Roberto TraniSIGIR 2021 · 34 citations
- Meep Hashing: Ultrafast and Compact Minimal Perfect Hashing for Practical Large-Scale Lookup SystemsShouqian Shi, Diancheng Luo, Jacques Liao, Yi Liu et al.SIGMOD 2026
- Tight Bounds for Monotone Minimal Perfect HashingSepehr Assadi, Martin Farach-Colton, William KuszmaulSODA 2023 · 3 citations
- Sphinx: A Succinct Perfect Hash Index for x86Sajad Faghfoor Maghrebi, Niv DayanVLDB 2025 · 2 citations
- MapEmbed: Perfect Hashing with High Load Factor and Fast UpdateYuhan Wu, Zirui Liu, Xiang Yu, Jie Gui et al.KDD 2021 · 14 citations
