English

Randomizing the Number of Centers in k-means++

Data Structures and Algorithms 2026-07-28 v1 Machine Learning Machine Learning

Abstract

The kk-means++ algorithm is a standard and widely used seeding method for kk-means clustering, but for a fixed number kk of centers its worst-case expected approximation ratio is Θ(logk)\Theta(\log k). We consider the same algorithm when an adversary first fixes the dataset and some KK; the number of centers kk is then chosen uniformly from {K,,2K1}\{K,\ldots,2K-1\}. We prove that kk-means++ is an O(1)O(1)-approximation with constant probability in this budget-smoothed setup.

Keywords

Cite

@article{arxiv.2607.26202,
  title  = {Randomizing the Number of Centers in k-means++},
  author = {Vaclav Rozhon},
  journal= {arXiv preprint arXiv:2607.26202},
  year   = {2026}
}