arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.09684cs.DS
收藏

使用简单制表功能实现$d$选项的强大功能

Power of $d$ Choices with Simple Tabulation

Anders Aamand, Mathias Bæk Tejs Knudsen, Mikkel Thorup

摘要:

假设我们要使用$d$ -choice范例将$m$球顺序地放入$n$箱中:对于每个球,我们根据$d$散列函数$h_1,\dots,h_d$给出$d$箱的选择,并且我们将球放置在这些箱中负载最少的箱中,从而任意打破平局。我们感兴趣的是在所有的$m$球被放置后,最满的箱子里有多少球。Azar等人[STOC'94]证明,当$m=O(n)$和散列函数完全随机时,最大负载至多为$\frac{\lg \lg n }{\lg d}+O(1)$ whp(即,对于任何$γ$选择,概率为$1-O(n^{-γ})$)。在本文中,我们假设$h_1,\dots,h_d$是简单的制表散列函数。推广Dahlgaard等人[SODA'16]的结果,我们表明,对于任意常数$d\geq 2$,最大负载为$O(\lg \lg n)$ whp,预期最大负载至多为$\frac{\lg \lg n}{\lg d}+O(1)$。我们进一步表明,通过使用Vöcking [J.ACM'03]介绍的一个简单的平局打破算法,预期的最大负载下降到$\frac{\lg \lg n}{d\lg φ_d}+O(1)$,其中$φ_d$是$d$进制斐波那契数的增长率。这两个预期的界限都与完全随机设置的界限相匹配。Dahlgaard等人的分析依赖于Pagetrajeccu和Thorup [J.ACM'11]关于使用简单制表进行布谷鸟散列的证明。这里我们需要对$d>2$散列函数进行推广,但原始证明是一个长达8页的特别论证,似乎没有推广。我们的主要技术贡献是一个更短,更简单,更容易获得的证明结果的Pintrachagcu和Thorup,其中相关部分很好地概括$d$选择的分析。

英文摘要:

Suppose that we are to place $m$ balls into $n$ bins sequentially using the $d$-choice paradigm: For each ball we are given a choice of $d$ bins, according to $d$ hash functions $h_1,\dots,h_d$ and we place the ball in the least loaded of these bins breaking ties arbitrarily. Our interest is in the number of balls in the fullest bin after all $m$ balls have been placed. Azar et al. [STOC'94] proved that when $m=O(n)$ and when the hash functions are fully random the maximum load is at most $\frac{\lg \lg n }{\lg d}+O(1)$ whp (i.e. with probability $1-O(n^{-γ})$ for any choice of $γ$). In this paper we suppose that the $h_1,\dots,h_d$ are simple tabulation hash functions. Generalising a result by Dahlgaard et al [SODA'16] we show that for an arbitrary constant $d\geq 2$ the maximum load is $O(\lg \lg n)$ whp, and that expected maximum load is at most $\frac{\lg \lg n}{\lg d}+O(1)$. We further show that by using a simple tie-breaking algorithm introduced by Vöcking [J.ACM'03] the expected maximum load drops to $\frac{\lg \lg n}{d\lg φ_d}+O(1)$ where $φ_d$ is the rate of growth of the $d$-ary Fibonacci numbers. Both of these expected bounds match those of the fully random setting. The analysis by Dahlgaard et al. relies on a proof by Pătraşcu and Thorup [J.ACM'11] concerning the use of simple tabulation for cuckoo hashing. We need here a generalisation to $d>2$ hash functions, but the original proof is an 8-page tour de force of ad-hoc arguments that do not appear to generalise. Our main technical contribution is a shorter, simpler and more accessible proof of the result by Pătraşcu and Thorup, where the relevant parts generalise nicely to the analysis of $d$ choices.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑