Building a Balanced k-d Tree in O(kn log n) Time
Not on the map. Why?
Abstract (arXiv)
The original description of the k-d tree recognized that rebalancing techniques, such as are used to build an AVL tree or a red-black tree, are not applicable to a k-d tree. Hence, in order to build a balanced k-d tree, it is necessary to find the median of the data for each recursive subdivision of those data. The sort or selection that is used to find the median for each subdivision strongly influences the computational complexity of building a k-d tree. This paper discusses an alternative algorithm that builds a balanced k-d tree by presorting the data in each of k dimensions prior to building the tree. It then preserves the order of these k sorts during tree construction and thereby avoids the requirement for any further sorting. Moreover, this algorithm is amenable to parallel execution via multiple threads. Compared to an algorithm that finds the median for each recursive subdivision, this presorting algorithm has equivalent performance for four dimensions and better performance for three or fewer dimensions.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Oct 2014.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 2; 2023: 1; 2024: 0; 2025: 0; 2026: 1.
4 papers.
- 2022Improve Sentence Alignment by Divide-and-conquercited by 0
- 2022Detection of Small Holes by the Scale-Invariant Robust Density-Aware Distance (RDAD) Filtrationcited by 0
- 2023Multicriteria Optimization Techniques for Understanding the Case Mix Landscape of a Hospitalcited by 0
- 2026Dynamics Models for Offline Hyperparameter Selection in Real-World RLcited by 0
- 2026Dynamics Models for Offline Hyperparameter Selection in Real-World RL11 Aug 2026
- 2023Multicriteria Optimization Techniques for Understanding the Case Mix Landscape of a Hospital31 Jul 2023
- 2022Detection of Small Holes by the Scale-Invariant Robust Density-Aware Distance (RDAD) Filtration16 Apr 2022
- 2022Improve Sentence Alignment by Divide-and-conquer18 Jan 2022