Skip to main content
Log in

Refinements to nearest-neighbor searching ink-dimensional trees

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

This note presents a simplification and generalization of an algorithm for searchingk-dimensional trees for nearest neighbors reported by Friedmanet al [3]. If the distance between records is measured usingL 2 , the Euclidean norm, the data structure used by the algorithm to determine the bounds of the search space can be simplified to a single number. Moreover, because distance measurements inL 2 are rotationally invariant, the algorithm can be generalized to allow a partition plane to have an arbitrary orientation, rather than insisting that it be perpendicular to a coordinate axis, as in the original algorithm. When ak-dimensional tree is built, this plane can be found from the principal eigenvector of the covariance matrix of the records to be partitioned. These techniques and others yield variants ofk-dimensional trees customized for specific applications.

It is wrong to assume thatk-dimensional trees guarantee that a nearest-neighbor query completes in logarithmic expected time. For smallk, logarithmic behavior is observed on all but tiny trees. However, for largerk, logarithmic behavior is achievable only with extremely large numbers of records. Fork = 16, a search of ak-dimensional tree of 76,000 records examines almost every record.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

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

    Article  MATH  MathSciNet  Google Scholar 

  2. J. L. Bentley,K-dimensional Trees for Semidynamic Point Sets, AT&T Bell Laboratories, Murray Hill, NJ, 1989.

    Google Scholar 

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

    Article  MATH  Google Scholar 

  4. J. E. Zolnowsky, Topics in Computational Geometry, STANC-CS-78-659, Ph.D. Thesis, Stanford University, 1978.

Download references

Author information

Authors and Affiliations

Authors

Additional information

Communicated by Jon Bentley.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Sproull, R.F. Refinements to nearest-neighbor searching ink-dimensional trees. Algorithmica 6, 579–589 (1991). https://doi.org/10.1007/BF01759061

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01759061

Key words

Navigation