References & Citations
Mathematics > Probability
Title: An Efficient Method To Generate A Discrete Uniform Distribution Using A Biased Random Source
(Submitted on 3 May 2022 (v1), last revised 15 Jan 2023 (this version, v3))
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)$
Submission history
From: Xiaoyu Lei [view email][v1] Tue, 3 May 2022 17:51:35 GMT (1501kb,D)
[v2] Mon, 5 Sep 2022 21:30:01 GMT (985kb,D)
[v3] Sun, 15 Jan 2023 01:05:21 GMT (990kb,D)
Link back to: arXiv, form interface, contact.