Abstract
We study the fundamental problem of the exact and efficient generation of random values from a finite and discrete probability distribution. Suppose that we are given n distinct events with associated probabilities p(1,)...,p(n) First, we consider the problem of sampling from the distribution where the i-th event has probability proportional to p(i). Second, we study the problem of sampling a subset which includes the i-th event independently with probability . For both problems we present on two different classes of inputs-sorted and general probabilities-efficient data structures consisting of a preprocessing and a query algorithm. Varying the allotted preprocessing time yields a trade-off between preprocessing and query time, which we prove to be asymptotically optimal everywhere.
| Dokumententyp: | Zeitschriftenartikel |
|---|---|
| Fakultät: | Mathematik, Informatik und Statistik > Mathematik |
| Themengebiete: | 500 Naturwissenschaften und Mathematik > 510 Mathematik |
| ISSN: | 0178-4617 |
| Sprache: | Englisch |
| Dokumenten ID: | 53483 |
| Datum der Veröffentlichung auf Open Access LMU: | 14. Jun. 2018 09:53 |
| Letzte Änderungen: | 13. Aug. 2024 12:42 |
