All examples By author By category About

chabb

Closest Pair Problem

Closest pair of points problem is a classic problem. A brute-force will takes N*(N-1)(N-2)... comparisons, which yields an exponential complexity. By using a divide and conquer approach, we fall back to a linearithmic complexity.