arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2209.06038cs.DS
收藏

没有哈希函数的哈希表,以及如何最大限度地利用随机位

A Hash Table Without Hash Functions, and How to Get the Most Out of Your Random Bits

William Kuszmaul

摘要:

本文认为一个基本的问题是如何强大的概率保证可以哈希表,存储$n$ $(1 + Θ(1)) \log n$位键/值对,提供?过去在这个问题上的工作已经被已知的哈希函数族的限制所验证:只有哈希表才能达到小于$1 / 2^{\polylog n}$的失败概率,这需要访问完全随机的哈希函数-如果使用已知的显式哈希函数族实现相同的哈希表,则它们的失败概率变为$1 / \poly(n)$。为了绕过这些障碍,我们展示了如何构建一个随机数据结构,它具有与哈希表相同的保证,但\emph{avoids the direct use of hash functions}。在此基础上,我们能够使用$O(n)$随机位构建哈希表,该哈希表对于任意正常数$ε$实现故障概率$1 / n^{n^{1 - ε}}$。事实上,我们表明,这种保证甚至可以实现由一个\emph{succinct dictionary},也就是说,由一个字典,使用空间内的$1 + o(1)$因素的信息理论的最佳。最后,我们还构建了一个简洁的哈希表,其概率保证落在不同的极端,提供$1 / \poly(n)$的故障概率,而只使用$\tilde{O}(\log n)$随机位。这后一结果匹配(直到低阶项)先前由Dietzfelbinger等人实现的保证,但是具有增加的空间效率和若干令人惊讶的技术部件。

英文摘要:

This paper considers the basic question of how strong of a probabilistic guarantee can a hash table, storing $n$ $(1 + Θ(1)) \log n$-bit key/value pairs, offer? Past work on this question has been bottlenecked by limitations of the known families of hash functions: The only hash tables to achieve failure probabilities less than $1 / 2^{\polylog n}$ require access to fully-random hash functions -- if the same hash tables are implemented using the known explicit families of hash functions, their failure probabilities become $1 / \poly(n)$. To get around these obstacles, we show how to construct a randomized data structure that has the same guarantees as a hash table, but that \emph{avoids the direct use of hash functions}. Building on this, we are able to construct a hash table using $O(n)$ random bits that achieves failure probability $1 / n^{n^{1 - ε}}$ for an arbitrary positive constant $ε$. In fact, we show that this guarantee can even be achieved by a \emph{succinct dictionary}, that is, by a dictionary that uses space within a $1 + o(1)$ factor of the information-theoretic optimum. Finally we also construct a succinct hash table whose probabilistic guarantees fall on a different extreme, offering a failure probability of $1 / \poly(n)$ while using only $\tilde{O}(\log n)$ random bits. This latter result matches (up to low-order terms) a guarantee previously achieved by Dietzfelbinger et al., but with increased space efficiency and with several surprising technical components.

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

↑