Incremental -Clustering on Graphs
Abstract
Given a weighted undirected graph, a number of clusters , and an exponent , the goal in the -clustering problem on graphs is to select vertices as centers that minimize the sum of the distances raised to the power of each vertex to its closest center. This problem includes the well-known -median ( and -means () clustering problems. In the dynamic setting, the graph is subject to adversarial edge updates, and the goal is to maintain explicitly an exact -clustering solution in the induced shortest-path metric.
Prior works by Bhattacharya, Costa, Garg, Lattanzi, and Parotsidis [FOCS 2024] and by Bhattacharya, Costa, and Farokhnejad [STOC 2025] consider the dynamic -clustering problem for point sets in metric spaces. These algorithms support adversarial point insertions and deletions under a model with access to pairwise distances. This model differs significantly from the dynamic graph setting, where no oracle access is given to pairwise distances and a single edge update can affect many distances – making these approaches inefficient when applied to graphs. While efficient dynamic -center approximation algorithms on graphs exist [Cruciani, Forster, Goranci, Nazari, and Skarlatos, SODA 2024], to the best of our knowledge, no prior work provides similar results for the dynamic -clustering problem.
As the main result of this paper, we develop a randomized incremental -clustering algorithm that maintains with high probability a constant-factor approximation in a graph undergoing edge insertions with a total update time of , where is an arbitrary fixed constant. Our incremental algorithm also achieves an amortized update time of and consists of two stages. In the first stage, we maintain a constant-factor bicriteria approximate solution of size with a total update time of (independent of the parameter ) 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 -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 -clustering algorithm.
Keywords and phrases:
-clustering, -median, -means, dynamic graph algorithmsCategory:
Track A: Algorithms, Complexity and GamesFunding:
Sebastian Forster: This work is supported by the Austrian Science Fund (FWF): P 32863-N. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 947702).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Dynamic graph algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Clustering is a fundamental and well-studied problem in computer science with numerous applications across various domains [34, 29, 52, 35, 17]. Conceptually, clustering involves partitioning data points into groups such that points within the same group are more similar to each other than to those in different groups, according to some measure of similarity. Clustering algorithms optimize a given objective function, and for -clustering problems the goal is to output a set of representative points that minimize a -clustering objective.
While the graph clustering toolkit for network analysis tasks (e.g., community detection) encompasses a wide range of clustering objectives suited to different scientific communities [48, 50, 26, 2], researchers have in particular performed experimental studies with -clustering objectives on graphs [51, 49]. It has been observed in these experiments that (a) high computational cost and (b) the sensitivity of distances to single edge updates pose a challenge when employing -clustering in graphs [49] (see also [2, Section 2.3]), which motivates further algorithm design in this direction.
Among the most widely studied -clustering objectives are -median and -means. The -median objective is the sum of distances from each point to its closest center, while the -means objective is the sum of squared distances from each point to its closest center. A generalization of both is the -clustering objective, which is the sum of distances raised to the power from each point to its closest center. Hence given a metric space , a set of points , and a positive integer , the goal in the -clustering problem is to output a subset of at most points, referred to as centers, such that the value is minimized. Observe that the -median clustering problem corresponds to , and the -means clustering problem corresponds to .
The -median clustering problem is known to be NP-hard in arbitrary metric spaces [40]. The first approximation algorithms leveraged tree embeddings and polynomial-time algorithms for the tree setting [53], achieving an approximation ratio of [6, 7]; later refined to [15]. The first constant-factor approximation was established in [16] using LP rounding and was later improved to through local search [5, 28, 19]. Subsequently, approximation ratios below were achieved [43, 13, 19], with the best-known approximation ratio currently standing at [18]. Meanwhile, the best known hardness result rules out an approximation factor less than [36]. Many of the aforementioned algorithmic approaches carry over to -means and -clustering with worse approximation factors. For the -means clustering problem, the best known approximation ratio is [14] and the best known hardness result rules out an approximation factor less than [36, 3].
Efficient -clustering algorithms.
Fast algorithms have been proposed for the -median clustering problem in arbitrary metric spaces with oracle access to the distances between points. Jain and Vazirani [37] developed a deterministic -approximation algorithm that runs in time. Subsequently, Mettu and Plaxton presented another approach for obtaining a constant-factor approximation in time [46]. Later, they presented a randomized -approximation algorithm with a more efficient running time of [47]. As noted by Huang and Vishnoi [33], the algorithm in [47] can be easily generalized to the -clustering problem.
Graph setting.
In the graph setting, the -clustering problem is defined as before, where the metric space is induced by the shortest-path distances in a weighted undirected graph with vertices, edges, and maximum edge weight . Here, no oracle access is available, and distance computations must be performed explicitly by the algorithm if needed. As a consequence, although algorithms designed for point sets can be applied in the graph setting, this approach leads to inefficient algorithms. Thorup [54] addressed this issue for the -median clustering problem by developing a randomized -approximation algorithm that runs in time.111The notation hides polylogarithmic factors in . As noted in [42], it seems plausible that the approach of Thorup [54] generalizes to -clustering using recent insights on the primal-dual method used as a subroutine. Very recently, alternative near-linear and almost-linear time constant-factor approximation algorithms based on a greedy approach [42] and local search [38] have been developed. It is worth noting that the fastest constant-factor approximation algorithms for Euclidean -clustering can be obtained by running the state-of-the-art graph clustering algorithms on a sparse metric spanner [30]. The graph setting has also received notable attention for the -center clustering problem [54, 23, 1, 12, 39].
Dynamic -clustering algorithms.
In recent years, the rapid growth and continuous change of data have led to strong interest in developing dynamic -clustering algorithms [9, 11, 41, 10, 21, 20, 24, 25]. The related work most similar to ours is by Cruciani, Forster, Goranci, Nazari, and Skarlatos [21], who study the -center clustering problem on dynamic graphs under adversarial edge updates; they achieve for example an amortized update time of in the incremental setting. Since the shortest-path metric of a graph induces a metric space, it may seem natural to apply algorithms designed for dynamic point sets in metric spaces [9, 11, 10]. However, as noted in [21], this approach leads to inefficient algorithms as discussed in the next paragraph.
Comparison of dynamic graphs and dynamic point sets.
Let us briefly highlight the key differences and challenges between the model with dynamic graphs, which we also consider in this paper, and the model with dynamic point sets in metric spaces [9, 11, 10]. In the model with dynamic point sets, the adversarial updates are point insertions or point deletions. On the other hand, in our model with dynamic graphs, the adversarial updates are edge insertions or edge deletions. This distinction introduces two main challenges, as explained in [21]: (i) there is no oracle access to all-pairs shortest-path distances, and (ii) a single edge update can affect multiple distances simultaneously, whereas a point update does not affect distances between previously inserted points. As a result, directly applying black-box algorithms designed for dynamic point sets to dynamic graphs is very inefficient.
To the best of our knowledge, no algorithms have been developed so far for the -median, -means, or their generalization -clustering on graphs undergoing edge updates. For this reason, a natural question arises about the efficiency of dynamic algorithms for the -clustering problem on dynamic graphs:
Are there efficient constant-factor approximation algorithms for the -clustering problem on graphs undergoing edge updates?
1.1 Our Contributions
In this paper, we answer this question in the affirmative for the incremental setting, in which the weighted undirected graph undergoes adversarial edge insertions. We believe that the incremental setting is particularly interesting and well-motivated from a practical point of view, as there exist inherently incremental graphs in practice. For example, real-world graphs such as co-authorship networks are incremental, since the fact that two scientists have co-authored a research paper (almost) never changes over time.
Our central result is a highly efficient incremental algorithm – independent of the parameter – that maintains a constant-factor bicriteria approximate solution of size (see Definition 5), which is optimal up to polylogarithmic factors for the -clustering problem. Throughout the paper, we assume an oblivious adversary for our randomized results. An oblivious adversary fixes the entire sequence of updates before the algorithm begins. Namely, the adversary cannot adapt the updates based on the (randomized) outputs of the algorithm during the execution.
Theorem 1.
There is a randomized incremental algorithm for the -clustering problem that, given a weighted undirected graph with maximum edge weight subject to edge insertions, an integer , and constants , maintains with high probability:
-
a -bicriteria approximate solution and
-
a -bicriteria approximate assignment,
and with high probability has an amortized update time of .
For clarity of presentation, in Theorem 1 we hide the dependence on in the approximation ratio – which is – and the dependence on and in the update time. By combining Theorem 1 with our incremental reduction algorithm (in Theorem 15), we obtain our main result.
Theorem 2.
There is a randomized incremental algorithm for the -clustering problem that, given a weighted undirected graph subject to edge insertions, an integer , and constants , maintains with high probability an -approximate -clustering solution with a total update time of and an amortized update time of .
For clarity of presentation, in Theorem 2 (our incremental algorithm) we hide the dependence on inside the notation , which we use to suppress polylogarithmic factors in .
2 Technical Overview
In the following, we give a brief overview of our main technical contributions for the incremental setting, where the input graph undergoes edge insertions sent by the adversary. The goal is to develop an efficient incremental constant-factor approximation algorithm for the -clustering problem on graphs. Our incremental -clustering algorithm consists of two subroutines. The first subroutine described in Section 4, is an incremental -bicriteria approximation algorithm for the -clustering problem on graphs. The second subroutine described in Section 5, efficiently converts the previous bicriteria approximate solution into a constant-factor approximate -clustering solution after every adversarial edge insertion.
2.1 Basis of Our Incremental Bicriteria Approximation Algorithm
The basis of our incremental -bicriteria approximation algorithm for the -clustering problem is the static -bicriteria approximation algorithm by Mettu and Plaxton [47], henceforth referred to as the MP-bi algorithm. A high-level overview of the static MP-bi algorithm is presented in the next paragraph.
MP-bi algorithm.
Let be the whole vertex set. The MP-bi algorithm performs at most iterations, where at the -th iteration:
-
1.
A candidate set is constructed by sampling a small subset of , where .
-
2.
The smallest radius is computed such that the ball of radius around contains a constant fraction of vertices from (i.e., ).
-
3.
The ball is removed from , and the MP-bi algorithm recurses on the remaining vertices .
In the incremental setting, the adversary inserts new edges into the graph; our aim is to design an incremental version of the MP-bi algorithm under adversarial edge insertions. We refer to the -th iteration of the MP-bi algorithm as the -th level. Thus, our goal is to incrementally maintain the data structures of the MP-bi algorithm at each level .
2.1.1 Challenges in the Incremental Setting
The central step of the MP-bi algorithm is its second step, where the smallest radius is computed. Under edge insertions the distances are non-increasing, and so for a fixed radius , the balls can only “receive” new vertices. In this case, whenever a ball contains more than a fraction of vertices from , the radius should be decreased accordingly. The core issue however, is that the subsequent set of remaining vertices can change in a fully dynamic manner, as follows:
-
Vertices and edges can be removed from the set by entering the ball at a previous level. This occurs when a newly inserted adversarial edge decreases the distance between the candidate set and a vertex in to at most , for some previous level .
-
Vertices and edges can be added to the set by leaving the ball at a previous level. This occurs when the radius is decreased accordingly because many vertices enter the ball due to a newly inserted adversarial edge, for some previous level .
As a consequence, the current candidate set which was sampled from the old set , may no longer be a good representative in the new set . For this reason, a new candidate set should be sampled from the modified set , and the new radius should be computed. In other words, the first two steps of the MP-bi algorithm should be repeated at level . The second step of the MP-bi algorithm in the incremental setting can be implemented straightforwardly by maintaining the ball and the radius at each level , as follows:
-
either by using a fully dynamic SSSP (single-source shortest paths) algorithm with a super-source attached to the candidate set ,
-
or by restarting an incremental SSSP algorithm with a super-source attached to the candidate set , whenever the set is modified.
The first option of employing a fully dynamic SSSP algorithm has a prohibitive update time. The second option of employing an incremental SSSP algorithm depends on the total number of times any set is modified, which is naively proportional to the number of distinct sequences of the radii . Therefore, we can infer that the total update time of the second option depends on the number of distinct sequences of the radii .
Number of distinct sequences of the radii.
Even when the radii are powers of and the number of levels is , the number of distinct sequences of the radii is naively at least:
where is the maximum weight of an edge, and thus is the maximum possible distance between two vertices in the graph. The first term is because the new radius may differ arbitrarily from the old radius at level , after repeating the second step of the MP-bi algorithm. The second term is because the sequence of the radii could change after each adversarial edge insertion.
For the second straightforward option, an incremental SSSP algorithm is restarted at most times (for the sets ) per distinct sequence of the radii. As a result, the total update time required for the second straightforward option is at least:
In other words, the total update time required for the second straightforward option is at least , which is excessively high.
2.2 Incremental Bicriteria Approximation Algorithm
In principle our approach follows the second option, which is to restart an incremental SSSP algorithm as many times as the number of distinct sequences of the radii . However, to overcome the issue of exponentially many distinct sequences of while ensuring constant-factor approximation, we introduce a refined and elegant solution for managing the radii . Our solution is a variant of the MP-bi algorithm and relies on two properties that are enforced on the radii.
The first property which is referred to as the non-increasing property, is that the value of each radius is non-increasing over time (i.e., the value of a specific either decreases or remains the same). By the non-increasing property, along with the facts that each radius is a power of and that , we argue that there are at most distinct sequences of radii. In turn, the update time becomes:
Nonetheless, since the non-increasing property is enforced, there is no guarantee on the approximation ratio. In particular, simultaneously enforcing the non-increasing property and maintaining levels may lead to decisions that do not guarantee a constant-factor approximation. To that end, in order to maintain a constant-factor approximation, we establish the following crucial structural property of the MP-bi algorithm:
The order of the values of the radii can be enforced to be non-decreasing (i.e., ) without affecting the approximation ratio by more than a constant.
We refer to this second property as the monotonicity property of the radii. Using the monotonicity property, along with the fact that the distances are non-increasing in the incremental setting (under adversarial edge insertions), we show that the approximation ratio is constant. As a warm-up, we introduce the monotonicity property also in the static setting. Our static MP-bi variant enforces the monotonicity property from level up to level , as follows:
-
1.
If , then our MP-bi variant retains the radius .
-
2.
If , then our MP-bi variant replaces the value of the radius with the (updated) value of the radius from the previous level.
Notably, we prove that this modification preserves the constant-factor approximation of the MP-bi algorithm. Therefore, the core idea of our approach is to enforce the non-increasing property to achieve efficient update time, while relying on the monotonicity property to guarantee a constant-factor approximation.
2.2.1 Combining Non-Increasing and Monotonicity Properties in the Incremental Setting
In the incremental setting, we demonstrate how both the non-increasing and monotonicity properties can be enforced simultaneously, and how the monotonicity property can be leveraged to argue about the approximation ratio. Let be the old radius at level , and be the new radius at level maintained by the incremental algorithm after an adversarial edge insertion.
Consider the set at level , and note that after an adversarial edge insertion some vertices may move closer to the corresponding candidate set . In other words, the ball may receive new vertices, causing to exceed and the radius to be decreased accordingly (i.e., ). Consider a vertex that is within a distance of from the candidate set . Since under edge insertions the distances are non-increasing, the distance between and remains at most . However, it is possible that the distance between and is greater than the new radius , which implies that the vertex does not belong to the ball anymore. In this case, we add such a vertex in a set , which we call the leaking set. Specifically, the leaking set contains all vertices that have exited a ball from a previous level and have leaked to a subsequent level.
Since the set may be modified, we repeat the first two steps of the MP-bi algorithm at level : we resample a fresh candidate set , add it to the old candidate set , and compute a suggested radius based on the second step of the MP-bi algorithm. The difference between our incremental algorithm and the straightforward option lies in the fact that the new radius is updated according to our MP-bi variant, while enforcing both the non-increasing and monotonicity properties:
-
1.
If , then our incremental algorithm ignores the suggested radius and retains the old radius (i.e., .
-
2.
Else if , then our incremental algorithm sets the new radius to the current radius of the previous level.
-
3.
Otherwise, our incremental algorithm sets the new radius to the suggested radius .
The first condition enforces the non-increasing property, while the first and second conditions enforce the monotonicity property. As a consequence of the non-increasing property, the number of distinct sequences of the radii is reduced to . Although we prove that the monotonicity property preserves the constant-factor approximation of the MP-bi algorithm in both the static and incremental settings, in the incremental setting we must also handle the leaking set, which poses an additional challenge. Recall that the leaking set contains vertices that have exited a ball at a previous level and have leaked into a subsequent level.
Role of the leaking set.
Since the non-increasing property is enforced for efficiency reasons, in order to identify a fraction of vertices from (as dictated by the second step of the MP-bi algorithm), we may need to use some vertices from the leaking set . In the analysis, we prove that a suitable subset of the leaking set exists. Finding a ball containing a constant fraction of vertices from (second step of the MP-bi algorithm), and removing from (third step of the MP-bi algorithm) is important for maintaining at most levels.
To appropriately provide an upper bound on the assigned cost of leaked vertices, we leverage the monotonicity property, as described in the next paragraph. The monotonicity property acts as a glue, ensuring both the non-increasing property (i.e., efficiency) and the constant-factor approximation are maintained.
Assigned cost of the leaking set.
Roughly speaking, subsets of the leaking set are distributed among the sets for which the corresponding suggested radius is greater than the current radius . For a fixed vertex that belongs to the leaking set , there is a crucial structural observation to be made: The vertex must have entered the set from a previous level . Thus, the vertex is within a distance of at most from the candidate set . Observe also that the vertex may be far from the candidate set . Since under edge insertions the distance between and remains at most and by the monotonicity property, we can charge for the vertex a cost of .
Therefore using the monotonicity property, we can argue that each relevant vertex of any set can be charged a cost of . This in turn helps us to upper bound the approximation ratio of our incremental algorithm, while ensuring that the value of the last level remains throughout the algorithm.
2.3 Maintaining -Clustering on Bicriteria Approximate Solution
So far, we have described how our incremental algorithm maintains a constant-factor bicriteria approximate solution of size . The bicriteria approximate solution induces a dynamic -metric space 222Recall that in a -metric space, the triangle inequality may be violated by a factor of . by maintaining incremental -approximate SSSP algorithms for each vertex in (i.e., for each node in ). We “dynamize” a known argument to show that the optimal -clustering solution on the -metric space , with appropriate weights on the nodes in , is an -approximation to the optimal -clustering solution on the graph .
Over the course of the adversarial edge insertions to the incremental graph , both the set and the weights of nodes in change at most times. The set can change because the bicriteria approximate solution may receive at most new vertices due to an adversarial edge insertion into . We emphasize that, for the efficiency of all the subroutines of our incremental -clustering algorithm, it is important that the total number of vertices that ever belong to (and in turn in ) is at most . Additionally, the distance between any pair of nodes in may decrease at most times, resulting in a total of distance decreases.
The straightforward approach for maintaining an approximate -clustering on would be to recompute it from scratch in time after every change to the set or to the distance function . This straightforward approach would result in a total update time of for our overall incremental -clustering algorithm, which implies an amortized update time of for any . To obtain an update time close to for the full parameter range, we instead employ an approach involving a dynamic spanner algorithm. At a high level, since we achieve vertex sparsification via the bicriteria approximate solution , we exploit it further by performing edge sparsification on top of the vertex-sparsified graph whose edges are weighted by approximate distances in .
Our approach.
In more detail, we view as a complete graph with edges, where the weight of an edge in corresponds to the approximate distance between and in . We further bin the edges of into weight classes and maintain a fully dynamic -spanner [8] of size on the edges of each weight class. The union of these spanners is a -spanner for of size ; that is, is a subgraph of (in terms of edges) in which the distance between every pair of vertices in is preserved up to a multiplicative factor of . This dynamic spanner algorithm [8] can deal with adversarial edge updates in polylogarithmic time per update.
Since the changes to the vertex set of (and of ) occur only in many batches, we can restrict the dynamic spanner algorithm to adversarial edge insertions by simply restarting it after every batch of vertex insertions. Since distances in are non-increasing, each edge appears at most once in each weight class in between restarts and thus the total update time for maintaining the spanner is . As the final step of handling each of the adversarial edge insertions to , we compute a -clustering solution on in time from scratch using one of the state-of-the-art static -clustering algorithms [54, 42, 38]. Overall, all these steps result in an incremental constant-factor approximation -clustering algorithm with a total update time of and an amortized update time of , where is an arbitrary fixed constant.
3 Preliminaries
Consider a weighted undirected graph with nonnegative weights. We denote by the number of vertices, by the number of edges, and by the maximum weight of an edge.333We assume that the weights are at least and are upper bounded by a polynomial in . This can be achieved by rescaling all the weights. For a vertex and a subset of vertices , let be the distance between the vertex and the set . We write to explicitly denote the corresponding distance in a graph ; when the subscript is omitted, it refers to .
Definition 3 (-clustering problem on graphs).
Given a weighted undirected graph , an integer , and a constant , the goal in the -clustering problem is to output a subset of vertices with size at most (i.e., ) such that the value of is minimized.
The -clustering problem includes the problems of -median () and -means (). A -clustering instance is the triple consisting of the given input object, the integer parameter , and the constant . Any subset of vertices with size at most is referred to as a (feasible) solution, and its cost is referred to as its -clustering cost. Hence, the goal of the -clustering problem can be rephrased as finding a solution with minimum -clustering cost . The value OPT is called optimal -clustering cost, and a solution that minimizes the cost is called an optimal -clustering solution.
Definition 4 (-approximate -clustering problem).
Given a -clustering instance, the goal of the -approximate -clustering problem is to output a subset of vertices such that and .
Definition 5 (-bicriteria approximation).
Given a -clustering instance, an -bicriteria approximate solution is a subset of vertices such that:
Definition 6 (-bicriteria approximate assignment).
Given a weighted undirected graph and an integer , an -bicriteria approximate assignment is a function such that:
Conversely, the preimage of every vertex is .
Our incremental reduction algorithm in Section 5 deals with weighted -clustering instances on a subgraph , where contains both edge and vertex weights.
Definition 7 (weighted -clustering problem on graphs).
Given a weighted undirected graph with vertex weights , the corresponding weighted -clustering instance is denoted by . The cost of a subset of vertices is defined as . The optimal -clustering cost of is denoted by .
Our incremental algorithms utilize the following incremental -approximate single-source shortest paths (SSSP) algorithm. We note that similar results have been known implicitly for undirected graphs; these were randomized and assumed an oblivious adversary [32, 4, 45].
Lemma 8 (incremental -approximate SSSP [44]).
Let and . Let be an incremental graph undergoing edge insertions with integral edge weights in the range with a source . There is a deterministic data structure that explicitly maintains distance estimates such that:
and the ability to report the corresponding approximate shortest paths from to in time . The total update time of the data structure is . Moreover, the algorithm detects and reports the distance estimate changes explicitly.
For a fixed a subset of vertices and a positive real number , the set denotes the open ball of radius around , and the set denotes the closed ball of radius around . Throughout our algorithms, we use incremental -approximate SSSP algorithms (Lemma 8) with a super-source being a fixed set , providing distance estimates . Hence, we extend the definition of balls as follows:
-
to denote the open ball of radius around using the distance estimates .
-
to denote the closed ball of radius around using the distance estimates .
A dynamic algorithm has amortized update time if its total time spent for processing any sequence of adversarial updates is bounded by . Throughout this paper, whenever we write that an event holds with high probability, we mean that it holds with probability at least for some positive constant . We also make use of the following concentration bounds in our proofs.
Lemma 9 ([22]).
Let be independent random variables with , and let . Then for any it holds that:
Furthermore, for any it holds that:
4 Incremental Bicriteria Approximation for -Clustering on Graphs
In this section, we develop an incremental bicriteria approximation algorithm for the -clustering problem on graphs undergoing adversarial edge insertions. Our incremental bicriteria approximation algorithm, with high probability, achieves an amortized update time of and maintains a constant-factor bicriteria approximate solution of size at most . A pseudocode of our incremental bicriteria approximation algorithm is provided in Algorithm 2, and the result is demonstrated in the following theorem.
Theorem 1. [Restated, see original statement.]
There is a randomized incremental algorithm for the -clustering problem that, given a weighted undirected graph with maximum edge weight subject to edge insertions, an integer , and constants , maintains with high probability:
-
a -bicriteria approximate solution and
-
a -bicriteria approximate assignment,
and with high probability has an amortized update time of .
Throughout the description and analysis of the incremental bicriteria approximation algorithm in Section 4, we fix a sufficiently large constant and a small constant . In the next two paragraphs, we first describe the information maintained by our incremental bicriteria approximation algorithm, and then outline the properties satisfied by the radii .
State of the incremental bicriteria approximation algorithm.
Our incremental bicriteria approximation Algorithm 2 is structured into multiple levels starting from . The last level of the algorithm is denoted by , and the value of is upper bounded by throughout the algorithm. At each level , the bicriteria approximation algorithm maintains an execution set , a candidate set , a radius , an incremental -approximate SSSP algorithm with a super-source attached to , an approximate ball , and a leaking set .
The incremental algorithm then maintains the bicriteria approximate solution , and an assignment that maps each vertex to a candidate center in at a specified distance. The algorithm also uses the temporary leaking set , an auxiliary set that essentially stores the pending leaked vertices to be assigned to some leaking sets (see Lines 7, 42, 43, and 44 in Algorithm 2).
Properties of the radii.
For efficiency reasons, the values of the radii (where ) satisfy three properties over the course of the algorithm. (1) The first property is that the value of each radius is a power of . Hence, the number of possible values of a radius is reduced to ,444Recall that is the maximum weight of an edge, and thus is the maximum possible distance between two vertices in . at the cost of an extra factor of in the approximation ratio. (2) The second property is that the value of each radius is non-increasing over time, which means that after an adversarial edge insertion, the value of a specific either decreases or remains the same. As a result, the number of distinct sequences of is reduced from to . We note that the value of the last level may increase due to adversarial edge insertions, resulting in more radii . However, the incremental algorithm ensures that throughout its execution.
Furthermore, in order to upper bound the cost of the bicriteria approximate solution, the values of the radii (where ) satisfy also a third property over the course of the algorithm. (3) The third property is that the order of the values of is non-decreasing (i.e., . Let us provide a high-level justification for the third property: Consider a vertex that is within a distance of from the candidate set . Assume that after an adversarial edge insertion, the vertex moves to the next execution set and is not within a distance of from the next candidate set . Since under edge insertions the distance between and remains at most and by the third property, the vertex can be charged a cost of . Therefore using the third property, we can argue that a (leaked) vertex of any execution set can be charged a cost of , which in turn helps us to upper bound the approximation ratio of our incremental algorithm. To sum up, our incremental bicriteria approximation algorithm ensures that the following three properties are satisfied throughout its execution:
-
Property 1
: The value of each radius is a power of .
-
Property 2
: The value of each radius is non-increasing over time.
-
Property 3
: The order of the values of the radii is non-decreasing (i.e., ).
4.1 Incremental Bicriteria Approximation Algorithm on Graphs
First we describe the preprocessing phase, and afterwards we describe how to handle adversarial edge insertions. A pseudocode of our incremental bicriteria approximation algorithm is provided in Algorithms 1 and 2.
Definition 10 (Retain).
Given a set and a nonnegative integer , the set denotes an arbitrary subset of with size .
4.1.1 Preprocessing Phase
During the preprocessing phase, dynamic data structures are also employed, as described in Algorithm 1.
Since we have to deal with adversarial edge insertions, an incremental -approximate SSSP algorithm (from Lemma 8) with a super-source attached to is initialized for every level .555Namely, we introduce a fake root and add an edge of zero weight, for every candidate center . Then, the incremental -approximate SSSP algorithm is executed with source . In Line 12 of Algorithm 1, we denote by the distance estimate from a candidate center to a vertex . We remark that even though we cannot access all directly, we can efficiently compute the closest candidate center to a vertex with respect to . This follows from the fact that the incremental -approximate SSSP algorithm has access to the first edge of the corresponding approximate shortest path in time; such an incremental SSSP can be either the deterministic algorithm from Lemma 8 or a randomized algorithm against an oblivious adversary (implicitly given in [32, 4, 45]). Thus, the assignment in Line 12 can be computed properly and efficiently.
Lemma 11.
Immediately after the preprocessing phase, it holds that for every level .
4.1.2 Adversarial Edge Insertions
Before describing how our incremental bicriteria approximation algorithm for the -clustering problem on graphs handles adversarial edge insertions, we define the -th valid radius in order to guarantee that Property 3 is satisfied. Recall that denotes the closed ball of radius around using the distance estimates .
Definition 12 (-th valid radius).
For a fixed level , consider the -th execution set , the -th candidate set , the distance estimates , and the -th radius .666For the definition of the -th valid radius, we set . Let be the smallest power of such that . Then denotes the -th valid radius.
When an edge is inserted into the graph from the adversary, the incremental bicriteria approximation algorithm proceeds as follows. Initially, this adversarial edge insertion is forwarded to all the incremental -approximate SSSP algorithms , where . The algorithm then finds the smallest level for which the (updated) -th valid radius is less than the -th radius (i.e., ).777If no such level exists, then the incremental bicriteria approximation algorithm does nothing. This step is implemented through the function First-Level-Decrease (see Lines 9 and 26 in Algorithm 2).
Next, the function Update-DS-Rad-Decr() is called within the function First-Level-Decrease, which updates the data structures at level . In the function Update-DS-Rad-Decr(), the incremental algorithm updates the -th radius to and the -th approximate ball to an arbitrary subset of with size (in Lines 3 and 5 of Algorithm 2). For each vertex , the algorithm updates its assignment to its nearest candidate center in with respect to (in Line 6 of Algorithm 2). The incremental algorithm then assigns the temporary leaking set as the union of the -th leaking set and the vertices that were in the old -th approximate ball but are not in the updated -th approximate ball (in Line 7 of Algorithm 2). Eventually, the algorithm empties the -th leaking set (in Line 8 of Algorithm 2).
Once the function First-Level-Decrease has finished, the algorithm updates the -th execution set to . In turn, the incremental algorithm must verify whether the value of the -th radius should also decrease. Note that as the -th execution set may change, the current -th candidate set which was sampled from the old execution set , may no longer be a good representative in the new -th execution set . To that end, the algorithm proceeds with the Resampling Phase in the updated -th execution set , as follows. Since denotes the smallest level at which the corresponding -th radius is decreased, let represent the subsequent levels starting at level .
Resampling Phase.
First, a supporting candidate set is constructed by sampling each vertex of the new -th execution set independently with probability . Second, the incremental algorithm adds the -th supporting candidate set to the -th candidate set , and restarts the -th incremental -approximate SSSP algorithm with a super-source attached to the updated -th candidate set .888When we say in Line 35 of Algorithm 2 “ provides distance estimates for all ”, we mean the nearest candidate center to a vertex with respect to . Next, the algorithm computes the -th valid radius , using the updated -th candidate set and the updated distance estimates (see Lines 36 and 37 in Algorithm 2). The incremental algorithm then proceeds based on whether the (updated) -th valid radius is less than the -th radius , as follows:
-
If , then the algorithm updates the data structures as described previously with further modifications (see the function Update-DS-Rad-Decr() in Lines 2 and 39 of Algorithm 2). In particular, the incremental algorithm updates the -th radius to and the -th approximate ball to an arbitrary subset of with size (in Lines 3 and 5 of Algorithm 2). For each vertex , the algorithm updates its assignment to its nearest candidate center in with respect to . Subsequently, the incremental algorithm adds to the temporary leaking set both the -th leaking set and the vertices that were in the old -th approximate ball but are not in the updated -th approximate ball (see Figure 1). The algorithm then empties the -th leaking set and updates the -th execution set to .
-
Otherwise if , then the algorithm removes from the -th approximate ball all vertices that no longer belong to the -th execution set .999A vertex that belonged to the old -th execution set is removed from the current -th execution set when it enters a previous -th approximate ball at some level . Observe also that for a level , some vertices that belonged to the old -th approximate ball before the adversarial edge insertion, may no longer belong to the new -th approximate ball after the adversarial edge insertion. Note that some of these vertices have been added to the temporary leaking set . Subsequently, the incremental algorithm adds to the -th leaking set an arbitrary subset of the temporary leaking set , ensuring that and (see Lines 41, 42, and 43 in Algorithm 2). The algorithm then removes from the temporary leaking set the subset of that entered the -th leaking set (see Line 44 in Algorithm 2) and updates the -th execution set to .
Afterwards, the incremental algorithm increases by one (i.e., moves to the next level), and continues with the Resampling Phase in the updated -th execution set (for the updated level ) as described earlier. The Resampling Phase terminates when the size of the current -th execution set is at most . Then, the algorithm updates the value of the last level to the final value of (see Line 48 in Algorithm 2). Finally, as a concluding step for the adversarial edge insertion into the graph , the incremental bicriteria approximation algorithm trivially updates the data structures at level (in Line 49 of Algorithm 2) and assigns the maintained bicriteria approximate solution as (in Line 50 of Algorithm 2).
Left figure: The -th approximate ball before the adversarial edge insertion.
Right figure: After the adversarial edge insertion, some vertices enter the -th approximate ball (brown vertices). Since the -th radius is decreased (the dashed blue region indicates the old radius), some vertices enter the temporary leaking set .
5 From Bicriteria Approximation to -Clustering on Incremental Graphs
Thus far, our incremental bicriteria approximation Algorithm 2 of Theorem 1 efficiently maintains an -bicriteria approximate solution to the -clustering problem on a graph undergoing edge insertions. Recall that by Definition 5, this means that Algorithm 2 maintains a subset of vertices such that and . Our goal though is to compute a constant-factor approximate solution for the -clustering problem (see Definition 3), and thus the output must consist of at most vertices. In other words, we want to maintain a subset of vertices such that and .
In this section, we describe an efficient incremental reduction algorithm that reduces the size of an -bicriteria approximate solution by converting it into a constant-factor approximate -clustering solution in a graph that undergoes edge insertions. To achieve this, we maintain a -clustering solution over the bicriteria approximate solution , using weights on determined by the corresponding bicriteria approximate assignment .
We remark that our Theorem 15 (the incremental reduction algorithm) is an adaptation of a theorem in [47, 27] in the incremental graph setting. The following definitions are used to analyze the total update time in Theorem 15. Notice that in Definition 14, the value of is equal to the total number of batches of new vertices entering the image of . Hence, whenever increases in a single update due to multiple new vertices, increases by one.
Definition 13.
Given a dynamic -bicriteria approximate assignment , the dynamic set contains all vertices that have ever belonged to the image of .
Definition 14.
Given a dynamic -bicriteria approximate assignment , the value denotes the total number of times that increases.
Formally, .
Theorem 15.
There is a (randomized) dynamic algorithm for the -clustering problem that given:
-
a weighted undirected graph subject to edge insertions,
-
an integer , constants , and
-
a dynamic -bicriteria approximate assignment , for any ,
maintains an -approximate -clustering solution with a total update time of:
A pseudocode of our incremental reduction algorithm is provided in Algorithm 3. Our incremental reduction algorithm for the -clustering problem (in Theorem 15) uses the fully dynamic spanner algorithm of Baswana, Khurana, and Sarkar [8]. Their initial result is for unweighted graphs, but as the authors mention in their Remark 1.2 in [8], it can be extended to weighted graphs.
Lemma 16 (Theorem 4.12/Theorem 5.7 in [8]).
There is a randomized fully dynamic algorithm that, given a weighted undirected graph subject to edge updates and a constant , maintains a -spanner of expected size and has an expected amortized update time of . The preprocessing time of the algorithm is .101010For unweighted graphs, the stretch of the spanner is ; the arises for weighted graphs.
Note that an incremental spanner (i.e., non-increasing distances) would be sufficient; however, the fully dynamic spanner algorithm of Lemma 16 is already suitable in our context. The expected guarantees can be turned into high probability guarantees by running copies of the algorithm in parallel; see [31] for more details. The incremental reduction algorithm also utilizes the static -clustering algorithm of Dupre la Tour and Saulpic [42].
Lemma 17 ([42]).
There is randomized algorithm for the -clustering problem that, given a weighted undirected graph , an integer , and constants , computes with high probability a -approximate -clustering solution in time.
At a high level, we maintain the -clustering solution over the bicriteria approximate solution , using weights on derived from the bicriteria approximate assignment . Hence, the input graph instance contains both edge and vertex weights, and the static -clustering algorithm should be able to work with vertex weights in our context. The algorithm by Dupre la Tour and Saulpic [42] is a simplification of the algorithm by Mettu and Plaxton [46].111111The two algorithms by Mettu and Plaxton in [46] and [47] (which includes the MP-bi algorithm) are different. Even though the authors in [42] present a version without vertex weights, the authors in [46] present a version with weights on points. Thus, it is not surprising that the static -clustering algorithm of Lemma 17 can be generalized to handle vertex weights.
Definition 7 (weighted -clustering problem on graphs). [Restated, see original statement.]
Given a weighted undirected graph with vertex weights , the corresponding weighted -clustering instance is denoted by . The cost of a subset of vertices is defined as . The optimal -clustering cost of is denoted by .
The randomization in Theorem 15 arises from the randomization in Lemmas 16 and 17; replacing the randomized subroutines with deterministic counterparts would yield a deterministic version of Theorem 15.
Adversarial updates.
Our aim is to combine the incremental bicriteria approximation Algorithm 2 with the incremental reduction Algorithm 3. Hence, the output -bicriteria approximate assignment of Algorithm 2 becomes the input -bicriteria approximate assignment of Algorithm 3. The assignment in Algorithm 2 can be modified due to an adversarial edge insertion into the graph , making it a dynamic assignment in Theorem 15.
Since our incremental reduction algorithm is given as input a dynamic bicriteria approximate assignment, one type of adversarial update consists of modifications to the assignment . The other type of adversarial update involves edge insertions into the input graph , where each adversarial edge insertion can trigger a batch of distance decreases between vertices in .
Note that an efficient combination of Algorithm 2 and Algorithm 3, requires that both (1) the total number of vertices that have ever belonged to the image of the dynamic assignment (i.e., ) and (2) the total number of batches of new vertices entering (i.e., ) remain bounded. For efficiency reasons, we employ the approximate distance estimates from incremental -approximate SSSP algorithms and perform lazy updates by maintaining distances as powers of .
State of the reduction algorithm.
Our incremental reduction Algorithm 3 maintains a dynamic -bicriteria approximate solution , which is the image of the dynamic -bicriteria approximate assignment from the input.121212Since the algorithm never removes vertices from , we actually have . For every vertex , the reduction algorithm maintains an incremental -approximate SSSP algorithm providing distance estimates . In turn, the reduction algorithm maintains a complete subgraph with edge and vertex weights, specified as follows:
-
Each vertex belongs to the vertex set of , and the vertex weight is equal to . In other words, the vertex weight of in is the number of vertices mapped to under the assignment .
-
For every pair of vertices , the edge belongs to the edge set of with an edge weight equal to , rounded up to the nearest power of .
The incremental reduction algorithm then applies the dynamic spanner algorithm of Lemma 16 on the subgraph to obtain an edge-sparsified graph . Finally, the reduction algorithm runs the static -clustering algorithm of Lemma 17 on the weighted -clustering instance , producing a -clustering solution .
5.1 Adversarial Edge Insertions and Assignment Modifications
In the next two paragraphs, we first describe how our incremental reduction algorithm processes an adversarial edge insertion into the graph , and then how it processes a batch of modifications to the -bicriteria approximate assignment . We remark that in fact, each adversarial edge insertion into the graph can trigger a batch of distance decreases between vertices in alongside a batch of modifications to .
Edge insertion into .
When an edge is inserted into the graph from the adversary, the incremental reduction algorithm proceeds as follows. Initially, this edge insertion is forwarded to all the incremental -approximate SSSP algorithms , where . Based on Lemma 8, the incremental -approximate SSSP algorithm reports a change whenever the distance estimate is updated for a vertex . After the adversarial insertion of the edge into the graph , let be the set containing all the pairs of vertices such that the value of the distance estimate becomes less than .
Next, for every pair of vertices , the incremental reduction algorithm updates the edge weights and to , rounding them up to the nearest power of . Let be the batch of distance decreases. The reduction algorithm then forwards the batch of distance decreases to the dynamic spanner algorithm from Lemma 16,131313The dynamic spanner algorithm processes each distance decrease in the batch separately. which runs on and maintains the edge-sparsified graph .
Modifications to the assignment .
Let be the set containing all vertices for which the preimage is modified. For every vertex that already belongs to the dynamic -bicriteria approximate solution , the reduction algorithm updates only its vertex weight to .
For every vertex that does not belong to the dynamic -bicriteria approximate solution , the incremental reduction algorithm proceeds as follows:
-
1.
First, the reduction algorithm adds to and to the vertex set of , and sets its vertex weight to .
-
2.
Second, the reduction algorithm initializes an incremental -approximate SSSP algorithm providing distance estimates . Then for every vertex , the edge weights and are set to , rounded up to the nearest power of .
Next, if at least one new vertex is added to (i.e., of Definition 13 increases) then the reduction algorithm restarts the dynamic spanner algorithm on the subgraph , producing a new edge-sparsified graph . Otherwise all vertices in already belong to , and the dynamic spanner algorithm maintains the same edge-sparsified graph .
At the end of each adversarial update, the incremental reduction algorithm runs the static -clustering algorithm of Lemma 17 on the updated weighted -clustering instance , producing the maintained -clustering solution .
References
- [1] Amir Abboud, Vincent Cohen-Addad, Euiwoong Lee, and Pasin Manurangsi. On the fine-grained complexity of approximating k-center in sparse graphs. In Telikepalli Kavitha and Kurt Mehlhorn, editors, 2023 Symposium on Simplicity in Algorithms, SOSA 2023, Florence, Italy, January 23-25, 2023, pages 145–155. SIAM, 2023. doi:10.1137/1.9781611977585.CH14.
- [2] Charu C. Aggarwal and Haixun Wang. A Survey of Clustering Algorithms for Graph Data, pages 275–301. Springer US, Boston, MA, 2010. doi:10.1007/978-1-4419-6045-0_9.
- [3] Sara Ahmadian, Ashkan Norouzi-Fard, Ola Svensson, and Justin Ward. Better guarantees for -means and euclidean -median by primal-dual algorithms. SIAM Journal on Computing, 49(4):FOCS17–97–FOCS17–156, 2020. doi:10.1137/18M1171321.
- [4] Bertie Ancona, Monika Henzinger, Liam Roditty, Virginia Vassilevska Williams, and Nicole Wein. Algorithms and hardness for diameter in dynamic graphs. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, July 9-12, 2019, Patras, Greece, volume 132 of LIPIcs, pages 13:1–13:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.ICALP.2019.13.
- [5] Vijay Arya, Naveen Garg, Rohit Khandekar, Adam Meyerson, Kamesh Munagala, and Vinayaka Pandit. Local search heuristics for -median and facility location problems. SIAM Journal on Computing, 33(3):544–562, 2004. doi:10.1137/S0097539702416402.
- [6] Yair Bartal. Probabilistic approximation of metric spaces and its algorithmic applications. In Proceedings of 37th Conference on Foundations of Computer Science, pages 184–193. IEEE, 1996. doi:10.1109/SFCS.1996.548477.
- [7] Yair Bartal. On approximating arbitrary metrices by tree metrics. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pages 161–168, 1998. doi:10.1145/276698.276725.
- [8] Surender Baswana, Sumeet Khurana, and Soumojit Sarkar. Fully dynamic randomized algorithms for graph spanners. ACM Trans. Algorithms, 8(4):35:1–35:51, 2012. doi:10.1145/2344422.2344425.
- [9] MohammadHossein Bateni, Hossein Esfandiari, Hendrik Fichtenberger, Monika Henzinger, Rajesh Jayaram, Vahab Mirrokni, and Andreas Wiese. Optimal fully dynamic k-center clustering for adaptive and oblivious adversaries. In Nikhil Bansal and Viswanath Nagarajan, editors, Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms, SODA 2023, Florence, Italy, January 22-25, 2023, pages 2677–2727. SIAM, 2023. doi:10.1137/1.9781611977554.CH101.
- [10] Sayan Bhattacharya, Martín Costa, and Ermiya Farokhnejad. Fully dynamic -median with near-optimal update time and recourse. In Proceedings of the Symposium on Theory of Computing, STOC 2025, 2024.
- [11] Sayan Bhattacharya, Martin Costa, Naveen Garg, Silvio Lattanzi, and Nikos Parotsidis. Fully Dynamic -Clustering with Fast Update Time and Small Recourse. In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 216–227, Los Alamitos, CA, USA, October 2024. IEEE Computer Society. doi:10.1109/FOCS61266.2024.00023.
- [12] Leyla Biabani and Ami Paz. k-center clustering in distributed models. In International Colloquium on Structural Information and Communication Complexity, pages 83–100. Springer, 2024. doi:10.1007/978-3-031-60603-8_5.
- [13] Jarosław Byrka, Thomas Pensyl, Bartosz Rybicki, Aravind Srinivasan, and Khoa Trinh. An improved approximation for -median and positive correlation in budgeted optimization. ACM Trans. Algorithms, 13(2), March 2017. doi:10.1145/2981561.
- [14] Jarosław Byrka, Yuhao Guo, Yang Hu, Shi Li, Chengzhang Wan, and Zaixuan Wang. -clustering via iterative randomized rounding, 2026. doi:10.48550/arXiv.2604.06046.
- [15] Moses Charikar, Chandra Chekuri, Ashish Goel, and Sudipto Guha. Rounding via trees: deterministic approximation algorithms for group steiner trees and -median. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pages 114–123, 1998. doi:10.1145/276698.276719.
- [16] Moses Charikar, Sudipto Guha, Éva Tardos, and David B Shmoys. A constant-factor approximation algorithm for the -median problem. In Proceedings of the thirty-first annual ACM symposium on Theory of computing, pages 1–10, 1999.
- [17] Adam Coates and Andrew Y. Ng. Learning feature representations with k-means. In Neural Networks: Tricks of the Trade, pages 561–580. Springer, 2 edition, 2012. doi:10.1007/978-3-642-35289-8_30.
- [18] Vincent Cohen-Addad, Fabrizio Grandoni, Euiwoong Lee, Chris Schwiegelshohn, and Ola Svensson. A -approximation algorithm for metric -median. In Proceedings of the Symposium on Theory of Computing, STOC 2025, 2025.
- [19] Vincent Cohen-Addad, Anupam Gupta, Lunjia Hu, Hoon Oh, and David Saulpic. An improved local search algorithm for -median. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1556–1612. SIAM, 2022. doi:10.1137/1.9781611977073.65.
- [20] Vincent Cohen-Addad, Niklas Hjuler, Nikos Parotsidis, David Saulpic, and Chris Schwiegelshohn. Fully dynamic consistent facility location. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 3250–3260, 2019. URL: https://proceedings.neurips.cc/paper/2019/hash/fface8385abbf94b4593a0ed53a0c70f-Abstract.html.
- [21] Emilio Cruciani, Sebastian Forster, Gramoz Goranci, Yasamin Nazari, and Antonis Skarlatos. Dynamic algorithms for k-center on graphs. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3441–3462. SIAM, 2024. doi:10.1137/1.9781611977912.123.
- [22] Devdatt P Dubhashi and Alessandro Panconesi. Concentration of measure for the analysis of randomized algorithms. Cambridge University Press, 2009.
- [23] David Eppstein, Sariel Har-Peled, and Anastasios Sidiropoulos. Approximate greedy clustering and distance selection for graph metrics. J. Comput. Geom., 11(1):629–652, 2020. doi:10.20382/JOCG.V11I1A25.
- [24] Hendrik Fichtenberger, Silvio Lattanzi, Ashkan Norouzi-Fard, and Ola Svensson. Consistent k-clustering for general metrics. In Dániel Marx, editor, Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms, SODA 2021, Virtual Conference, January 10 - 13, 2021, pages 2660–2678. SIAM, 2021. doi:10.1137/1.9781611976465.158.
- [25] Sebastian Forster and Antonis Skarlatos. Dynamic consistent k-center clustering with optimal recourse. In Yossi Azar and Debmalya Panigrahi, editors, Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 212–254. SIAM, 2025. doi:10.1137/1.9781611978322.7.
- [26] Santo Fortunato. Community detection in graphs. Physics Reports, 486(3):75–174, 2010. doi:10.1016/j.physrep.2009.11.002.
- [27] S Guha, N Mishra, R Motwani, and L O’Callaghan. Clustering data streams. In Proceedings 41st Annual Symposium on Foundations of Computer Science, pages 359–366. IEEE, 2000.
- [28] Anupam Gupta and Kanat Tangwongsan. Simpler analyses of local search algorithms for facility location. arXiv preprint arXiv:0809.2554, 2008. arXiv:0809.2554.
- [29] Pierre Hansen and Brigitte Jaumard. Cluster analysis and mathematical programming. Math. Program., 79:191–215, 1997. doi:10.1007/BF02614317.
- [30] Sariel Har-Peled, Piotr Indyk, and Anastasios Sidiropoulos. Euclidean spanners in high dimensions. In Sanjeev Khanna, editor, Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2013, New Orleans, Louisiana, USA, January 6-8, 2013, pages 804–809. SIAM, 2013. doi:10.1137/1.9781611973105.57.
- [31] Monika Henzinger, Sebastian Krinninger, and Danupon Nanongkai. A subquadratic-time algorithm for decremental single-source shortest paths. In Chandra Chekuri, editor, Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5-7, 2014, pages 1053–1072. SIAM, 2014. doi:10.1137/1.9781611973402.79.
- [32] Monika Henzinger, Sebastian Krinninger, and Danupon Nanongkai. Decremental single-source shortest paths on undirected graphs in near-linear total update time. Journal of the ACM, 65(6):36:1–36:40, 2018. Announced at FOCS 2014. doi:10.1145/3218657.
- [33] Lingxiao Huang and Nisheeth K. Vishnoi. Coresets for clustering in euclidean spaces: importance sampling is nearly optimal. In Konstantin Makarychev, Yury Makarychev, Madhur Tulsiani, Gautam Kamath, and Julia Chuzhoy, editors, Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, Chicago, IL, USA, June 22-26, 2020, pages 1416–1429. ACM, 2020. doi:10.1145/3357713.3384296.
- [34] A. K. Jain, M. N. Murty, and P. J. Flynn. Data clustering: A review. ACM Comput. Surv., 31(3):264–323, 1999. doi:10.1145/331499.331504.
- [35] Anil K. Jain. Data clustering: 50 years beyond k-means. Pattern Recognition Letters, 31(8):651–666, 2010. Award winning papers from the 19th International Conference on Pattern Recognition (ICPR). doi:10.1016/j.patrec.2009.09.011.
- [36] Kamal Jain, Mohammad Mahdian, and Amin Saberi. A new greedy approach for facility location problems. In Proceedings of the Thiry-Fourth Annual ACM Symposium on Theory of Computing, STOC ’02, pages 731–740, New York, NY, USA, 2002. Association for Computing Machinery. doi:10.1145/509907.510012.
- [37] Kamal Jain and Vijay V. Vazirani. Approximation algorithms for metric facility location and k-median problems using the primal-dual schema and lagrangian relaxation. J. ACM, 48(2):274–296, 2001. doi:10.1145/375827.375845.
- [38] Shaofeng H.-C. Jiang, Yaonan Jin, Jianing Lou, and Pinyan Lu. Local search for clustering in almost-linear time. CoRR, abs/2504.03513, 2025. doi:10.48550/arXiv.2504.03513.
- [39] Ce Jin, Yael Kirkpatrick, Virginia Vassilevska Williams, and Nicole Wein. Beyond 2-approximation for k-center in graphs. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 175–211. SIAM, 2025. doi:10.1137/1.9781611978322.6.
- [40] Oded Kariv and S Louis Hakimi. An algorithmic approach to network location problems. i: The p-centers. SIAM journal on applied mathematics, 37(3):513–538, 1979.
- [41] Max Dupré la Tour, Monika Henzinger, and David Saulpic. Fully dynamic k-means coreset in near-optimal update time. In 32nd Annual European Symposium on Algorithms, ESA 2024, September 2-4, 2024, Royal Holloway, London, United Kingdom, 2024.
- [42] Max Dupré la Tour and David Saulpic. Faster and simpler greedy algorithm for -median and -means, 2025. arXiv:2407.11217.
- [43] Shi Li and Ola Svensson. Approximating k-median via pseudo-approximation. In Dan Boneh, Tim Roughgarden, and Joan Feigenbaum, editors, Symposium on Theory of Computing Conference, STOC’13, Palo Alto, CA, USA, June 1-4, 2013, pages 901–910. ACM, 2013. doi:10.1145/2488608.2488723.
- [44] Yang P. Liu. Incremental shortest paths in almost linear time via a modified interior point method. CoRR, abs/2506.19207, 2025. doi:10.48550/arXiv.2506.19207.
- [45] Jakub Łącki and Yasamin Nazari. Near-Optimal Decremental Hopsets with Applications. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), volume 229 of Leibniz International Proceedings in Informatics (LIPIcs), pages 86:1–86:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ICALP.2022.86.
- [46] Ramgopal R. Mettu and C. Greg Plaxton. The online median problem. SIAM J. Comput., 32(3):816–832, 2003. doi:10.1137/S0097539701383443.
- [47] Ramgopal R Mettu and C Greg Plaxton. Optimal time bounds for approximate clustering. Machine Learning, 56:35–60, 2004. doi:10.1023/B:MACH.0000033114.18632.E0.
- [48] M. E. J Newman. Detecting community structure in networks. The European Physical Journal B, 38, 2004. doi:10.1140/epjb/e2004-00124-y.
- [49] Matthew J. Rattigan, Marc E. Maier, and David D. Jensen. Graph clustering with network structure indices. In Zoubin Ghahramani, editor, Machine Learning, Proceedings of the Twenty-Fourth International Conference (ICML 2007), Corvallis, Oregon, USA, June 20-24, 2007, volume 227 of ACM International Conference Proceeding Series, pages 783–790. ACM, 2007. doi:10.1145/1273496.1273595.
- [50] Satu Elisa Schaeffer. Graph clustering. Comput. Sci. Rev., 1(1):27–64, 2007. doi:10.1016/J.COSREV.2007.05.001.
- [51] Adam Schenker, Mark Last, Horst Bunke, and Abraham Kandel. Comparison of algorithms for web document clustering using graph representations of data. In Ana L. N. Fred, Terry Caelli, Robert P. W. Duin, Aurélio C. Campilho, and Dick de Ridder, editors, Structural, Syntactic, and Statistical Pattern Recognition, Joint IAPR International Workshops, SSPR 2004 and SPR 2004, Lisbon, Portugal, August 18-20, 2004 Proceedings, volume 3138 of Lecture Notes in Computer Science, pages 190–197. Springer, 2004. doi:10.1007/978-3-540-27868-9_19.
- [52] Jianbo Shi and Jitendra Malik. Normalized cuts and image segmentation. IEEE Trans. Pattern Anal. Mach. Intell., 22(8):888–905, 2000. doi:10.1109/34.868688.
- [53] Arie Tamir. An algorithm for the -median and related problems on tree graphs. Operations research letters, 19(2):59–64, 1996. doi:10.1016/0167-6377(96)00021-1.
- [54] Mikkel Thorup. Quick -median, -center, and facility location for sparse graphs. SIAM Journal on Computing, 34(2):405–432, 2005. doi:10.1137/S0097539701388884.
