两种选择的力量与简单的制表
The Power of Two Choices with Simple Tabulation
摘要:
当将$m$球分配给$n$箱时,两个选择的幂是负载均衡的经典范例。在放置球时,我们根据两个哈希函数$h_0$和$h_1$选择两个bin,并将球放置在负载最小的bin中。假设完全随机哈希函数,当$m=O(n)$,Azar等人~ [STOC'94]证明了最大载荷是$\lg \lg n + O(1)$的概率很高。在本文中,我们研究了两个选择的权力时,散列函数$h_0$和$h_1$实现简单的制表,这是一个非常有效的散列函数在常数时间评估。在他们对Cuckoo hashing的分析[J.ACM'12]之后,Pintrachagcu和Thorup声称,简单制表的预期最大负载是$O(\lg\lg n)$。这不包括任何高概率保证,因此负载均衡还不可信。在这里,我们用简单的表格证明,最大负载是$O(\lg\lg n)$,概率很高,给出了第一个具有这种保证的恒定时间散列函数。我们还给出了一个具体的例子,与完全随机散列不同,最大负载不受$\lg \lg n + O(1)$限制,甚至不受高概率$(1+o(1))\lg \lg n$限制。最后,我们证明了预期的最大负载是$\lg \lg n + O(1)$,就像完全随机散列一样。
英文摘要:
The power of two choices is a classic paradigm for load balancing when assigning $m$ balls to $n$ bins. When placing a ball, we pick two bins according to two hash functions $h_0$ and $h_1$, and place the ball in the least loaded bin. Assuming fully random hash functions, when $m=O(n)$, Azar et al.~[STOC'94] proved that the maximum load is $\lg \lg n + O(1)$ with high probability. In this paper, we investigate the power of two choices when the hash functions $h_0$ and $h_1$ are implemented with simple tabulation, which is a very efficient hash function evaluated in constant time. Following their analysis of Cuckoo hashing [J.ACM'12], Pǎtraşcu and Thorup claimed that the expected maximum load with simple tabulation is $O(\lg\lg n)$. This did not include any high probability guarantee, so the load balancing was not yet to be trusted. Here, we show that with simple tabulation, the maximum load is $O(\lg\lg n)$ with high probability, giving the first constant time hash function with this guarantee. We also give a concrete example where, unlike with fully random hashing, the maximum load is not bounded by $\lg \lg n + O(1)$, or even $(1+o(1))\lg \lg n$ with high probability. Finally, we show that the expected maximum load is $\lg \lg n + O(1)$, just like with fully random hashing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。