Skip to main content
Log in

Probabilistic analysis of an algorithm for solving thek-dimensional all-nearest-neighbors problem by projection

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

A well-known simple heuristic algorithm for solving the all-nearest-neighbors problem in thek-dimensional Euclidean spaceE k,k>1, projects the given point setS onto thex-axis. For each pointq εS a nearest neighbor inS under anyL p -metric (1 ≤p ≤ ∞) is found by sweeping fromq into two opposite directions along thex-axis. If δ q denotes the distance betweenq and its nearest neighbor inS the sweep process stops after all points in a vertical 2δ q -slice centered aroundq have been examined. We show that this algorithm solves the all-nearest-neighbors problem forn independent and uniformly distributed points in the unit cube [0,1]k in Θ(n 2−1/k) expected time, while its worst-case performance is Θ(n 2).

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. H. Friedman, F. Baskett and L. J. Shustek,An algorithm for finding nearest neighbors, IEEE Transactions on Computers C-24, 10, 1000–1006, October 1975.

    Google Scholar 

  2. M. Golin,Probabilistic analysis of geometric algorithms, Ph.D. thesis, Princeton University, Department of Computer Science, CS-TR-266-90, June 1990.

  3. K. Hinrichs, J. Nievergelt and P. Schorn,Plane-sweep solves the closest pair problem elegantly, Information Processing Letters 26 (1988), 255–261.

    Google Scholar 

  4. K. Hinrichs, J. Nievergelt and P. Schorn,An allround sweep algorithm for 2-dimensional nearest-neighbor problems, Proc. of the Second Canadian Conference in Computational Geometry, University of Ottawa (1990), 343–346.

  5. E. Kaufmann and R.-D. Reiss,On conditional distributions of nearest neighbors, Mathematischer Forschungsbericht 244/1990, Universität-GH-Siegen.

  6. C. H. Papadimitriou and J. L. Bentley,A worst-case analysis of nearest neighbor searching by projection, 7th Int. Conf. on Automata, Languages and Programming (1980), 470–482.

  7. R.-D. Reiss,Approximate Distributions of Order Statistics, Springer-Verlag, New York, 1989.

    Google Scholar 

  8. P. Schorn,Accurate and efficient algorithms for proximity problems, Proc. of the Second Canadian Conference in Computational Geometry, University of Ottawa, Canada (1990), 24–27.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Bartling, F., Hinrichs, K. Probabilistic analysis of an algorithm for solving thek-dimensional all-nearest-neighbors problem by projection. BIT 31, 558–565 (1991). https://doi.org/10.1007/BF01933171

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

CR categories

Key words

Navigation