SIMPLE ALGORITHMS FOR ENUMERATING INTERPOINT DISTANCES AND FINDING k NEAREST NEIGHBORS

被引:33
作者
Dickerson, Matthew T. [1 ]
Drysdale, R. L. Scot [2 ]
Sack, Joerg-Ruediger [3 ]
机构
[1] Middlebury Coll, Dept Math & Comp Sci, Middlebury, VT 05753 USA
[2] Dartmouth Coll, Dept Math & Comp Sci, Hanover, NH 03755 USA
[3] Carleton Univ, Sch Comp Sci, Ottawa, ON K1S 5B6, Canada
基金
加拿大自然科学与工程研究理事会; 美国国家科学基金会;
关键词
Algorithms; enumeration; selection; Delaunay triangulation; nearest neighbors;
D O I
10.1142/S0218195992000147
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present an O(n log n k log k) time and O(n k) space algorithm which takes as input a set of n points in the plane and enumerates the k smallest distances between pairs of points in nondecreasing order. We also present an O(n log n + kn log k) solution to the problem of finding the k nearest neighbors for each of n points. Both algorithms are conceptually very simple, are easy to implement, and are based on a common data structure: the Delaunay triangulation. Variants of the algorithms work for any convex distance function metric.
引用
收藏
页码:221 / 239
页数:19
相关论文
共 17 条
[1]  
AGARWAL PK, 1990, PROCEEDINGS OF THE SIXTH ANNUAL SYMPOSIUM ON COMPUTATIONAL GEOMETRY, P321, DOI 10.1145/98524.98597
[2]   A LINEAR-TIME ALGORITHM FOR COMPUTING THE VORONOI DIAGRAM OF A CONVEX POLYGON [J].
AGGARWAL, A ;
GUIBAS, LJ ;
SAXE, J ;
SHOR, PW .
DISCRETE & COMPUTATIONAL GEOMETRY, 1989, 4 (06) :591-604
[3]  
Blum M., 1973, Journal of Computer and System Sciences, V7, P448, DOI 10.1016/S0022-0000(73)80033-9
[4]  
Chazelle B., 1985, P ACM S COMPUTATIONA, P125
[5]  
CHEW LP, 1985, P 1 ANN ACM S COMP G, P235
[6]  
Dickerson M., 1991, P 7 ANN ACM S COMP G, P159
[7]   FIXED-RADIUS NEAR NEIGHBORS SEARCH ALGORITHMS FOR POINTS AND SEGMENTS [J].
DICKERSON, MT ;
DRYSDALE, RS .
INFORMATION PROCESSING LETTERS, 1990, 35 (05) :269-273
[8]  
Drysdale R.L., 1990, P 1 ANN ACM SIAM S D, P235
[9]   PRIMITIVES FOR THE MANIPULATION OF GENERAL SUBDIVISIONS AND THE COMPUTATION OF VORONOI DIAGRAMS [J].
GUIBAS, L ;
STOLFI, J .
ACM TRANSACTIONS ON GRAPHICS, 1985, 4 (02) :74-123
[10]  
LEE DT, 1982, IEEE T COMPUT, V31, P478, DOI 10.1109/TC.1982.1676031