English

Optimal Fully Dynamic $k$-Centers Clustering

Data Structures and Algorithms 2021-12-15 v1

Abstract

We present the first algorithm for fully dynamic kk-centers clustering in an arbitrary metric space that maintains an optimal 2+ϵ2+\epsilon approximation in O(kpolylog(n,Δ))O(k \cdot \operatorname{polylog}(n,\Delta)) amortized update time. Here, nn is an upper bound on the number of active points at any time, and Δ\Delta is the aspect ratio of the data. Previously, the best known amortized update time was O(k2polylog(n,Δ))O(k^2\cdot \operatorname{polylog}(n,\Delta)), and is due to Chan, Gourqin, and Sozio. We demonstrate that the runtime of our algorithm is optimal up to polylog(n,Δ)\operatorname{polylog}(n,\Delta) factors, even for insertion-only streams, which closes the complexity of fully dynamic kk-centers clustering. In particular, we prove that any algorithm for kk-clustering tasks in arbitrary metric spaces, including kk-means, kk-medians, and kk-centers, must make at least Ω(nk)\Omega(n k) distance queries to achieve any non-trivial approximation factor. Despite the lower bound for arbitrary metrics, we demonstrate that an update time sublinear in kk is possible for metric spaces which admit locally sensitive hash functions (LSH). Namely, we demonstrate a black-box transformation which takes a locally sensitive hash family for a metric space and produces a faster fully dynamic kk-centers algorithm for that space. In particular, for a large class of metrics including Euclidean space, p\ell_p spaces, the Hamming Metric, and the Jaccard Metric, for any c>1c > 1, our results yield a c(4+ϵ)c(4+\epsilon) approximate kk-centers solution in O(n1/cpolylog(n,Δ))O(n^{1/c} \cdot \operatorname{polylog}(n,\Delta)) amortized update time, simultaneously for all k1k \geq 1. Previously, the only known comparable result was a O(clogn)O(c \log n) approximation for Euclidean space due to Schmidt and Sohler, running in the same amortized update time.

Keywords

Cite

@article{arxiv.2112.07050,
  title  = {Optimal Fully Dynamic $k$-Centers Clustering},
  author = {MohammadHossein Bateni and Hossein Esfandiari and Rajesh Jayaram and Vahab Mirrokni},
  journal= {arXiv preprint arXiv:2112.07050},
  year   = {2021}
}
R2 v1 2026-06-24T08:15:56.389Z