Lune

SIGMOD2025Top-tier venue

Parallel kd-tree with Batch Updates

Ziyang Men, Zheqi Shen, Yan Gu, Yihan Sun

2025Year
9Citations
3Top-tier citations

Abstract

The 𝑘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 𝑘d-trees. However, we observed challenges in existing parallel 𝑘d-tree implementations, for both constructions and updates.

The goal of this paper is to develop efficient in-memory 𝑘d-trees by supporting high parallelism and cache-efficiency. We propose the Pkd-tree (Parallel 𝑘d-tree), a parallel 𝑘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 𝑘-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 𝑘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.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 19614f33-dc4e-450d-918b-9e5a9a9982d7

Cited by top-tier papers3

Ask how each one uses it

Builds on4

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines