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

具有批量更新的低维并行最近邻算法

Parallel Nearest Neighbors in Low Dimensions with Batch Updates

Magdalen Dobson, Guy Blelloch

摘要:

我们提出了一套并行算法计算精确的k-近邻在低维。许多k-最近邻算法使用kd树或莫顿排序的点集,我们的算法结合这些方法使用的数据结构,我们称之为\textit{zd-tree}。我们表明,这种组合是理论上有效的共同假设下,并在实践中快速。对于具有有界扩展常数和有界比率的大小为$n$的点集,可以在$O(n)$工作中构建zd树,其中$O(n^ε)$跨度为常数$ε<1$,并且搜索点的$k$ -最近邻需要预期的$O(k\log k)$时间。我们对现有的并行k-最近邻算法的k-最近邻算法进行基准测试,表明我们的实现通常比现有技术更快,并且在144个超线程上实现了75倍的加速比。此外,zd树支持并行批动态插入和删除;据我们所知,它是第一个支持这种更新的k-最近邻数据结构。在具有有界扩展常数和有界比率的点集上,批量动态更新大小$k$需要$O(k \log n/k)$与$O(k^ε + \text{polylog}(n))$跨度一起工作。

英文摘要:

We present a set of parallel algorithms for computing exact k-nearest neighbors in low dimensions. Many k-nearest neighbor algorithms use either a kd-tree or the Morton ordering of the point set; our algorithms combine these approaches using a data structure we call the \textit{zd-tree}. We show that this combination is both theoretically efficient under common assumptions, and fast in practice. For point sets of size $n$ with bounded expansion constant and bounded ratio, the zd-tree can be built in $O(n)$ work with $O(n^ε)$ span for constant $ε<1$, and searching for the $k$-nearest neighbors of a point takes expected $O(k\log k)$ time. We benchmark our k-nearest neighbor algorithms against existing parallel k-nearest neighbor algorithms, showing that our implementations are generally faster than the state of the art as well as achieving 75x speedup on 144 hyperthreads. Furthermore, the zd-tree supports parallel batch-dynamic insertions and deletions; to our knowledge, it is the first k-nearest neighbor data structure to support such updates. On point sets with bounded expansion constant and bounded ratio, a batch-dynamic update of size $k$ requires $O(k \log n/k)$ work with $O(k^ε + \text{polylog}(n))$ span.

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

↑