We release the 2-approximation 2-Center clustering.
2-Center Approximation Algorithm
The problem $k$-Center is defined as follows: Given the set
The 2-approximation 2-Center algorithm is an algorithm that provides a solution to the 2-Center problem with an approximation factor of 2, i.e., the algorithm guarantees that the objective value of its solution is at most twice the optimal value.
Our algorithm outputs the centers of the solution (i.e., the centers of the balls). It is a basic 2-approximation 2-Center algorithm based on a greedy technique. Specifically, the algorithm works as follows:
- Pick an arbitrary point in SSS as the first center.
- Select the farthest point from the first center as the second center.
Full Changelog: v1.0.0...v2.0.0