arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.02379cs.DScs.CG
收藏

一种求解最近对问题的并行批动态数据结构

A Parallel Batch-Dynamic Data Structure for the Closest Pair Problem

Yiqiu Wang, Shangdi Yu, Yan Gu, Julian Shun

摘要:

我们提出了一个理论上有效和实用的并行批动态数据结构的最接近对问题。我们的解决方案是基于Golin等人的串行动态最接近对数据结构,并且支持并行的批量插入和删除。对于大小为$n$的数据集,我们的数据结构支持在$O(m(1+\log ((n+m)/m)))$期望工作和$O(\log (n+m)\log^*(n+m))$深度中以高概率批量插入或删除大小为$m$的数据,并占用线性空间。实现这些边界的关键技术是一个新的工作高效的并行批处理动态二进制堆,并仔细管理跨点集的计算,以最大限度地减少工作和深度。我们使用动态哈希表、并行堆和动态$k$ -d树来提供我们的数据结构的优化多核实现。我们在各种合成和真实世界的数据集上的实验表明,它在48个核上实现了高达38.57倍(平均15.10倍)的并行加速比。此外,我们还实现和比较四个并行算法的静态最接近对问题,我们不知道任何现有的实际实现。在具有超线程的48个核心上,静态算法实现了高达51.45倍(平均29.42倍)的加速比,Rabin算法的平均性能最好。比较我们的动态算法的最快的静态算法,我们发现,它是有利的,使用动态算法的批量大小高达20%的数据集。据我们所知,我们的工作是第一个实验评估并行最近对算法,在静态和动态设置。

英文摘要:

We propose a theoretically-efficient and practical parallel batch-dynamic data structure for the closest pair problem. Our solution is based on a serial dynamic closest pair data structure by Golin et al., and supports batches of insertions and deletions in parallel. For a data set of size $n$, our data structure supports a batch of insertions or deletions of size $m$ in $O(m(1+\log ((n+m)/m)))$ expected work and $O(\log (n+m)\log^*(n+m))$ depth with high probability, and takes linear space. The key techniques for achieving these bounds are a new work-efficient parallel batch-dynamic binary heap, and careful management of the computation across sets of points to minimize work and depth. We provide an optimized multicore implementation of our data structure using dynamic hash tables, parallel heaps, and dynamic $k$-d trees. Our experiments on a variety of synthetic and real-world data sets show that it achieves a parallel speedup of up to 38.57x (15.10x on average) on 48 cores with hyper-threading. In addition, we also implement and compare four parallel algorithms for static closest pair problem, for which we are not aware of any existing practical implementations. On 48 cores with hyper-threading, the static algorithms achieve up to 51.45x (29.42x on average) speedup, and Rabin's algorithm performs the best on average. Comparing our dynamic algorithm to the fastest static algorithm, we find that it is advantageous to use the dynamic algorithm for batch sizes of up to 20\% of the data set. As far as we know, our work is the first to experimentally evaluate parallel closest pair algorithms, in both the static and the dynamic settings.

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

↑