English

Fully Dynamic Euclidean k-Means

Data Structures and Algorithms 2026-04-03 v4

Abstract

We consider the Euclidean kk-means clustering problem in a dynamic setting, where we have to explicitly maintain a solution (a set of kk centers) SRdS \subseteq \mathbb{R}^d subject to point insertions/deletions in Rd\mathbb{R}^d. We present a dynamic algorithm for Euclidean kk-means with poly(1/ϵ)\mathrm{poly}(1/\epsilon)-approximation ratio, O~(kϵ)\tilde{O}(k^{\epsilon}) update time, and O~(1)\tilde{O}(1) recourse, for any ϵ(0,1)\epsilon \in (0,1), even when dd and kk are both part of the input. This is the first algorithm to achieve a constant ratio with o(k)o(k) update time for this problem, whereas the previous O(1)O(1)-approximation runs in O~(k)\tilde O(k) update time [Bhattacharya, Costa, Farokhnejad; STOC'25]. In fact, previous algorithms cannot go beyond O(k)O(k) update time precisely because they are designed for general metrics where an Ω(k)\Omega(k) lower bound is known. We break this O(k)O(k) barrier by devising new fundamental data structures to utilize Euclidean properties: a structure that (implicitly) maintains a clustering subject to both center and data point updates, and a range query structure that can evaluate a mergeable function over any metric ball range given as a query. To obtain these structures, we devise the first consistent hashing scheme [Czumaj, Jiang, Krauthgamer, Vesel{\'{y}}, Yang; FOCS'22] that achieves O~(nϵ)\tilde O(n^{\epsilon}) running time per point evaluation with competitive parameters. Our final algorithm exploits the framework of [Bhattacharya, Costa, Farokhnejad; STOC'25] for general metrics. The key change is to redesign several critical subroutines so that they reduce to our new Euclidean data structures, replacing the general-metric implementations that are unlikely to run efficiently even when Euclidean properties are provided.

Keywords

Cite

@article{arxiv.2507.11256,
  title  = {Fully Dynamic Euclidean k-Means},
  author = {Sayan Bhattacharya and Martín Costa and Ermiya Farokhnejad and Shaofeng H. -C. Jiang and Yaonan Jin and Jianing Lou},
  journal= {arXiv preprint arXiv:2507.11256},
  year   = {2026}
}
R2 v1 2026-07-01T04:02:13.262Z