- The paper presents a deterministic (2+ε)-approximation algorithm for k-center using an incremental framework with near-linear running time.
- It introduces a randomized O(1)-approximation method for (k,z)-clustering that leverages efficient ball-size estimation and truncated Dijkstra techniques.
- A deterministic O(poly(c))-approximation algorithm based on Thorup–Zwick oracles addresses long-standing NP-hardness issues while supporting incremental outputs.
Faster Randomized and Deterministic k-Clustering on Graphs
Problem Statement and Context
This paper addresses algorithmic and complexity-theoretic aspects of the (k,z)-clustering and k-center problems on weighted, undirected graphs. The (k,z)-clustering framework generalizes both k-median (z=1) and k-means (z=2), subsuming classical clustering objectives. Given the inherent NP-hardness of these problems, focus shifts to polynomial-time constant-factor approximation algorithms, with further emphasis on achieving as close as possible to linear running time in the number of edges m—a key requirement for large-scale graph analytics.
While prior work for general metrics or graphs has shown progressively tighter constant-factor approximations, most fast algorithms have been randomized and have primarily targeted the k-median case. Deterministic nearly-linear time approximations for (k,z)0-center and deterministic fast algorithms for (k,z)1-clustering have remained elusive. This work resolves several critical open problems in this direction.
Main Contributions
1. Deterministic (k,z)2-Approximation for (k,z)3-Center in Near-Linear Time
The paper presents the first deterministic algorithm for the incremental (k,z)4-center problem on graphs with a (k,z)5-approximation guarantee and running time (k,z)6. This settles an open question posed by Abboud et al. (Musolino et al., 2023). Prior deterministic algorithms either required (k,z)7 time (Gonzalez [Gon85]; Hochbaum-Shmoys [HS85]) or precomputed approximate all-pairs shortest paths in (k,z)8 time. The approach leverages a deterministic source-insertion SSSP data structure [gorkiewicz2025incremental], iteratively selecting farthest-from-center vertices using updated shortest-paths, integrated into the canonical Gonzalez framework. The algorithm also extends to (k,z)9-center with outliers in the constant-k0 regime, delivering k1-approximation under the k2-outlier relaxation.
2. Randomized Near-Linear Time k3-Approximation for Incremental k4-Clustering
The authors design a fast randomized algorithm for k5-clustering achieving k6-approximation in k7 time for any fixed k8. This generalizes prior work providing near-linear randomized algorithms only for k9-median [thorup2001quick] and improves over almost-linear time results for general (k,z)0 [jiang2026local]. The method is built upon the recursive greedy (incremental) clustering paradigm [latourSaulpicKz], instantiated with efficient randomized ball-size estimation [cohen1997size] and truncated Dijkstra primitives efficiently amortized via dynamic shortest-paths.
3. Deterministic Close-to-Linear Time (k,z)1-Approximation for (k,z)2-Clustering
Addressing the absence of deterministic fast algorithms for general (k,z)3 on graphs, the paper introduces the first deterministic, incremental (k,z)4-approximation algorithm with running time (k,z)5 (for parameter (k,z)6). This leverages the Thorup–Zwick distance oracle [thorup2005approximate], using bunches and clusters to derive approximate ball sizes and neighborhoods deterministically, replacing Cohen's sketch-based estimates. For moderate (k,z)7, this scheme is close to linear and parameterizes the tradeoff between runtime and approximation quality.
Additional Innovations
- All algorithms support incremental output: for any (k,z)8, the prefix of length (k,z)9 gives an k0-clustering with the same approximation guarantee.
- For the k1-center with k2 outliers, efficient bicriteria approximations with near-linear runtime are introduced and analyzed.
Technical Innovations
Source-Insertion Dynamic SSSP
The deterministic SSSP structure [gorkiewicz2025incremental] efficiently handles a sequence of edge insertions from a single source. The framework enables rapid recomputation of farthest-from-center vertices in the Gonzalez algorithm in k3 amortized time over all k4 iterations. This data structure circumvents the combinatorial blowup of naively rerunning Dijkstra from scratch on each augmentation of the center set.
Efficient Ball-Size Estimation and Neighborhood Computation
For randomized k5-clustering, Cohen's sketches [cohen1997size] yield fast approximations of k6 for all candidate balls. Refined use of truncated Dijkstra and the Source-Insertion SSSP ensures that total running time over all iterations and radii remains within k7, where k8 is the aspect ratio.
For the deterministic variant, a hierarchical clustering schema based on Thorup–Zwick oracles precomputes for each node a collection of "bunches" and clusters, enabling union-based overcounted approximation of ball sizes and neighborhoods. The induced error is controlled and tied to the oracle's "stretch" parameter.
Greedy Incremental Framework
All algorithms instantiate an incremental greedy framework in which, in each iteration, the candidate ball or center maximizing an appropriate value function is chosen, followed by a "forbidding" step that removes all balls too close to the new center. The value function is parameterized by ball-size estimations and ensures that both randomized and deterministic variants maintain constant-factor or k9-factor approximations.
Strong Results and Claims
- Deterministic, Incremental z=10-approximation for z=11-center in z=12 time: This is proven to be optimal for incremental algorithms, as shown by Kozma (Kozma, 7 Jun 2026).
- Randomized, Incremental z=13-approximation for z=14-clustering in z=15 time: Matching or improving on the state-of-the-art for various z=16 (z=17-median/z=18-means).
- First deterministic near-linear time z=19-approximation for k0-clustering: Subsumes previous quadratic-time deterministic baselines.
Implications and Future Directions
Practically, these methods close major complexity gaps for clustering in sparse graphs and deliver deployable routines with strong worst-case guarantees—key for scalable, high-reliability graph analytics in dense or dynamic settings (social graphs, infrastructural networks, massive similarity graphs, etc.). The deterministic constructions are especially important where algorithmic reliability and reproducibility are non-negotiable. The techniques introduced for deterministic ball-size estimation, efficient dynamic SSSP, and scalable incremental frameworks have potential for adaptation in other sublinear or dynamic algorithmic graph tasks, such as facility location, robust (outlier-aware) clustering, and beyond.
Theoretically, a number of questions remain open: can the constants in the deterministic k1-clustering scheme be improved, or can an k2-approximation be realized for k3-median or k4-means in exactly linear time deterministically? Extensions to fully dynamic settings and to general metrics beyond graph-induced remain compelling directions. Further, the reduction to Euclidean spanners suggests that improved Euclidean clustering may follow from such graph developments [jiang2026local].
Conclusion
This paper provides decisive progress in the computation of near-optimal clusterings on massive graphs, combining sophisticated algorithmic primitives (dynamic SSSP, Thorup–Zwick oracles, probabilistic sketches) with efficient incremental frameworks to yield both randomized and deterministic fast approximation schemes. Both theoretical optimality (for incremental k5-center) and strong practical efficiency are achieved. These results substantially advance the understanding of clustering complexity on graphs and lay groundwork for subsequent algorithmic and applied research in scalable unsupervised graph mining.
References
- (2607.07615) Faster Randomized and Deterministic k6-Clustering on Graphs
- [gorkiewicz2025incremental] A. Górkiewicz, A. Karczmarz, "On Incremental Approximate Shortest Paths in Directed Graphs"
- [thorup2005approximate] M. Thorup, U. Zwick, "Approximate distance oracles"
- [thorup2001quick] M. Thorup, "Quick k-median, k-center, and facility location for sparse graphs"
- [latourSaulpicKz] M. Dupré la Tour, D. Saulpic, "Faster and Simpler Greedy Algorithm for k7-Median and k8-Means" (Tour et al., 2024)
- [jiang2026local] S. H.-C. Jiang et al., "Local Search for Clustering in Almost-linear Time"
- [cohen1997size] E. Cohen, "Size-Estimation Framework with Applications to Transitive Closure and Reachability"
- (Kozma, 7 Jun 2026) L. Kozma, "The price of incrementality in k-center clustering"
- [abboud2023fine] A. Abboud et al., "On the fine-grained complexity of approximating k-center in sparse graphs"