K-D Trees Are Better when Cut on the Longest Side

  • Authors:
  • Matthew Dickerson;Christian A. Duncan;Michael T. Goodrich

  • Affiliations:
  • -;-;-

  • Venue:
  • ESA '00 Proceedings of the 8th Annual European Symposium on Algorithms
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

We show that a popular variant of the well known k-d tree data structure satisfies an important packing lemma. This variant is a binary spatial partitioning tree T defined on a set of n points in Rd, for fixed d ≥ 1, using the simple rule of splitting each node's hyper-rectangular region with a hyperplane that cuts the longest side. An interesting consequence of the packing lemma is that standard algorithms for performing approximate nearest-neighbor searching or range searching queries visit at most O(logd-1 n) nodes of such a tree T in the worst case. Traditionally, many variants of k-d trees have been empirically shown to exhibit polylogarithmic performance, and under certain restrictions in the data distribution some theoretical expected case results have been proven. This result, however, is the first one proving a worst-case polylogarithmic time bound for approximate geometric queries using the simple k-d tree data structure.