简单的制表,快速扩展,双重制表和高独立性
Simple Tabulation, Fast Expanders, Double Tabulation, and High Independence
摘要:
简单的制表可以追溯到1970年的佐布里斯特。键被看作是字母表A中的C字符。我们初始化c表h_0,.,h_{c-1}将字符映射到随机哈希值。密钥x=(x_0,...,x_{c-1})被散列为h_0[x_0] xor.异或h_{c-1} [ x_{c-1} ]。当字符哈希表h_i在高速缓存中时,该方案是非常快的。简单的列表哈希不是4-独立的,但是我们证明了如果我们应用它两次,那么我们就得到了高独立性。首先,我们散列到比原始密钥长6倍的中间密钥,然后我们将中间密钥散列到最终散列值。中间键具有从A开始的d=6c个字符。我们可以将散列函数看作是一个度为d的二分图,其一边是键,每一边都有d个输出字符的边。我们证明了这个图具有很好的扩展特性,从中我们可以得到,通过对中间键进行另一个层次的简单制表,组合是一个高度独立的哈希函数。我们得到的独立性是|A| ^{Omega(1/c)}。我们的空间是O(c |A|),哈希函数的计算时间是O(c)。Siegel [FOCS'89,SICOMP'04]证明了在这个空间中,如果哈希函数在o(c)时间内被求值,那么独立性只能是o(c),所以我们的求值时间对于Omega(c)独立性来说是最好的--如果c= |A| ^{o(1)},我们的独立性要高得多。Siegel使用O(c)^c的计算时间来获得相似空间的相同独立性。Siegel的主要关注点是c=O(1),但当c=omega(1)时,我们的速度会呈指数级增长。递归地应用我们的方案,我们可以将我们的独立性增加到|A| ^{Omega(1)},并且具有o(c^{log c})的计算时间。与Siegel的方案相比,该方案速度更快,独立性更高。我们的方案很容易实现,它确实为32位和64位密钥提供了100个独立散列的现实实现。
英文摘要:
Simple tabulation dates back to Zobrist in 1970. Keys are viewed as c characters from some alphabet A. We initialize c tables h_0, ..., h_{c-1} mapping characters to random hash values. A key x=(x_0, ..., x_{c-1}) is hashed to h_0[x_0] xor...xor h_{c-1}[x_{c-1}]. The scheme is extremely fast when the character hash tables h_i are in cache. Simple tabulation hashing is not 4-independent, but we show that if we apply it twice, then we get high independence. First we hash to intermediate keys that are 6 times longer than the original keys, and then we hash the intermediate keys to the final hash values. The intermediate keys have d=6c characters from A. We can view the hash function as a degree d bipartite graph with keys on one side, each with edges to d output characters. We show that this graph has nice expansion properties, and from that we get that with another level of simple tabulation on the intermediate keys, the composition is a highly independent hash function. The independence we get is |A|^{Omega(1/c)}. Our space is O(c|A|) and the hash function is evaluated in O(c) time. Siegel [FOCS'89, SICOMP'04] proved that with this space, if the hash function is evaluated in o(c) time, then the independence can only be o(c), so our evaluation time is best possible for Omega(c) independence---our independence is much higher if c=|A|^{o(1)}. Siegel used O(c)^c evaluation time to get the same independence with similar space. Siegel's main focus was c=O(1), but we are exponentially faster when c=omega(1). Applying our scheme recursively, we can increase our independence to |A|^{Omega(1)} with o(c^{log c}) evaluation time. Compared with Siegel's scheme this is both faster and higher independence. Our scheme is easy to implement, and it does provide realistic implementations of 100-independent hashing for, say, 32 and 64-bit keys.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。