Backyard Cuckoo Hashing:用简洁表示的恒定最坏情况操作
Backyard Cuckoo Hashing: Constant Worst-Case Operations with a Succinct Representation
摘要:
动态字典的性能主要由其更新时间、查找时间和空间消耗来衡量。在更新时间和查找时间方面,存在以高概率保证最坏情况下的恒定时间操作的已知构造,并且在空间消耗方面,存在使用基本上最优空间的已知构造。然而,尽管对动态字典的第一次分析可以追溯到45年前(当Knuth在1963年分析线性探测时),但这些性能方面之间的权衡仍然没有完全理解。在本文中,我们解决了两个基本的开放问题:-我们构建了第一个动态字典,享有最好的两个世界:它存储n个元素使用(1+ 1)n内存字,并保证在最坏的情况下,高概率的恒定时间操作。具体地,对于任何Ω = Ω((\log \log n / \log n)^{1/2})并且对于多项式多运算的任何序列,在初始化阶段的随机性上具有高概率,所有运算在与Ω无关的恒定时间内执行。该构造是布谷鸟散列的两级变体,增加了一个处理大部分元素的“后院”,以及一个用于消除对重复的依赖的去摊销的完美散列方案。- 我们提出了上述构造的一个变体,它只使用(1+o(1))B个比特,其中B是表示从大小为u的论域中取的大小为n的集合的信息论下限,并保证在最坏情况下具有高概率的恒定时间操作,如前所述。这个问题甚至在摊销设置中也是公开的。我们构建的主要成分之一是基于置换的cuckoo hashing变体,它在处理相当小的宇宙时显着改善了cuckoo hashing的空间消耗。
英文摘要:
The performance of a dynamic dictionary is measured mainly by its update time, lookup time, and space consumption. In terms of update time and lookup time there are known constructions that guarantee constant-time operations in the worst case with high probability, and in terms of space consumption there are known constructions that use essentially optimal space. However, although the first analysis of a dynamic dictionary dates back more than 45 years ago (when Knuth analyzed linear probing in 1963), the trade-off between these aspects of performance is still not completely understood. In this paper we settle two fundamental open problems: - We construct the first dynamic dictionary that enjoys the best of both worlds: it stores n elements using (1+epsilon)n memory words, and guarantees constant-time operations in the worst case with high probability. Specifically, for any epsilon = Ω((\log\log n / \log n)^{1/2} ) and for any sequence of polynomially many operations, with high probability over the randomness of the initialization phase, all operations are performed in constant time which is independent of epsilon. The construction is a two-level variant of cuckoo hashing, augmented with a "backyard" that handles a large fraction of the elements, together with a de-amortized perfect hashing scheme for eliminating the dependency on epsilon. - We present a variant of the above construction that uses only (1+o(1))B bits, where B is the information-theoretic lower bound for representing a set of size n taken from a universe of size u, and guarantees constant-time operations in the worst case with high probability, as before. This problem was open even in the amortized setting. One of the main ingredients of our construction is a permutation-based variant of cuckoo hashing, which significantly improves the space consumption of cuckoo hashing when dealing with a rather small universe.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。