多专辑收集器的快速模拟

IF 1 4区 计算机科学 Q3 COMPUTER SCIENCE, THEORY & METHODS
D. Barak-Pelleg , D. Berend
{"title":"多专辑收集器的快速模拟","authors":"D. Barak-Pelleg ,&nbsp;D. Berend","doi":"10.1016/j.tcs.2025.115432","DOIUrl":null,"url":null,"abstract":"<div><div>Our starting point is the coupon collector's problem (CCP). In this problem, there are <em>n</em> coupons that are drawn uniformly randomly with replacement. The question is how many drawings on average are needed to collect at least one copy (or some other predetermined number <em>m</em> of copies) of each coupon?</div><div>The problem may be traced back to the 18-th century, having been mentioned already by de Moivre. Numerous questions have been posed based on the problem since its inception, and it turned out to appear naturally in many applications.</div><div>A naive simulation of the process is trivial to implement. However, the runtime of this algorithm makes it impractical for large values of <em>n</em>. We present here an alternative view of the coupon collecting process, for coupons with any probabilities, that allows us to increase the range of <em>n</em>-s (and <em>m</em>-s) for which the simulation may be run. For equi-probable coupons, we present additional improvements, making the simulation possible in a very short time practically for any <em>n</em>. More precisely, we show that the runtime of our algorithm is <span><math><mi>Θ</mi><mo>(</mo><mi>m</mi><mo>+</mo><mi>log</mi><mo>⁡</mo><mi>n</mi><mo>)</mo></math></span>.</div><div>We present theoretical results concerning some of the quantities relevant to our algorithms and conduct simulations to test the algorithms in practice.</div></div>","PeriodicalId":49438,"journal":{"name":"Theoretical Computer Science","volume":"1053 ","pages":"Article 115432"},"PeriodicalIF":1.0000,"publicationDate":"2025-06-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Fast simulations of the multi-album collector\",\"authors\":\"D. Barak-Pelleg ,&nbsp;D. Berend\",\"doi\":\"10.1016/j.tcs.2025.115432\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Our starting point is the coupon collector's problem (CCP). In this problem, there are <em>n</em> coupons that are drawn uniformly randomly with replacement. The question is how many drawings on average are needed to collect at least one copy (or some other predetermined number <em>m</em> of copies) of each coupon?</div><div>The problem may be traced back to the 18-th century, having been mentioned already by de Moivre. Numerous questions have been posed based on the problem since its inception, and it turned out to appear naturally in many applications.</div><div>A naive simulation of the process is trivial to implement. However, the runtime of this algorithm makes it impractical for large values of <em>n</em>. We present here an alternative view of the coupon collecting process, for coupons with any probabilities, that allows us to increase the range of <em>n</em>-s (and <em>m</em>-s) for which the simulation may be run. For equi-probable coupons, we present additional improvements, making the simulation possible in a very short time practically for any <em>n</em>. More precisely, we show that the runtime of our algorithm is <span><math><mi>Θ</mi><mo>(</mo><mi>m</mi><mo>+</mo><mi>log</mi><mo>⁡</mo><mi>n</mi><mo>)</mo></math></span>.</div><div>We present theoretical results concerning some of the quantities relevant to our algorithms and conduct simulations to test the algorithms in practice.</div></div>\",\"PeriodicalId\":49438,\"journal\":{\"name\":\"Theoretical Computer Science\",\"volume\":\"1053 \",\"pages\":\"Article 115432\"},\"PeriodicalIF\":1.0000,\"publicationDate\":\"2025-06-30\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Theoretical Computer Science\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0304397525003706\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, THEORY & METHODS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theoretical Computer Science","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0304397525003706","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

摘要

我们的出发点是优惠券收集者的问题(CCP)。在这个问题中,有n张券是均匀随机抽取并替换的。问题是,平均需要多少张图纸才能收集到每张优惠券的至少一份副本(或其他预定数量的m份副本)?这个问题可以追溯到18世纪,德·莫弗已经提到过。自该问题出现以来,人们提出了许多问题,并且在许多应用中自然出现了该问题。简单地模拟这个过程是很容易实现的。然而,该算法的运行时间使得它对于较大的n值不切实际。我们在这里提出了优惠券收集过程的另一种视图,对于具有任何概率的优惠券,它允许我们增加模拟可能运行的n-s(和m-s)的范围。对于等概率券,我们提出了额外的改进,使模拟可以在很短的时间内几乎适用于任何n。更准确地说,我们表明我们的算法的运行时间是Θ(m+log ln n)。我们提出了与我们的算法相关的一些量的理论结果,并进行了模拟以在实践中测试算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Fast simulations of the multi-album collector
Our starting point is the coupon collector's problem (CCP). In this problem, there are n coupons that are drawn uniformly randomly with replacement. The question is how many drawings on average are needed to collect at least one copy (or some other predetermined number m of copies) of each coupon?
The problem may be traced back to the 18-th century, having been mentioned already by de Moivre. Numerous questions have been posed based on the problem since its inception, and it turned out to appear naturally in many applications.
A naive simulation of the process is trivial to implement. However, the runtime of this algorithm makes it impractical for large values of n. We present here an alternative view of the coupon collecting process, for coupons with any probabilities, that allows us to increase the range of n-s (and m-s) for which the simulation may be run. For equi-probable coupons, we present additional improvements, making the simulation possible in a very short time practically for any n. More precisely, we show that the runtime of our algorithm is Θ(m+logn).
We present theoretical results concerning some of the quantities relevant to our algorithms and conduct simulations to test the algorithms in practice.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Theoretical Computer Science
Theoretical Computer Science 工程技术-计算机:理论方法
CiteScore
2.60
自引率
18.20%
发文量
471
审稿时长
12.6 months
期刊介绍: Theoretical Computer Science is mathematical and abstract in spirit, but it derives its motivation from practical and everyday computation. Its aim is to understand the nature of computation and, as a consequence of this understanding, provide more efficient methodologies. All papers introducing or studying mathematical, logic and formal concepts and methods are welcome, provided that their motivation is clearly drawn from the field of computing.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信