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

一种生成箱基数的渐近最优算法

An asymptotically optimal algorithm for generating bin cardinalities

Luc Devroye, Dimitrios Los

AI总结:

针对投球入箱过程,本文提出在 RAM 模型中以 Θ(log n/log log n) 最优时间生成箱基数的算法,并可作为组件为 Two-Choice 模拟带来约二次方加速。

摘要:

在 balls-into-bins(投球入箱)场景中,n 个球被均匀随机地投入 n 个箱子。生成最终负载向量的朴素方法需要 Θ(n) 时间。然而,众所周知,该负载向量以高概率具有大小为 Θ(log n / log log n) 的箱基数。本文提出一种 RAM 模型下的算法,可在期望意义下且以高概率于最优的 Θ(log n / log log n) 时间内生成最终负载向量的箱基数。此外,对于任意 m∈[n, n log n] 个球,所提出的算法仍保持最优,并可用作高效模拟更复杂负载均衡算法的构建模块。特别地,对于 Two-Choice 算法——该算法在每一步采样两个箱子,并将球分配给二者中负载较轻者——相比朴素模拟,我们获得了约二次方的加速。

英文摘要:

In the balls-into-bins setting, $n$ balls are thrown uniformly at random into $n$ bins. The naïve way to generate the final load vector takes $Θ(n)$ time. However, it is well-known that this load vector has with high probability bin cardinalities of size $Θ(\frac{\log n}{\log \log n})$. Here, we present an algorithm in the RAM model that generates the bin cardinalities of the final load vector in the optimal $Θ(\frac{\log n}{\log \log n})$ time in expectation and with high probability. Further, the algorithm that we present is still optimal for any $m \in [n, n \log n]$ balls and can also be used as a building block to efficiently simulate more involved load balancing algorithms. In particular, for the Two-Choice algorithm, which samples two bins in each step and allocates to the least-loaded of the two, we obtain roughly a quadratic speed-up over the naïve simulation.

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

↑