arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1209.5360cs.DScs.DCcs.DM
收藏

平衡分配和双重哈希

Balanced Allocations and Double Hashing

Michael Mitzenmacher

摘要:

双哈希最近在使用多个哈希函数的方案中发现了更常见的用法。在双散列中,对于项目$x$,生成两个散列值$f(x)$和$g(x)$,然后使用$k=0,1,2,...$的组合$(f(x) +k g(x)) \bmod n$,以从初始的两个散列值生成多个散列值。我们首先进行实证研究表明,令人惊讶的是,双重哈希和完全随机哈希之间的性能差异似乎可以忽略不计的标准平衡分配范式,其中每个项目被放置在最少的$d$的选择,以及几个相关的变种。然后,我们提供理论结果,解释在这种情况下的双重哈希的行为。

英文摘要:

Double hashing has recently found more common usage in schemes that use multiple hash functions. In double hashing, for an item $x$, one generates two hash values $f(x)$ and $g(x)$, and then uses combinations $(f(x) +k g(x)) \bmod n$ for $k=0,1,2,...$ to generate multiple hash values from the initial two. We first perform an empirical study showing that, surprisingly, the performance difference between double hashing and fully random hashing appears negligible in the standard balanced allocation paradigm, where each item is placed in the least loaded of $d$ choices, as well as several related variants. We then provide theoretical results that explain the behavior of double hashing in this context.

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

↑