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

有序和无序线性探测的紧致分析

Tight Analyses of Ordered and Unordered Linear Probing

Mark Braverman, William Kuszmaul

AI总结:

本文解决了线性探测哈希表摊还插入时间的开放问题,给出了匹配的 $Θ(x \log^{1.5} x)$ 上下界,并扩展了相关结果至经典线性探测及路径盈余问题。

摘要:

线性探测哈希表在经典上被认为支持在时间 $Θ(x^2)$ 内进行插入操作,其中 $1 - 1/x$ 是哈希表的负载因子。然而,Bender、Kuszmaul 和 Kuszmaul(FOCS'21)最近的工作为这一结论增添了新的变数:在某些版本的线性探测中,如果\ue000最大\ue001负载因子至多为 $1 - 1/x$,那么每次插入的\ue000摊还\ue001期望时间将永远不会超过 $x \log^{O(1)} x$(即使在持续以 $1 - 1/x$ 负载因子运行的工作负载中也是如此)。确定摊还插入时间的精确渐近值仍然是一个开放问题。在本文中,我们通过匹配的 $Θ(x \log^{1.5} x)$ 上界和下界解决了摊还复杂度问题。在此过程中,我们还获得了所谓的路径盈余问题的紧致界,这是一个组合几何问题,已被证明与线性探测密切相关。我们还展示了如何将 Bender 等人的界扩展到不仅适用于有序线性探测(他们研究的版本),也适用于经典线性探测,即实践中广泛实现的形式。

英文摘要:

Linear-probing hash tables have been classically believed to support insertions in time $Θ(x^2)$, where $1 - 1/x$ is the load factor of the hash table. Recent work by Bender, Kuszmaul, and Kuszmaul (FOCS'21), however, has added a new twist to this story: in some versions of linear probing, if the \emph{maximum} load factor is at most $1 - 1/x$, then the \emph{amortized} expected time per insertion will never exceed $x \log^{O(1)} x$ (even in workloads that operate continuously at a load factor of $1 - 1/x$). Determining the exact asymptotic value for the amortized insertion time remains open. In this paper, we settle the amortized complexity with matching upper and lower bounds of $Θ(x \log^{1.5} x)$. Along the way, we also obtain tight bounds for the so-called path surplus problem, a problem in combinatorial geometry that has been shown to be closely related to linear probing. We also show how to extend Bender et al.'s bounds to say something not just about ordered linear probing (the version they study) but also about classical linear probing, in the form that is most widely implemented in practice.

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

↑