计算机科学 > 数据结构与算法
[提交于 2013年4月9日]
标题:Optimal Discrete Uniform Generation from Coin Flips, and Applications
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This article introduces an algorithm to draw random discrete uniform variables within a given range of size n from a source of random bits. The algorithm aims to be simple to implement and optimal both with regards to the amount of random bits consumed, and from a computational perspective---allowing for faster and more efficient Monte-Carlo simulations in computational physics and biology. I also provide a detailed analysis of the number of bits that are spent per variate, and offer some extensions and applications, in particular to the optimal random generation of permutations.
提交历史
来自:Jérémie Lumbroso[v1] 2013年4月9日 星期二 00:00:00 UTC