arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1903.00227cs.DScs.DC
收藏

并行加权随机抽样

Parallel Weighted Random Sampling

Lorenz Hübschle-Schneider, Peter Sanders

摘要:

用于从一组加权项进行有效采样的数据结构是许多应用的重要构建块。然而,很少有并行的解决方案是已知的。我们为共享内存和分布式内存机器填补了许多这些差距。我们给出了高效,快速,实用的并行算法,用于构建数据结构,支持采样单个项目(别名表,压缩数据结构)。这也产生了一个简化的和更节省空间的顺序算法别名表的建设。我们从有/无替换的$n$项目中抽取$k$的方法以及子集(泊松)抽样方法是输出敏感的,即,采样算法在不同样本的数量上使用线性工作。这在顺序的情况下也是有趣的。加权随机置换可以通过对适当的随机偏差进行排序来完成。我们表明,这是可能的线性工作,使用这些偏离的非线性变换。最后,我们给出了一个通信效率高,高度可扩展的方法(加权和未加权)水库采样。该算法是基于一个完全分布式模型的流算法,可能是独立的利益。实验别名表和采样与替换显示近线性加速的建设和查询使用多达158个线程的共享内存机器。在多达256个节点(5120个岩心)上进行分布式加权油藏采样的实验评估也显示出良好的加速比。

英文摘要:

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 parallel algorithms for building data structures that support sampling single items (alias tables, compressed data structures). This also yields a simplified and more space-efficient sequential algorithm for alias table construction. Our approaches to sampling $k$ out of $n$ items with/without replacement and to subset (Poisson) sampling are output-sensitive, i.e., the sampling algorithms use work linear in the number of different samples. This is also interesting in the sequential case. Weighted random permutation can be done by sorting appropriate random deviates. We show that this is possible with linear work using a nonlinear transformation of these deviates. Finally, we give a communication-efficient, highly scalable approach to (weighted and unweighted) reservoir sampling. This algorithm is based on a fully distributed model of streaming algorithms that might be of independent interest. Experiments for alias tables and sampling with replacement show near linear speedups both for construction and queries using up to 158 threads of shared-memory machines. An experimental evaluation of distributed weighted reservoir sampling on up to 256 nodes (5120 cores) also shows good speedups.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑