高效随机采样--并行、矢量化、高速缓存高效和在线
Efficient Random Sampling -- Parallel, Vectorized, Cache-Efficient, and Online
摘要:
我们考虑的问题,采样$n$数的范围$\{1,\ldots,N\}$没有更换的现代架构。主要结果是一个简单的分治方案,使顺序算法更有缓存效率,并导致并行算法在$p$处理器上以预期时间$\mathcal{O}(n/p+\log p)$运行,即,即使对于中等值的$n$,也可以扩展到大规模并行机。处理器之间的通信量非常小(最多$\mathcal{O}(\log p)$),并且与样本大小无关。我们还讨论了负载均衡,在线采样,采样与替换,伯努利采样,和向量化的SIMD单元或GPU上所需的修改。
英文摘要:
We consider the problem of sampling $n$ numbers from the range $\{1,\ldots,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 $\mathcal{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 $\mathcal{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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。