This is Python implementation of the Closest Pair of Points algorithm. It uses pyplot from matplotlib Python library to show points on a graph and animate them.
This algorithm runs in O(nlogn) time.
The algorithm divides the array of points in the middle and recursively solves left and right side. If number of points is less than 3, it uses brute-force technique.
You can find the full source code at : Closest Pair of Points