Skip to main content

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

  • Conference paper
  • First Online:
Algorithms - ESA 2000 (ESA 2000)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1879))

Included in the following conference series:

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 ℝd, for fixed d ≥ 1, using the simple rule of splitting each node’s hyperrectangular 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.

This research partially supported by NSF grant CCR-9732300 and ARO grant DAAH04-96-1-0013.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. S. Arya and D. M. Mount. Approximate range searching. In Proc. 11th Annu. ACM Sympos. Comput. Geom., pages 172–181, 1995.

    Google Scholar 

  2. S. Arya, D. M. Mount, N. S. Netanyahu, R. Silverman, and A. Wu. An optimal algorithm for approximate nearest neighbor searching. In Proc. 5th ACM-SIAM Sympos. Discrete Algorithms, pages 573–582, 1994.

    Google Scholar 

  3. J. L. Bentley. Multidimensional binary search trees used for associative searching. Commun. ACM, 18(9):509–517, 1975.

    Article  MATH  MathSciNet  Google Scholar 

  4. J. L. Bentley. K-d trees for semidynamic point sets. In Proc. 6th Annu. ACM Sympos. Comput. Geom., pages 187–197, 1990.

    Google Scholar 

  5. P. B. Callahan and S. R. Kosaraju. A decomposition of multidimensional point sets with applications to k-nearest-neighbors and n-body potential fields. J. ACM, 42:67–90, 1995.

    Article  MATH  MathSciNet  Google Scholar 

  6. B. Chazelle. A functional approach to data structures and its use in multidimensional searching. SIAM J. Comput., 17:427–462, 1988.

    Article  MATH  MathSciNet  Google Scholar 

  7. J. R. Driscoll, H. N. Gabow, R. Shrairaman, and R. E. Tarjan. Relaxed heaps: An alternative to Fibonacci heaps with applications to parallel computation. Commun. ACM, 31:1343–1354, 1988.

    Article  Google Scholar 

  8. C. A. Duncan. Balanced Aspect Ratio Trees. Ph.D. thesis, Dept. of Computer Science, Johns Hopkins Univ., 1999.

    Google Scholar 

  9. C. A. Duncan, M. T. Goodrich, and S. G. Kobourov. Balanced aspect ratio trees and their use for drawing very large graphs. In Proc. Graph Drawing’ 98, LNCS 1547, pages 111–124. Springer-Verlag, 1998.

    Chapter  Google Scholar 

  10. A. Duncan, M. T. Goodrich, and S. G. Kobourov. Balanced aspect ratio trees: Combining the advantages of k-d trees and octrees. In Proc. 10th ACM-SIAM Symp. on Discrete Algorithms (SODA), pages 300–309, 1999.

    Google Scholar 

  11. M. Fredman and R. E. Tarjan. Fibonacci heaps and their uses in improved network optimization problems. J. ACM, 34:596–615, 1987.

    Article  MathSciNet  Google Scholar 

  12. J. H. Friedman, J. L. Bentley, and R. A. Finkel. An algorithm for finding best matches in logarithmic expected time. ACM Trans. Math. Softw., 3:209–226, 1977.

    Article  MATH  Google Scholar 

  13. D. T. Lee and C. K. Wong. Worst-case analysis for region and partial region searches in multidimensional binary search trees and balanced quad trees. Acta Inform., 9:23–29, 1977.

    Article  MATH  MathSciNet  Google Scholar 

  14. S. Maneewongvatana and D. M. Mount. It’s okay to be skinny, if your friends are fat. In 4th Annual CGC Workshop on Computational Geometry, 1999.

    Google Scholar 

  15. M. H. Overmars and J. van Leeuwen. Dynamic multi-dimensional data structures based on quad-and k-d trees. Acta Inform., 17:267–285, 1982.

    Article  MATH  MathSciNet  Google Scholar 

  16. Y. V. Silva Filho. Average case analysis of region search in balanced k-d trees. Inform. Process. Lett., 8:219–223, 1979.

    Article  MATH  MathSciNet  Google Scholar 

  17. Y. V. Silva Filho. Optimal choice of discriminators in a balanced k-d binary search tree. Inform. Process. Lett., 13:67–70, 1981.

    Article  MATH  MathSciNet  Google Scholar 

  18. R. F. Sproull. Refinements to nearest-neighbor searching. Algorithmica, 6:579–589, 1991.

    Article  MATH  MathSciNet  Google Scholar 

  19. M. J vanKreveld and M. H. Overmars. Divided k-d trees. Algorithmica, 6:840–858, 1991.

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Dickerson, M., Duncan, C.A., Goodrich, M.T. (2000). K-D Trees Are Better when Cut on the Longest Side. In: Paterson, M.S. (eds) Algorithms - ESA 2000. ESA 2000. Lecture Notes in Computer Science, vol 1879. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45253-2_17

Download citation

  • DOI: https://doi.org/10.1007/3-540-45253-2_17

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-41004-1

  • Online ISBN: 978-3-540-45253-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics