article
Open access
Efficient Parallel Random Sampling : Vectorized, Cache-Efficient, and Online
Research footprint
At a glance
- Citations
- 26
- References
- 28
- Comments
- 0
Paper overview
Öz
We consider the problem of sampling n numbers from the range { 1,… , N } without replacement on modern architectures. The main result is a simple divide-and-conquer scheme that makes sequential algorithms more cache efficient and leads to a parallel algorithm running in expected time O ( n / p +log p ) on p processors, i.e., scales to massively parallel machines even for moderate values of n . The amount of communication between the processors is very small (at most O (log p )) and independent of the sample size. We also discuss modifications needed for load balancing, online sampling, sampling with replacement, Bernoulli sampling, and vectorization on SIMD units or GPUs.
Record transparency
Publication details
- DOI
- 10.5445/ir/1000081051
- OpenAlex
- W3122247640
- Document type
- article
- Language
- EN
- Source
- Repository KITopen (Karlsruhe Institute of Technology)
- Last metadata update
Comments
Oturum Açın to join the discussion.