Efficient sampling methods for discrete distributions

  • Authors:
  • Karl Bringmann;Konstantinos Panagiotou

  • Affiliations:
  • Max Planck Institute for Informatics, Saarbrücken, Germany;Department of Mathematics, University of Munich, Munich, Germany

  • Venue:
  • ICALP'12 Proceedings of the 39th international colloquium conference on Automata, Languages, and Programming - Volume Part I
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

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 p1, …, pn. We consider the problem of sampling a subset, which includes the ith event independently with probability pi, and the problem of sampling from the distribution, where the ith event has a probability proportional to pi. For both problems, we present on two different classes of inputs --- sorted and general probabilities --- efficient preprocessing algorithms that allow for asymptotically optimal querying, and prove almost matching lower bounds for their complexity.