Farthest-first traversal 2026-10-24
Starting with an arbitrary point in a finite metric space, repeatedly select a point maximizing its distance to the selected set. Maintain each point's distance to its nearest selected center; each new center updates all those distances, giving distance evaluations for centers.
For the metric k-center problem, let be the final covering radius and add a point realizing to the selected centers. Every pair among these points has distance at least : at each selection the current maximum distance is at least its final value. If the optimum radius is , two of these points belong to the same optimal radius- closed ball, so the triangle inequality gives . The case is already optimal. This proves a factor-two approximation algorithm.
Metric k-center problem 2026-10-24
The metric k-center problem chooses at most centers from a finite metric space to minimize the largest distance from a point to its nearest center. For , exactly centers gives the same optimum: extra centers never increase the radius. The restriction that centers belong to matters; allowing centers anywhere in an ambient metric space is a different problem.
The basic packing argument is short. If a radius- solution uses centers, its closed balls cover . Two points assigned to the same center have distance at most by the triangle inequality. Thus points with pairwise distances greater than certify that no radius- solution exists. Greedily selecting a new center only outside all existing radius- closed balls therefore uses at most centers whenever a radius- solution exists, and its final covering radius is at most . The farthest-first traversal achieves the same approximation ratio without knowing .
Past exam of the computer science course of the University of Oxford 2019 Algorithms 3 d i Solution 2026-10-25
Assume the standard nonempty instance convention , and set . Start with no centers. Pick any city still farther than from every selected center, add it as a center, and mark every city within distance of it as covered. Stop when all cities are covered.
Distinct chosen centers have pairwise distance greater than . Fix an optimal set of centers and assign each city to one optimal center within distance . Two cities assigned to the same center have distance at most by the triangle inequality. Thus no two chosen centers can be assigned to that same optimal center. The pigeonhole principle shows that the greedy procedure selects at most centers and has radius at most . If fewer than are selected, add arbitrary distinct cities; this cannot worsen the radius.