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).
Similar content being viewed by others
References
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.
M. Golin,Probabilistic analysis of geometric algorithms, Ph.D. thesis, Princeton University, Department of Computer Science, CS-TR-266-90, June 1990.
K. Hinrichs, J. Nievergelt and P. Schorn,Plane-sweep solves the closest pair problem elegantly, Information Processing Letters 26 (1988), 255–261.
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.
E. Kaufmann and R.-D. Reiss,On conditional distributions of nearest neighbors, Mathematischer Forschungsbericht 244/1990, Universität-GH-Siegen.
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.
R.-D. Reiss,Approximate Distributions of Order Statistics, Springer-Verlag, New York, 1989.
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.
Author information
Authors and Affiliations
Rights 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
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01933171