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

具有强浓度边界的快速散列

Fast hashing with Strong Concentration Bounds

Anders Aamand, Jakob B. T. Knudsen, Mathias B. T. Knudsen, Peter M. R. Rasmussen, Mikkel Thorup

摘要:

Patrascu和Thorup以前在STOC'11的简单制表和SODA'13的扭曲制表中对制表散列的工作提供了基于散列的总和的Besoff风格的集中边界,例如,散列到给定bin的球/键的数量,但是在对这些总和的期望值的一些相当严格的限制下。制表散列的基本思想是将键视为由$c=O(1)$字符组成,例如,64位密钥作为8位的$c=8$字符。字符域$Σ$应该足够小,以便$|Σ|$大小的字符表适合快速缓存。然后,这些方案使用这种大小的$O(1)$表,因此制表散列的空间是$O(|Σ|)$。然而,仅当预期总和为$\ll |Σ|$时,Patrascu和Thorup的浓度界限才适用。要了解这个问题,请考虑一个非常简单的情况,我们使用制表散列将$n$球扔到$m$ bin中,并希望分析给定bin中的球数。有了它们的浓度界限,如果是$n=m$,我们就没问题了,因为那么期望值是$1$。然而,如果$m=2$,如当投掷$n$无偏硬币时,对于大数据集,期望值$n/2$是$\gg |Σ|$,例如,不适合快速缓存的数据集。为了处理超出我们的小空间限制的期望,我们需要对简单制表进行更高级的分析,再加上一种新的制表技术,我们称之为\emph{tabulation-permutation}哈希,它最多是简单制表的两倍。没有其他速度相当的散列方案提供类似的Besoff风格的浓度界限。

英文摘要:

Previous work on tabulation hashing by Patrascu and Thorup from STOC'11 on simple tabulation and from SODA'13 on twisted tabulation offered Chernoff-style concentration bounds on hash based sums, e.g., the number of balls/keys hashing to a given bin, but under some quite severe restrictions on the expected values of these sums. The basic idea in tabulation hashing is to view a key as consisting of $c=O(1)$ characters, e.g., a 64-bit key as $c=8$ characters of 8-bits. The character domain $Σ$ should be small enough that character tables of size $|Σ|$ fit in fast cache. The schemes then use $O(1)$ tables of this size, so the space of tabulation hashing is $O(|Σ|)$. However, the concentration bounds by Patrascu and Thorup only apply if the expected sums are $\ll |Σ|$. To see the problem, consider the very simple case where we use tabulation hashing to throw $n$ balls into $m$ bins and want to analyse the number of balls in a given bin. With their concentration bounds, we are fine if $n=m$, for then the expected value is $1$. However, if $m=2$, as when tossing $n$ unbiased coins, the expected value $n/2$ is $\gg |Σ|$ for large data sets, e.g., data sets that do not fit in fast cache. To handle expectations that go beyond the limits of our small space, we need a much more advanced analysis of simple tabulation, plus a new tabulation technique that we call \emph{tabulation-permutation} hashing which is at most twice as slow as simple tabulation. No other hashing scheme of comparable speed offers similar Chernoff-style concentration bounds.

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

↑