Engineering Minimal k-Perfect Hash Functions

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hermann, Stefan, Kirmayer, Sebastian, Lehmann, Hans-Peter, Sanders, Peter, Walzer, Stefan
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913922581266432
author Hermann, Stefan
Kirmayer, Sebastian
Lehmann, Hans-Peter
Sanders, Peter
Walzer, Stefan
author_facet Hermann, Stefan
Kirmayer, Sebastian
Lehmann, Hans-Peter
Sanders, Peter
Walzer, Stefan
contents Given a set S of n keys, a k-perfect hash function (kPHF) is a data structure that maps the keys to the first m integers, where each output integer can be hit by at most k input keys. When m=n/k, the resulting function is called a minimal k-perfect hash function (MkPHF). Applications of kPHFs can be found in external memory data structures or to create efficient 1-perfect hash functions, which in turn have a wide range of applications from databases to bioinformatics. Several papers from the 1980s look at external memory data structures with small internal memory indexes. However, actual k-perfect hash functions are surprisingly rare, and the area has not seen a lot of research recently. At the same time, recent research in 1-perfect hashing shows that there is a lack of efficient kPHFs. In this paper, we revive the area of k-perfect hashing, presenting four new constructions. Our implementations simultaneously dominate older approaches in space consumption, construction time, and query time. We see this paper as a possible starting point of an active line of research, similar to the area of 1-perfect hashing.
format Preprint
id arxiv_https___arxiv_org_abs_2504_20001
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Engineering Minimal k-Perfect Hash Functions
Hermann, Stefan
Kirmayer, Sebastian
Lehmann, Hans-Peter
Sanders, Peter
Walzer, Stefan
Data Structures and Algorithms
Given a set S of n keys, a k-perfect hash function (kPHF) is a data structure that maps the keys to the first m integers, where each output integer can be hit by at most k input keys. When m=n/k, the resulting function is called a minimal k-perfect hash function (MkPHF). Applications of kPHFs can be found in external memory data structures or to create efficient 1-perfect hash functions, which in turn have a wide range of applications from databases to bioinformatics. Several papers from the 1980s look at external memory data structures with small internal memory indexes. However, actual k-perfect hash functions are surprisingly rare, and the area has not seen a lot of research recently. At the same time, recent research in 1-perfect hashing shows that there is a lack of efficient kPHFs. In this paper, we revive the area of k-perfect hashing, presenting four new constructions. Our implementations simultaneously dominate older approaches in space consumption, construction time, and query time. We see this paper as a possible starting point of an active line of research, similar to the area of 1-perfect hashing.
title Engineering Minimal k-Perfect Hash Functions
topic Data Structures and Algorithms
url https://arxiv.org/abs/2504.20001