arXiv · 2205.01664
An Efficient Method To Generate A Discrete Uniform Distribution Using A Biased Random Source
Abstract
This article presents an efficient algorithm to generate a discrete uniform distribution on a set of $p$ elements using a biased random source for $p$ prime. The algorithm generalizes Von Neumann's method and improves computational efficiency of Dijkstra's method. In addition, the algorithm is extended to generate discrete uniform distribution on any finite set based on the prime factorization of integers. The time complexity of the proposed algorithm is overall sublinear $\operatorname{O}(n/\log n)$
Explore related subjects
Keep this discovery
Xiaoyu Lei. 2022-05-03. An Efficient Method To Generate A Discrete Uniform Distribution Using A Biased Random Source. https://arxiv.org/abs/2205.01664
Cite the original work for its findings. Save a collection to share your selection of sources.