PTHash: Revisiting FCH Minimal Perfect Hashing
Abstract
Given a set 𝑆 of 𝑛 distinct keys, a function 𝑓 that bijectively maps the keys of 𝑆 into the range 0, . . . , 𝑛 -1 is called a minimal perfect hash function for 𝑆. Algorithms that find such functions when 𝑛 is large and retain constant evaluation time are of practical interest; for instance, search engines and databases typically use minimal perfect hash functions to quickly assign identifiers to static sets of variable-length keys such as strings. The challenge is to design an algorithm which is efficient in three different aspects: time to find 𝑓 (construction time), time to evaluate 𝑓 on a key of 𝑆 (lookup time), and space of representation for 𝑓 . Several algorithms have been proposed to trade-off between these aspects. In 1992, Fox, Chen, and Heath (FCH) presented an algorithm at SIGIR providing very fast lookup evaluation. However, the approach received little attention because of its large construction time and higher space consumption compared to other subsequent techniques. Almost thirty years later we revisit their framework and present an improved algorithm that scales well to large sets and reduces space consumption altogether, without compromising the lookup time. We conduct an extensive experimental assessment and show that the algorithm finds functions that are competitive in space with state-of-the art techniques and provide 2 -4× better lookup time.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers2
Related papers
- Constructing Minimal Perfect Hash Functions Using SAT TechnologySean A. Weaver, Marijn HeuleAAAI 2020 · 6 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
- MapEmbed: Perfect Hashing with High Load Factor and Fast UpdateYuhan Wu, Zirui Liu, Xiang Yu, Jie Gui et al.KDD 2021 · 14 citations
- An extendable data structure for incremental stable perfect hashingIoana Oriana Bercea, Guy EvenSTOC 2022 · 2 citations
