中文

现代最小完美哈希:综述

数据结构与算法 2026-02-06 v3

摘要

给定由 n 个 key 组成的 set S,完美哈希函数 for S 将 S 中的 key map 到前 m ≥ n 的整数且不产生碰撞。It may return an arbitrary result for any key not in S and is called minimal if m = n。最重要的参数是 its space consumption, construction time, and query time。Years of research now enable modern perfect hash functions to be extremely fast to query, very space-efficient, and scale to billions of keys。Different approaches give different trade-offs between these aspects。For example, the smallest constructions get within 0.1% of the space lower bound of log_2(e) bits per key。Others are particularly fast to query, requiring only one memory access。Perfect hashing has many applications, for example to avoid collision resolution in static hash tables, and is used in databases, bioinformatics, and stringology。Since the last comprehensive survey in 1997, significant progress has been made。This survey covers the latest developments and provides a starting point for getting familiar with the topic。Additionally, our extensive experimental evaluation can serve as a guide to select a perfect hash function for use in applications。

关键词

引用

@article{arxiv.2506.06536,
  title  = {Modern Minimal Perfect Hashing: A Survey},
  author = {Hans-Peter Lehmann and Thomas Mueller and Rasmus Pagh and Giulio Ermanno Pibiri and Peter Sanders and Sebastiano Vigna and Stefan Walzer},
  journal= {arXiv preprint arXiv:2506.06536},
  year   = {2026}
}

备注

Version 3 includes brief measurements of cache faults