PTHash: Revisiting FCH Minimal Perfect Hashing
Giulio Ermanno Pibiri, Roberto Trani
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 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.
Cited by top-tier papers2
- Extendible RDMA-Based Remote Memory KV Store with Dynamic Perfect Hashing IndexZirui Liu, Xian Niu, Wei Zhou, Yisen Hong et al.ICDE 2025 · 1 citation
- RISK: Efficiently Processing Rich Spatial-Keyword Queries on Encrypted Geo-Textual DataZhen Lv, Cong Cao, Hongwei Huo, Jiangtao Cui et al.ICDE 2026
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
