简单制表哈希的力量
The Power of Simple Tabulation Hashing
摘要:
随机算法通常因其简单性而受到欢迎,但用于产生所需理论保证的散列函数通常既不简单也不实用。在这里,我们表明,最简单的列表哈希提供了意想不到的强大保证。该计划本身可以追溯到卡特和韦格曼(STOC'77)。键被视为由C字符组成。我们初始化c个表T_1,.,T_c将字符映射到随机哈希码。密钥x=(x_1,...,x_q)被散列为T_1[x_1] xor.异或T_c[x_c]。虽然这个方案甚至不是4-独立的,但我们证明了它提供了许多通常通过更高的独立性获得的保证,例如,用于估计集合交集的最小散列和布谷鸟散列。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。