cs.DSFeb 9, 2026

Incremental (k, z)-Clustering on Graphs

Authors: Emilio CrucianiSebastian ForsterAntonis Skarlatos

Organizations: European University of Rome, Italy. · Department of Computer Science, University of Salzburg, Salzburg, Austria. · Department of Computer Science, University of Warwick, Coventry, England.

Abstract

Given a weighted undirected graph, a number of clusters kk, and an exponent zz, the goal in the (k,z)(k, z)-clustering problem on graphs is to select kk vertices as centers that minimize the sum of the distances raised to the power zz of each vertex to its closest center. In the dynamic setting, the graph is subject to adversarial edge updates, and the goal is to maintain explicitly an exact (k,z)(k, z)-clustering solution in the induced shortest-path metric. While efficient dynamic kk-center approximation algorithms on graphs exist [Cruciani et al. SODA 2024], to the best of our knowledge, no prior work provides similar results for the dynamic (k,z)(k,z)-clustering problem. As the main result of this paper, we develop a randomized incremental (k,z)(k, z)-clustering algorithm that maintains with high probability a constant-factor approximation in a graph undergoing edge insertions with a total update time of O~(km1+o(1)+k1+1λm)\tilde O(k m^{1+o(1)}+ k^{1+\frac{1}λ} m), where λ1λ\geq 1 is an arbitrary fixed constant. Our incremental algorithm consists of two stages. In the first stage, we maintain a constant-factor bicriteria approximate solution of size O~(k)\tilde{O}(k) with a total update time of m1+o(1)m^{1+o(1)} over all adversarial edge insertions. This first stage is an intricate adaptation of the bicriteria approximation algorithm by Mettu and Plaxton [Machine Learning 2004] to incremental graphs. One of our key technical results is that the radii in their algorithm can be assumed to be non-decreasing while the approximation ratio remains constant, a property that may be of independent interest. In the second stage, we maintain a constant-factor approximate (k,z)(k,z)-clustering solution on a dynamic weighted instance induced by the bicriteria approximate solution. For this subproblem, we employ a dynamic spanner algorithm together with a static (k,z)(k,z)-clustering algorithm.

Explore similar work

Jul 28, 2026cs.DS

Randomizing the Number of Centers in k-means++

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)Θ(\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.
Vaclav Rozhon
Jul 14, 2026cs.DS

Hierarchical F\mathcal{F}-Clustering: Approximation and Hardness of Clustering into Trees and Bounded Diameter Graphs

Consider the following variation on the Hierarchical Clustering problem: Usually, while building a hierarchical clustering, one recursively partitions the data until each cluster becomes a singleton. We relax the halting condition of the recursive process to stop whenever the remaining cluster is a graph belonging to a class F\mathcal{F}. We call this problem Hierarchical F\mathcal{F}-Clustering and we measure the quality of any solution using adapted Dasgupta's clustering objective. We study two natural choices of F\mathcal{F}: trees and graphs of bounded diameter. We present the first polynomial time O(lognloglogn)\mathcal{O}(\log n\cdot\log\log n) and O(logn)\mathcal{O}(\log n)-approximation algorithms for clustering into trees and bounded diameter graphs respectively. Our main technical contribution is a framework for approximating such problems based on linear programming. In fact, we characterize graphs classes F\mathcal{F} for which our approach can be applied and show that it includes both trees and bounded diameter graphs. However, our ideas are not limited to them and might be useful for other structures as well. Broadly speaking, our framework applies whenever the corresponding flat clustering problem, which we call pFp_{\mathcal{F}}-Partitioning, admits a natural ILP formulation together with a rounding procedure with provable approximation guarantees. Intuitively, given a set of vertices called terminals, the problem is to find an edge set whose removal results in satisfying certain vertex-dependent structural predicate for each terminal. We then use these ingredients to build clustering trees with the aforementioned approximation guarantees. To complement these results, we show that both Hierarchical Clustering into trees and into bounded diameter graphs cannot be approximated within any constant factor under the Small Set Expansion Hypothesis.
Michał Szyfelbein, Dariusz Dereniowski
Sep 7, 2026cs.CG

A Sub-4 Approximation for Fair kk-Means

Fairness in clustering has attracted sustained research interest, motivated by the need to ensure equitable representation of protected groups in machine learning applications. We study fair kk-means clustering in Euclidean space, where the proportion of each protected group in every cluster must lie within specified lower and upper bounds. These constraints make it challenging to determine both cluster centers and point assignments. We propose an approximation algorithm that combines a linear programming relaxation with geometric transformations of the input to construct candidate center sets. Given a ρρ-approximate algorithm for weighted kk-means and any ε>0ε>0, our algorithm returns a fractional solution whose cost is at most 1+(31/Γ)ρ+O(ε)1+(3-1/Γ)ρ+O(ε) times the optimal integral fair cost, where Γ6.357Γ\approx6.357 is an upper bound on the integrality gap of the standard Euclidean kk-means LP. With a PTAS as the subroutine, the approximation ratio becomes 3.8427+O(ε)3.8427+O(ε), improving the previous factor of 5+O(ε)5+O(ε) to below 44. The solution satisfies all fairness constraints exactly and can be rounded to an integral assignment with a bounded additive violation of fairness and no increase in cost. The same approximation guarantee extends to the kk-sparse Wasserstein barycenter problem.
Kangke Cheng, Guanlin Mo, Shihong Song +1