The $k$d-tree is one of the most widely used data structures to manage multi-dimensional data. Due to the ever-growing data volume, it is imperative to consider parallelism in $k$d-trees. However, we observed challenges in existing parallel kd-tree implementations, for both constructions and updates.
The goal of this paper is to develop efficient in-memory $k$d-trees by supporting high parallelism and cache-efficiency. We propose the Pkd-tree (Parallel $k$d-tree), a parallel $k$d-tree that is efficient both in theory and in practice. The Pkd-tree supports parallel tree construction, batch update (insertion and deletion), and various queries including k-nearest neighbor search, range query, and range count. We proved that our algorithms have strong theoretical bounds in work (sequential time complexity), span (parallelism), and cache complexity. Our key techniques include 1) an efficient construction algorithm that optimizes work, span, and cache complexity simultaneously, and 2) reconstruction-based update algorithms that guarantee the tree to be weight-balanced. With the new algorithmic insights and careful engineering effort, we achieved a highly optimized implementation of the Pkd-tree.
We tested Pkd-tree with various synthetic and real-world datasets, including both uniform and highly skewed data. We compare the Pkd-tree with state-of-the-art parallel $k$d-tree implementations. In all tests, with better or competitive query performance, Pkd-tree is much faster in construction and updates consistently than all baselines. We released our code.
在这项工作中,我们回顾了ITMO大学Vitaly Aksenov监督下完成的学士学位论文。本概述简要介绍了六个主题:Oleg Fafurin的“Development of a Streaming Algorithm for the Decomposition of graphy to Tree decomposition”、Roman Smirnov的“Development of Memory-friendly Concurrent数据结构“、Daniil Bolotov的“Theoretical Analysis of the Performance of Concurrent数据结构“、Alena Martsenyuk的“Parallel Batched Interpolation Search Tree”Vitalii Krasnov的“并行批处理自调整数据结构”和Ildar Zinatulin的“并行批处理持久二进制搜索树”。
Sensitive Distance and Reachability Oracles for Large Batch Updates
在敏感距离预言问题中,有三个阶段。我们首先预处理一个给定的有向图$G$与$n$节点和整数权重从$[-W,W]$。其次,给定一批$f$边插入和删除,我们更新数据结构。第三,给定查询节点对$(u,v)$,返回从$u$到$v$的距离。在称为敏感可达性预言机问题的更简单问题中,我们只询问是否存在从$u$到$v$的有向路径。我们的第一个结果是一个敏感的距离预言与$\tilde{O}(Wn^{ω+(3-ω)μ})$预处理时间,$\tilde{O}(Wn^{2-μ}f^{2}+Wnf^ω)$更新时间,和$\tilde{O}(Wn^{2-μ}f+Wnf^{2})$查询时间,其中参数$μ\in[0,1]$可以选择。数据结构需要$O(Wn^{2+μ} \log n)$位的内存。这是第一个可以处理$f\ge\log n$更新的算法。之前的结果(例如[Demetrescu et al. SICOMP'08; Bernstein and Karger SODA'08 and FOCS'09; Duan and Pettie SODA'09; Grandoni and Williams FOCS'12])最多可以处理2次更新。当$3\le f\le\log n$,唯一的非平凡算法是由[Weimann和Yuster FOCS'10]。当$W=\tilde{O}(1)$,我们的算法同时提高了他们的预处理时间,更新…