PofoliaShared via Pofolia

ACM Transactions on Algorithms· 2026Q1

PHOBIC: Perfect Hashing with Optimized Bucket Sizes and Interleaved Coding

Stefan Hermann, Hans‐Peter Lehmann, Giulio Ermanno Pibiri, Peter W. Sanders et al.

Short summary

PHOBIC, a new minimal perfect hash function (MPHF) technique, achieves 0.17 bits/key greater space efficiency than PTHash for the same query time and construction throughput.

AI-generated from the title and abstract; the full text is not read.

Key points

  • PHOBIC optimizes bucket sizes and uses interleaved coding for minimal perfect hash functions (MPHF).
  • The technique improves construction throughput for space-efficient configurations.
  • PHOBIC offers a 0.17 bits/key space efficiency gain over PTHash at comparable query times and construction speeds.
  • A GPU implementation achieves 2.17 bits/key construction in 28 ns/key, with 37 ns/key CPU query times.

AI-generated from the title and abstract; the full text is not read.

Abstract

A minimal perfect hash function (or MPHF) maps a set of \(n\) keys to \([n]:=\{1,\ldots,n\}\) without collisions. Such functions find widespread application e.g. in bioinformatics and databases. In this paper we revisit PTHash – a construction technique particularly designed for fast queries. PTHash distributes the input keys into small buckets and, for each bucket, it searches for a hash function seed that places its keys in the output domain without collisions. The collection of all seeds is then stored in a compressed way. Since the first buckets are easier to place, buckets are considered in non-increasing order of size. Additionally, PTHash heuristically produces an imbalanced distribution of bucket sizes by distributing 60% of the keys into 30% of the buckets. Our main contribution is to characterize, up to lower order terms, an optimal choice for the expected bucket sizes, improving construction throughput for space efficient configurations both in theory and practice. Further contributions include a new encoding scheme for seeds that works across partitions of the data structure and a GPU parallelization. We call our technique PHOBIC – Perfect Hashing with Optimized Bucket sizes and Interleaved Coding. Compared to PTHash, PHOBIC is 0.17 bits/key more space efficient for same query time and construction throughput. For a configuration with fast queries, our GPU implementation can construct an MPHF at 2.17 bits/key in 28 ns/key, which can be queried in 37 ns on the CPU.

The authors' abstract, as published at the source. ACM Transactions on Algorithms, 2026 · DOI ↗

TakeawaysPremium
Ask the paperFree account

Continue with a free account

Ask the paper: 3 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.

Continue free on the web

Sign in with Google or Apple; no card needed. You come back to this paper.

On your phone:

Field: Artificial Intelligence

Artificial IntelligenceComputer Science