计算机科学 > 数据结构与算法
[提交于 2010年11月23日]
标题:The Power of Simple Tabulation Hashing
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Randomized algorithms are often enjoyed for their simplicity, but the hash functions used to yield the desired theoretical guarantees are often neither simple nor practical. Here we show that the simplest possible tabulation hashing provides unexpectedly strong guarantees. The scheme itself dates back to Carter and Wegman (STOC'77). Keys are viewed as consisting of c characters. We initialize c tables T_1, ..., T_c mapping characters to random hash codes. A key x=(x_1, ..., x_q) is hashed to T_1[x_1] xor ... xor T_c[x_c]. While this scheme is not even 4-independent, we show that it provides many of the guarantees that are normally obtained via higher independence, e.g., Chernoff-type concentration, min-wise hashing for estimating set intersection, and cuckoo hashing.
提交历史
来自:Mikkel Thorup[v1] 2010年11月23日 星期二 19:18:30 UTC