arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.20001cs.DS
收藏

工程化最小 k-完美哈希函数

Engineering Minimal k-Perfect Hash Functions

Stefan Hermann, Sebastian Kirmayer, Hans-Peter Lehmann, Peter Sanders, Stefan Walzer

AI总结:

本文针对当前缺乏高效 k-完美哈希函数的问题,提出四种新的构造方法,在空间消耗、构建时间和查询时间上同时超越既有方案,复兴了 k-完美哈希研究领域。

摘要:

给定一个包含 n 个键的集合 S,k-完美哈希函数(kPHF)是一种将键映射到前 m 个整数的数据结构,其中每个输出整数最多可被 k 个输入键命中。当 m=n/k 时,所得函数称为最小 k-完美哈希函数(MkPHF)。kPHF 的应用可见于外存数据结构,或用于构建高效的 1-完美哈希函数,而后者在从数据库到生物信息学的广泛领域中都有应用。20 世纪 80 年代的若干论文研究了具有较小内部内存索引的外存数据结构。然而,实际的 k-完美哈希函数却出奇地少见,该领域近年来也未见大量研究。与此同时,近期关于 1-完美哈希的研究表明,目前缺乏高效的 kPHF。在本文中,我们复兴了 k-完美哈希这一领域,提出了四种新的构造方法。我们的实现在空间消耗、构建时间和查询时间上同时优于以往的方法。我们认为本文可以作为一个活跃研究方向的潜在起点,类似于 1-完美哈希领域的发展。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑