An asymptotically optimal algorithm for generating bin cardinalities

IF 4.4 2区 数学 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Mathematics and Computers in Simulation Pub Date : 2025-02-01 Epub Date: 2024-09-02 DOI:10.1016/j.matcom.2024.08.034
Luc Devroye , Dimitrios Los
{"title":"An asymptotically optimal algorithm for generating bin cardinalities","authors":"Luc Devroye ,&nbsp;Dimitrios Los","doi":"10.1016/j.matcom.2024.08.034","DOIUrl":null,"url":null,"abstract":"<div><p>In the balls-into-bins setting, <span><math><mi>n</mi></math></span> balls are thrown uniformly at random into <span><math><mi>n</mi></math></span> bins. The naïve way to generate the final load vector takes <span><math><mrow><mi>Θ</mi><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow></mrow></math></span> time. However, it is well-known that this load vector has with high probability bin cardinalities of size <span><math><mrow><mi>Θ</mi><mrow><mo>(</mo><mfrac><mrow><mo>log</mo><mi>n</mi></mrow><mrow><mo>log</mo><mo>log</mo><mi>n</mi></mrow></mfrac><mo>)</mo></mrow></mrow></math></span>. Here, we present an algorithm in the RAM model that generates the bin cardinalities of the final load vector in the optimal <span><math><mrow><mi>Θ</mi><mrow><mo>(</mo><mfrac><mrow><mo>log</mo><mi>n</mi></mrow><mrow><mo>log</mo><mo>log</mo><mi>n</mi></mrow></mfrac><mo>)</mo></mrow></mrow></math></span> time in expectation and with high probability.</p><p>Further, the algorithm that we present is still optimal for any <span><math><mrow><mi>m</mi><mo>∈</mo><mrow><mo>[</mo><mi>n</mi><mo>,</mo><mi>n</mi><mo>log</mo><mi>n</mi><mo>]</mo></mrow></mrow></math></span> balls and can also be used as a building block to efficiently simulate more involved load balancing algorithms. In particular, for the <span>Two-Choice</span> 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.</p></div>","PeriodicalId":49856,"journal":{"name":"Mathematics and Computers in Simulation","volume":"228 ","pages":"Pages 147-155"},"PeriodicalIF":4.4000,"publicationDate":"2025-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Mathematics and Computers in Simulation","FirstCategoryId":"100","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S037847542400346X","RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2024/9/2 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0

Abstract

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 Θ(lognloglogn). Here, we present an algorithm in the RAM model that generates the bin cardinalities of the final load vector in the optimal Θ(lognloglogn) time in expectation and with high probability.

Further, the algorithm that we present is still optimal for any m[n,nlogn] 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.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
生成二进制万有引力的渐进最优算法
在 "球入箱 "设置中,n 个球被均匀随机地扔进 n 个箱中。生成最终载荷向量的简单方法需要花费 Θ(n) 时间。然而,众所周知,这个载荷向量的二进制心数很有可能是 Θ(lognloglogn) 大小。此外,我们提出的算法对于任意 m∈[n,nlogn] 球仍然是最优的,而且还可以用作有效模拟更多负载平衡算法的构件。特别是对于 "二选一 "算法(该算法在每一步中对两个分区进行采样,并分配给其中负载最小的分区),我们获得了比天真模拟大约四倍的速度提升。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Mathematics and Computers in Simulation
Mathematics and Computers in Simulation 数学-计算机:跨学科应用
CiteScore
8.90
自引率
4.30%
发文量
335
审稿时长
54 days
期刊介绍: The aim of the journal is to provide an international forum for the dissemination of up-to-date information in the fields of the mathematics and computers, in particular (but not exclusively) as they apply to the dynamics of systems, their simulation and scientific computation in general. Published material ranges from short, concise research papers to more general tutorial articles. Mathematics and Computers in Simulation, published monthly, is the official organ of IMACS, the International Association for Mathematics and Computers in Simulation (Formerly AICA). This Association, founded in 1955 and legally incorporated in 1956 is a member of FIACC (the Five International Associations Coordinating Committee), together with IFIP, IFAV, IFORS and IMEKO. Topics covered by the journal include mathematical tools in: •The foundations of systems modelling •Numerical analysis and the development of algorithms for simulation They also include considerations about computer hardware for simulation and about special software and compilers. The journal also publishes articles concerned with specific applications of modelling and simulation in science and engineering, with relevant applied mathematics, the general philosophy of systems simulation, and their impact on disciplinary and interdisciplinary research. The journal includes a Book Review section -- and a "News on IMACS" section that contains a Calendar of future Conferences/Events and other information about the Association.
期刊最新文献
A jackknife empirical likelihood ratio test for second order stochastic dominance Numerical method for obtaining periodic steady-state solutions of nonlinear fractional differential-algebraic equations A stable and accurate compact exponential scheme for 3D groundwater pollution model: Theory and Comparison Numerical analysis of 3D space-fractional neutral-type delayed reaction–diffusion equations using a high-order difference technique Adjoint model based deep learning for efficient pointwise residence time estimation in coastal environments
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1