English

A $(2+\varepsilon)$-Approximation Algorithm for Metric $k$-Median

Data Structures and Algorithms 2026-05-21 v2

Abstract

In the classical NP-hard metric kk-median problem, we are given a set of nn clients and centers with metric distances between them, along with an integer parameter k1k\geq 1. The objective is to select a subset of kk open centers that minimizes the total distance from each client to its closest open center. In their seminal work, Jain, Mahdian, Markakis, Saberi, and Vazirani presented the Greedy algorithm for facility location, which implies a 22-approximation algorithm for kk-median that opens kk centers in expectation. Since then, substantial research has aimed at narrowing the gap between their algorithm and the best achievable approximation by an algorithm guaranteed to open exactly kk centers. During the last decade, all improvements have been achieved by leveraging their algorithm or a small improvement thereof, followed by a second step called bi-point rounding, which inherently increases the approximation guarantee. Our main result closes this gap: for any ϵ>0\epsilon >0, we present a (2+ϵ)(2+\epsilon)-approximation algorithm for kk-median, improving the previous best-known approximation factor of 2.6132.613. Our approach builds on a combination of two algorithms. First, we present a non-trivial modification of the Greedy algorithm that operates with O(logn/ϵ2)O(\log n/\epsilon^2) adaptive phases. Through a novel walk-between-solutions approach, this enables us to construct a (2+ϵ)(2+\epsilon)-approximation algorithm for kk-median that consistently opens at most k+O(logn/ϵ2)k + O(\log n{/\epsilon^2}) centers. Second, we develop a novel (2+ϵ)(2+\epsilon)-approximation algorithm tailored for stable instances, where removing any center from an optimal solution increases the cost by at least an Ω(ϵ3/logn)\Omega(\epsilon^3/\log n) fraction. Achieving this involves a sampling approach inspired by the kk-means++ algorithm and a reduction to submodular optimization subject to a partition matroid.

Keywords

Cite

@article{arxiv.2503.10972,
  title  = {A $(2+\varepsilon)$-Approximation Algorithm for Metric $k$-Median},
  author = {Vincent Cohen-Addad and Fabrizio Grandoni and Euiwoong Lee and Chris Schwiegelshohn and Ola Svensson},
  journal= {arXiv preprint arXiv:2503.10972},
  year   = {2026}
}
R2 v1 2026-06-28T22:19:57.927Z