Skip to main content
Springer Nature Link
Log in
Menu
Find a journal Publish with us Track your research
Search
Saved research
Cart
  1. Home
  2. Discrete & Computational Geometry
  3. Article

AnO(n logn) algorithm for the all-nearest-neighbors Problem

  • Published: 01 March 1989
  • Volume 4, pages 101–115 (1989)
  • Cite this article
Download PDF
Save article
View saved research
Discrete & Computational Geometry Aims and scope Submit manuscript
AnO(n logn) algorithm for the all-nearest-neighbors Problem
Download PDF
  • Pravin M. Vaidya1 
  • 4473 Accesses

  • 184 Citations

  • 24 Altmetric

  • Explore all metrics

Abstract

Given a setV ofn points ink-dimensional space, and anL q -metric (Minkowski metric), the all-nearest-neighbors problem is defined as follows: for each pointp inV, find all those points inV−{p} that are closest top under the distance metricL q . We give anO(n logn) algorithm for the all-nearest-neighbors problem, for fixed dimensionk and fixed metricL q . Since there is an Θ(n logn) lower bound, in the algebraic decision-tree model of computation, on the time complexity of any algorithm that solves the all-nearest-neighbors problem (fork=1), the running time of our algorithm is optimal up to a constant factor.

Article PDF

Download to read the full article text

Similar content being viewed by others

An Algorithm for Reducing Approximate Nearest Neighbor to Approximate Near Neighbor with $$O(\log {n})$$ Query Time

Chapter © 2018

Approximate Nearest Neighbor Search Using Query-Directed Dense Graph

Chapter © 2021

Finding All Nearest Neighbors with a Single Graph Traversal

Chapter © 2018

Explore related subjects

Discover the latest articles, books and news in related subjects, suggested using machine learning.
  • Algorithmic Complexity
  • Algorithms
  • Algorithm Analysis and Problem Complexity
  • Computational Complexity
  • Learning algorithms
  • Optimization

References

  1. M. Ben-Or, Lower bounds for algebraic computation trees,Proc. 15th Annual ACM Symp. Theory Comput., 1983, pp. 80–86.

  2. J. L. Bentley, Multidimensional divide-and-conquer,Comm. ACM23 (1980), 214–229.

    Article  MathSciNet  MATH  Google Scholar 

  3. J. L. Bentley, D. F. Stanat, and E. H. Williams, Jr., The complexity of finding fixed radius nearest neighbors,Inform. Process. Lett. 6 (1977), 209–212.

    Article  MathSciNet  MATH  Google Scholar 

  4. J. L. Bentley, B. Weide, and A. Y. Yao, Optimal expected-time algorithms for closest-point problems,ACM Tran. Math. Software 6 (1982), 563–579.

    Article  MathSciNet  Google Scholar 

  5. K. Clarkson, Fast algorithms for the all-nearest-neighbors problem,Proc. 24th Annual Symp. Found. Comput. Sci., 1983, pp. 226–232.

  6. H. N. Gabow, J. L. Bentley, and R. E. Tarjan, Scaling and related techniques for geometry problems,Proc. 16th Annual ACM Symp. Theory Comput., 1984, pp. 135–143.

  7. F. P. Preparata and M. I. Shamos,Computational Geometry: An Introduction, Springer-Verlag, New York, 1985.

    Book  Google Scholar 

  8. E. M. Reingold, J. Nievergelt, and N. Deo,Combinatorial Algorithms: Theory and Practice, Prentice Hall, Englewood Cliffs, NJ, 1977.

    Google Scholar 

  9. M. I. Shamos, Computational Geometry, Ph.D. dissertation, Yale University, New Haven, CT, 1978.

    Google Scholar 

  10. M. O. Rabin, Probabilistic algorithms, inAlgorithms and Complexity (J. F. Traub, ed.), Academic Press, New York, 1976, pp. 21–30.

    Google Scholar 

  11. F. Yuval, Finding nearest neighbors,Inform. Process. Lett. 3 (1975), 113–114.

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

  1. Department of Computer Science, University of Illinois at Urbana-Champaign, 61801, Urbana, IL, USA

    Pravin M. Vaidya

Authors
  1. Pravin M. Vaidya
    View author publications

    Search author on:PubMed Google Scholar

Additional information

Communicated by Herbert Edelsbrunner

This research was supported by a fellowship from the Shell Foundation. The author is currently at AT&T Bell Laboratories, Murray Hill, New Jersey, USA.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Vaidya, P.M. AnO(n logn) algorithm for the all-nearest-neighbors Problem. Discrete Comput Geom 4, 101–115 (1989). https://doi.org/10.1007/BF02187718

Download citation

  • Received: 21 July 1986

  • Revised: 23 March 1987

  • Published: 01 March 1989

  • Issue date: March 1989

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

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Keywords

  • Discrete Comput Geom
  • Input Point
  • Label Vertex
  • Neighbor Problem
  • Complete Binary Tree

Advertisement

Search

Navigation

  • Find a journal
  • Publish with us
  • Track your research

Footer Navigation

Discover content

  • Journals A-Z
  • Books A-Z
  • Subjects A-Z

Publish with us

  • Journal finder
  • Publish your research
  • Language editing
  • Open access publishing

Products and services

  • Our products
  • Librarians
  • Societies
  • Partners and advertisers

Our brands

  • Springer
  • Nature Portfolio
  • BMC
  • Palgrave Macmillan
  • Apress
  • Discover

Corporate Navigation

  • Your US state privacy rights
  • Accessibility statement
  • Terms and conditions
  • Privacy policy
  • Help and support
  • Legal notice
  • Cancel contracts here

3.80.165.112

Not affiliated

Springer Nature

© 2026 Springer Nature