Bootstrapping Dynamic APSP via Sparsification

Rasmus Kyng, Simon Meierhans, Gernot Zöcklein

TL;DR

This paper presents a new, deterministic algorithm for the dynamic All-Pairs Shortest Paths (APSP) problem that achieves near-linear total update time. By cleverly "bootstrapping" a dynamic spanner and an APSP data structure together through recursive vertex and edge sparsification, the authors eliminate the need for complex expander-based techniques typically used in derandomization.

What Problem Does This Paper Address?

The Dynamic All-Pairs Shortest Paths (APSP) problem is a fundamental challenge in graph algorithms: how do you maintain the ability to quickly answer "what is the distance between vertex $u$ and $v$?" while the graph is constantly changing (edges being added or removed)?

While randomized algorithms for this problem have existed for some time, creating deterministic algorithms that are efficient against "adaptive adversaries" (who know the algorithm's previous moves) has proven incredibly difficult. Previous state-of-the-art deterministic solutions were notoriously complex, often relying on "expander decompositions"—a powerful but mathematically heavy tool. This paper seeks a simpler, more direct deterministic approach to maintaining crude distance estimates in near-linear time.

Methods

The authors build their solution on a recursive framework inspired by the classic Thorup-Zwick distance oracles. Their approach uses two main types of "sparsification" to shrink the graph at each level of recursion:

  1. Vertex Sparsification: They use "core graphs" (specifically the KMG-vertex sparsifier) to reduce the number of vertices. This involves selecting a set of "pivot" vertices and representing the distances between them in a smaller, simplified graph.
  2. Edge Sparsification: To prevent the number of edges from exploding during recursion, they maintain a dynamic spanner—a subgraph that preserves distances within a certain approximation factor but with far fewer edges.

The "Bootstrapping" Innovation: The most novel aspect is the relationship between the spanner and the APSP data structure. Usually, a dynamic spanner requires an APSP data structure to be maintained, and an APSP data structure requires a spanner to stay efficient. The authors show that by choosing a large enough size reduction factor, you can initialize and maintain both simultaneously on a smaller graph and recurse. This circular dependency, which usually causes headaches, is turned into a feature that allows the algorithm to "pull itself up by its own bootstraps."

Datasets

As this is a theoretical paper focused on algorithmic complexity and mathematical proofs, no empirical datasets or benchmarks were used. The "evaluation" consists of rigorous big-O analysis of update time, query time, and approximation stretch.

Key Insights and Ideas

  • Expander-Free Derandomization: Most recent breakthroughs in deterministic dynamic graphs rely on expander graphs. This paper proves that you can achieve similar results using only sparsification and bootstrapping, providing a much-needed alternative "toolbox" for researchers.
  • Deterministic Patching: When an edge is deleted from a spanner, the algorithm doesn't rebuild from scratch. Instead, it uses a "patching" strategy: it projects the broken paths onto a smaller graph, finds a new path there, and "patches" it back into the original spanner.
  • Managing High Degrees: To keep the recursion efficient, the authors use a ReduceDegree routine. If a vertex becomes too "busy" (high degree) in the spanner, it is split into multiple vertices in the underlying sparsifier, ensuring the computational load remains balanced.

Key Results

The paper provides a data structure for a graph $G = (V, E)$ with $m$ edge updates (insertions and deletions) that achieves:

  • Total Update Time: $m^{1+o(1)}$. This is "near-linear," meaning the cost per update is almost constant (or sub-polynomial) when averaged over the whole sequence.
  • Approximation Factor: $m^{o(1)}$. While the distances are "crude" estimates rather than exact, the error factor grows very slowly relative to the graph size.
  • Query Time: $O(1)$ per distance query. Once the data structure is updated, asking for a distance is nearly instantaneous.

Limitations and Future Work

  • Crude Approximation: The $m^{o(1)}$ stretch factor is relatively high compared to some randomized algorithms that achieve $(1+\epsilon)$ or polylogarithmic stretch. Improving this to a smaller constant or polylog factor while maintaining deterministic near-linear time is a natural next step.
  • Worst-Case vs. Total Time: The current result focuses on total (amortized) update time over $m$ updates. The authors suggest the techniques could be extended to worst-case update time (where every single update is guaranteed to be fast), but this is not explicitly proven in this version of the paper.
  • Practical Constants: Like many $m^{1+o(1)}$ algorithms, the "hidden constants" in the big-O notation might be large, making it more of a theoretical breakthrough than a drop-in replacement for current engineering libraries—at least for now.

Summary updated

BibTeX
@inproceedings{kyng2025bootstrapping,
  author = {Rasmus Kyng and Simon Meierhans and Gernot Zöcklein},
  title = {{Bootstrapping Dynamic APSP via Sparsification}},
  booktitle = {ESA},
  year = {2025},
  doi = {10.4230/lipics.esa.2025.113},
}
Figure