English

Deterministic $k$-Median Clustering in Near-Optimal Time

Data Structures and Algorithms 2026-03-31 v2

Abstract

The metric kk-median problem is a textbook clustering problem. As input, we are given a metric space VV of size nn and an integer kk, and our task is to find a subset SVS \subseteq V of at most kk `centers' that minimizes the total distance from each point in VV to its nearest center in SS. Mettu and Plaxton [UAI'02] gave a randomized algorithm for kk-median that computes a O(1)O(1)-approximation in O~(nk)\tilde O(nk) time. They also showed that any algorithm for this problem with a bounded approximation ratio must have a running time of Ω(nk)\Omega(nk). Thus, the running time of their algorithm is optimal up to polylogarithmic factors. For deterministic kk-median, Guha et al.~[FOCS'00] gave an algorithm that computes a poly(log(n/k))\text{poly}(\log (n/k))-approximation in O~(nk)\tilde O(nk) time, where the degree of the polynomial in the approximation is unspecified. To the best of our knowledge, this remains the state-of-the-art approximation of any deterministic kk-median algorithm with this running time. This leads us to the following natural question: What is the best approximation of a deterministic kk-median algorithm with near-optimal running time? We make progress in answering this question by giving a deterministic algorithm that computes a O(log(n/k))O(\log(n/k))-approximation in O~(nk)\tilde O(nk) time. We also provide a lower bound showing that any deterministic algorithm with this running time must have an approximation ratio of Ω(logn/(logk+loglogn))\Omega(\log n/(\log k + \log \log n)), establishing a gap between the randomized and deterministic settings for kk-median.

Keywords

Cite

@article{arxiv.2504.15115,
  title  = {Deterministic $k$-Median Clustering in Near-Optimal Time},
  author = {Martín Costa and Ermiya Farokhnejad},
  journal= {arXiv preprint arXiv:2504.15115},
  year   = {2026}
}

Comments

Accepted at ICALP 2025, Results for $k$-Means are updated in the new version

R2 v1 2026-06-28T23:05:47.916Z