language-icon Old Web
English
Sign In

Closest pair of points problem

The closest pair of points problem or closest pair problem is a problem of computational geometry: given n points in metric space, find a pair of points with the smallest distance between them. The closest pair problem for points in the Euclidean plane was among the first geometric problems that were treated at the origins of the systematic study of the computational complexity of geometric algorithms.The closest pair of points can be computed in O(n2) time by performing a brute-force search. To do that, one could compute the distances between all the n(n − 1) / 2 pairs of points, then pick the pair with the smallest distance, as illustrated below.The problem can be solved in O(n log n) time using the recursive divide and conquer approach, e.g., as follows:The dynamic version for the closest-pair problem is stated as follows:

[ "Computational geometry", "Set (abstract data type)" ]
Parent Topic
Child Topic
    No Parent Topic