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

关于哈希表的最优时空折衷

On the Optimal Time/Space Tradeoff for Hash Tables

Michael A. Bender, Martín Farach-Colton, John Kuszmaul, William Kuszmaul, Mingmou Liu

摘要:

近60年来,哈希表研究中的中心问题一直是确定时间和空间之间的最佳可实现折衷曲线。最先进的哈希表提供了以下保证:如果键/值都是Theta(log n)位,那么与信息论最优值相比,可以实现恒定时间的插入/删除/查询,而每个键只浪费O(loglog n)位空间。甚至在达到这个界限之前,每个密钥的O(loglog n)浪费比特的目标被认为是自然的最终目标,并且被证明对于许多密切相关的问题(例如,稳定散列、动态检索和动态调整大小的过滤器)。本文表明,O(loglog n)浪费每个键的位是不是行散列的结束。事实上,对于任何k个\in [log* n],都有可能实现O(k)时间的插入/删除,O(1)时间的查询,以及O(\log^{(k)} n)浪费每个键的位(所有这些都在n中具有高概率)。这意味着,每次我们将插入/删除时间增加一个\emph{additive constant},我们就减少了每个密钥\emph{exponentially}浪费的位数。我们进一步表明,这种权衡曲线是最好的实现任何一大类的哈希表,包括任何哈希表设计使用当前的框架,使恒定时间哈希表简洁。

英文摘要:

For nearly six decades, the central open question in the study of hash tables has been to determine the optimal achievable tradeoff curve between time and space. State-of-the-art hash tables offer the following guarantee: If keys/values are Theta(log n) bits each, then it is possible to achieve constant-time insertions/deletions/queries while wasting only O(loglog n) bits of space per key when compared to the information-theoretic optimum. Even prior to this bound being achieved, the target of O(loglog n) wasted bits per key was known to be a natural end goal, and was proven to be optimal for a number of closely related problems (e.g., stable hashing, dynamic retrieval, and dynamically-resized filters). This paper shows that O(loglog n) wasted bits per key is not the end of the line for hashing. In fact, for any k \in [log* n], it is possible to achieve O(k)-time insertions/deletions, O(1)-time queries, and O(\log^{(k)} n) wasted bits per key (all with high probability in n). This means that, each time we increase insertion/deletion time by an \emph{additive constant}, we reduce the wasted bits per key \emph{exponentially}. We further show that this tradeoff curve is the best achievable by any of a large class of hash tables, including any hash table designed using the current framework for making constant-time hash tables succinct.

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

↑