Dynamic algorithms for k-center on graphs

Emilio Cruciani, Sebastian Forster, Gramoz Goranci, Yasamin Nazari, Antonis Skarlatos

TL;DR

This paper introduces the first efficient algorithms for the $k$-center clustering problem on dynamic graphs where edges are added or removed over time. The authors provide a deterministic decremental $(2+\epsilon)$-approximation and a randomized incremental $(4+\epsilon)$-approximation, both achieving near-optimal amortized update times by cleverly bounding how often the set of cluster centers must change.

What Problem Does This Paper Address?

Clustering is the bread and butter of data analysis, and the $k$-center problem is one of its most iconic formulations: pick $k$ points (centers) to minimize the maximum distance any data point has to travel to its nearest center. While we’ve had good algorithms for static graphs and dynamic point sets in metric spaces for years, dynamic graphs presented a unique hurdle.

In a metric space (like points on a map), adding or removing a point has a local effect. In a graph, however, adding or removing a single edge can fundamentally warp the shortest-path distances between a massive number of vertex pairs simultaneously. Furthermore, unlike metric spaces where you can "query" the distance between any two points instantly, distances in graphs must be explicitly maintained or recomputed, which is computationally expensive. This paper fills the gap by providing algorithms that handle edge updates efficiently without recomputing everything from scratch.

Methods

The authors employ two primary algorithmic strategies depending on the type of updates:

  1. Threshold Graphs & Maximal Independent Sets (MIS): For partially dynamic settings (incremental or decremental), the authors use a known reduction. They maintain "threshold graphs" where an edge exists between two nodes if their distance is below a certain guess of the optimal radius. Finding a $k$-bounded MIS on these threshold graphs allows them to identify valid centers.
  2. The "Super-Source" Trick: To avoid the high cost of All-Pairs Shortest Paths (APSP), the authors maintain Single-Source Shortest Paths (SSSP) from a "super-source" connected to all current centers. This allows them to track distances to the closest center efficiently.
  3. Low-Recourse Ruling Sets: The biggest technical challenge in the incremental setting (edge insertions) is "recourse"—the number of times the algorithm changes its mind about which nodes are centers. To keep this low, the authors developed a recursive sampling procedure to maintain a small dominating set. This set acts as a proxy for the whole graph, allowing them to maintain centers on a much smaller subgraph.
  4. Gonzalez’s Algorithm for Fully Dynamic: For the fully dynamic case (both insertions and deletions), they adapt Gonzalez’s classic greedy algorithm. By combining it with state-of-the-art dynamic SSSP data structures, they achieve a $(2+\epsilon)$-approximation with worst-case update times.

Datasets

This is a theoretical paper focused on computational complexity and algorithmic design. Consequently, no empirical datasets were used for training or evaluation. The results are proven mathematically for any weighted, undirected graph.

Key Insights and Ideas

  • Recourse is the Bottleneck: The efficiency of a dynamic graph algorithm is often tied to how many times it has to "restart" its distance calculations. The authors realized that to stay efficient, they needed a strong recourse guarantee: the total number of center changes must be strictly bounded (e.g., $\tilde{O}(k)$ over all updates) rather than just bounded on average.
  • Incremental is Harder than Decremental: In the decremental setting (deletions only), distances only increase. Once a center is far enough from others, it stays that way. In the incremental setting (insertions only), distances shrink, causing centers to "collide." The authors solved this by introducing a $(2,2)$-ruling set on a dominating set, a technique borrowed from distributed computing but applied here to bound recourse.
  • Leveraging SSSP: The authors show that the speed of $k$-center algorithms is fundamentally limited by the speed of dynamic SSSP algorithms. Their update times are essentially the state-of-the-art SSSP time multiplied by a factor of $k$.

Key Results

  • Decremental: A deterministic $(2+\epsilon)$-approximation with $kn^{o(1)}$ amortized update time. This is "tight" because $k$-center is NP-hard to approximate better than a factor of 2.
  • Incremental: A randomized $(4+\epsilon)$-approximation with $kn^{o(1)}$ amortized update time.
  • Fully Dynamic: Two algorithms maintaining a $(2+\epsilon)$-approximation. One is deterministic (for uniform weights) with $O(kn^{1.529}\epsilon^{-2})$ worst-case update time, and one is randomized (for general weights) with $O(kn^{1.823}\epsilon^{-2})$ worst-case update time.
  • Preprocessing: All algorithms require preprocessing time roughly proportional to $n^{2.37}$ (the matrix multiplication exponent).

Limitations and Future Work

  • The Incremental Gap: There is a gap between the $(2+\epsilon)$ ratio achieved in the decremental/fully dynamic settings and the $(4+\epsilon)$ ratio in the incremental setting. The authors suggest that achieving a factor of 2 for incremental graphs while maintaining low recourse remains an open challenge.
  • Dependence on SSSP: The $n^{o(1)}$ factors in the running time are inherited from the underlying SSSP algorithms. Any breakthrough in partially dynamic SSSP would automatically speed up these $k$-center algorithms.
  • Directed Graphs: The current work focuses on undirected graphs. Extending these dynamic guarantees to directed graphs, where distances are asymmetric, is a natural next step.

Summary updated

BibTeX
@inproceedings{cruciani2024dynamic,
  author = {Emilio Cruciani and Sebastian Forster and Gramoz Goranci and Yasamin Nazari and Antonis Skarlatos},
  title = {{Dynamic algorithms for k-center on graphs}},
  booktitle = {SODA},
  year = {2024},
  doi = {10.1137/1.9781611977912.123},
}
Figure