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

罗宾汉散列法确实在整个表中具有恒定的平均搜索成本和方差

Robin Hood Hashing really has constant average search cost and variance in full tables

Patricio V. Poblete, Alfredo Viola

摘要:

30年前,针对开寻址哈希表引入了罗宾汉冲突解决策略,并找到了其搜索成本分布的递归方程。虽然这种递归不能用解析法求解,但它允许数值计算,值得注意的是,这表明当表满时,搜索成本的方差接近$1.883$的值。此外,通过使用非标准的均值中心搜索算法,这将意味着即使在完整的表中也可以在预期的恒定时间内执行搜索。尽管提出这些意见已有一段时间,但在证明这些意见方面没有取得任何进展。在本文中,我们介绍了一种技术,而不是解决一个相关的微分方程的递归方程的棘手性。虽然这并没有提供一个精确的解决方案,但它足以证明方差的界,从而证明罗宾汉的方差是由负载因子任意接近1的一个小常数限制的。作为推论,这证明了均值中心搜索算法在预期的恒定时间内运行。我们还使用这种技术来研究罗宾汉哈希表的性能下的一个长序列的插入和删除,删除是通过标记为删除的元素。我们证明,在这种情况下,方差是有界的$1/(1-α)+O(1)$,其中$α$是负载因子。为了对这些哈希表的行为进行建模,我们使用了一种统一的方法,该方法也可以应用于研究先来先服务和后来先服务的冲突解决规则,包括删除和不删除。

英文摘要:

Thirty years ago, the Robin Hood collision resolution strategy was introduced for open addressing hash tables, and a recurrence equation was found for the distribution of its search cost. Although this recurrence could not be solved analytically, it allowed for numerical computations that, remarkably, suggested that the variance of the search cost approached a value of $1.883$ when the table was full. Furthermore, by using a non-standard mean-centered search algorithm, this would imply that searches could be performed in expected constant time even in a full table. In spite of the time elapsed since these observations were made, no progress has been made in proving them. In this paper we introduce a technique to work around the intractability of the recurrence equation by solving instead an associated differential equation. While this does not provide an exact solution, it is sufficiently powerful to prove a bound for the variance, and thus obtain a proof that the variance of Robin Hood is bounded by a small constant for load factors arbitrarily close to 1. As a corollary, this proves that the mean-centered search algorithm runs in expected constant time. We also use this technique to study the performance of Robin Hood hash tables under a long sequence of insertions and deletions, where deletions are implemented by marking elements as deleted. We prove that, in this case, the variance is bounded by $1/(1-α)+O(1)$, where $α$ is the load factor. To model the behavior of these hash tables, we use a unified approach that can be applied also to study the First-Come-First-Served and Last-Come-First-Served collision resolution disciplines, both with and without deletions.

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

↑