Year: 2025
Type: article
Abstract: The kd-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 kd-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 kd-trees by supporting high parallelism and cache-efficiency. We propose the Pkd-tree (Parallel kd-tree), a parallel kd-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 kd-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.
DOI: 10.1145/3709712
Authors: Ziyang Men, Zheqi Shen, Yan Gu, Yihan Sun
Institution: University of California, Riverside
Language: English
Subfield: Signal Processing
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
Awards: CAREER: Efficient Algorithms for Modern Computer Architecture, III: Small: Rethinking the Data Organization and Lifecycle in LSM Storage Systems, G3894975505, G6671297155, CAREER: Parallel Algorithms: Theory for Practice, AF: Small: New Directions for Parallel Data Structures, NSF POSE: Phase II: Open-Source Ecosystem for OpenCilk
OpenAlex ID: W4407357395
