Abstract
Data structures for efficient sampling from a set of weighted items are an important building block of many applications. However, few parallel solutions are known. We close many of these gaps both for shared-memory and distributed-memory machines. We give efficient, fast, and practicable algorithms for sampling single items, k items with/without replacement, permutations, subsets, and reservoirs. We also give improved sequential algorithms for alias table construction and for sampling with replacement. Experiments on shared-memory parallel machines with up to 158 threads show near linear speedups both for construction and queries.
| Related KIT institution | Institute of Theoretical Informatics (ITI) |
|---|---|
| Language | English |
| KITopen ID | 1000097067 |
| Keywords | categorical distribution, multinoulli distribution, parallel algorithm, alias method, PRAM, communication efficient algorithm, subset sampling, reservoir sampling |
| Publisher | Schloss Dagstuhl - Leibniz-Zentrum für Informatik (LZI) |
| Series | Leibniz International Proceedings in Informatics (144) ISSN: 0000-2008 |
| Event | 27th Annual European Symposium on Algorithms (ESA), Garching bei München, Germany, Sep 9 – 11, 2019 |
| Referenced in | Scopus OpenAlex arXiv |
| HGF programme | 46.12.02 (POF III, LK 01) Data Activities |