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

RecSplit:通过递归拆分的最小完美散列

RecSplit: Minimal Perfect Hashing via Recursive Splitting

Emmanuel Esposito, Thomas Mueller Graf, Sebastiano Vigna

摘要:

最小完美散列函数将全域$U$中的密钥集$S$双射映射到第一个$|S|$自然数。例如,最小完美散列函数用于在紧凑空间中映射形状不规则的键(如字符串),以便元数据可以简单地存储在数组中。虽然已知每个密钥仅需要$1.44$位来存储最小完美函数,但是在实践中没有公开的技术可以低于每个密钥$2$位。我们提出了一种新的技术,用于存储最小的完美散列函数与预期的线性建设时间和预期的恒定的查找时间,使其有可能建立第一次,例如,结构需要$1.56$位每个键,也就是说,在$8.3$ %的下限,在小于$2$毫秒每个键。我们表明,我们的建设的实例能够同时击败建设时间,空间使用和查找时间的国家的最先进的数据结构达到$2$位每键。此外,我们提供的参数选择给出的结构是有竞争力的替代,更大的数据结构的空间和查找时间方面。我们的数据结构的构造可以容易地并行化或映射到分布式计算单元(例如,在MapReduce框架内),并且大于可用RAM的结构可以直接构建在大容量存储器中。

英文摘要:

A minimal perfect hash function bijectively maps a key set $S$ out of a universe $U$ into the first $|S|$ natural numbers. Minimal perfect hash functions are used, for example, to map irregularly-shaped keys, such as string, in a compact space so that metadata can then be simply stored in an array. While it is known that just $1.44$ bits per key are necessary to store a minimal perfect function, no published technique can go below $2$ bits per key in practice. We propose a new technique for storing minimal perfect hash functions with expected linear construction time and expected constant lookup time that makes it possible to build for the first time, for example, structures which need $1.56$ bits per key, that is, within $8.3$% of the lower bound, in less than $2$ ms per key. We show that instances of our construction are able to simultaneously beat the construction time, space usage and lookup time of the state-of-the-art data structure reaching $2$ bits per key. Moreover, we provide parameter choices giving structures which are competitive with alternative, larger-size data structures in terms of space and lookup time. The construction of our data structures can be easily parallelized or mapped on distributed computational units (e.g., within the MapReduce framework), and structures larger than the available RAM can be directly built in mass storage.

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

↑