计算机科学 > 数据结构与算法
[提交于 2026年8月1日]
标题:An Analysis of Brent's Insertion Method for Hash Tables
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In 1968, Richard P.~Brent introduced a new way of building a hash table that, at least empirically, achieves a remarkable property: Even if the hash table is filled to 100\% full, the expected time to query a \emph{random key out of those present} is $O(1)$. Despite the simplicity of Brent's method, the guarantees of the method have never been formally analyzed. This is due to the subtle issue of handling \emph{spoiled randomness}. The algorithm will sometimes try to use hash functions $h_j$ on keys $y$ that it has already probed in the past. When the algorithm does this, we cannot treat the hash function as random, because its random bits have already affected the state of the table. This issue makes Brent's method surprisingly subtle to reason about formally. In this note, we give a simple and formal analysis of Brent's hash table. The analysis can be taught in a graduate randomized algorithms course, and provides a nice example of how to deal with subtle issues in a probabilistic analysis (namely, the issue of spoiled randomness).
提交历史
来自:William Kuszmaul[v1] 2026年8月1日 星期六 16:52:23 UTC