Closest Pair Problem

The closest pair problem is a problem of computational geometry: given nn points in metric space, find a pair of points with the smallest distance between them.