NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast Deterministic Fully Dynamic Distance Approximation

Jan van den Brand, Sebastian Forster, Yasamin Nazari

This paper, titled "Fast Deterministic Fully Dynamic Distance Approximation," represents a significant milestone in the field of dynamic graph algorithms. It provides a set of algorithms that achieve what researchers call the "gold standard": they are deterministic, handle both edge insertions and deletions (fully dynamic), and provide strict guarantees on the time taken for every single update (worst-case).

TL;DR

The authors develop the first deterministic, fully dynamic algorithms for approximate distances in graphs that match theoretical "speed limits" (conditional lower bounds). By cleverly combining algebraic matrix techniques with a new way to maintain "slowly changing" sets of important nodes, they achieve a breakthrough update time of $O(n^{1.407})$ for $st$-distances.

What Problem Does This Paper Address?

In many real-world applications—from GPS navigation to network routing—graphs are not static; they change constantly as roads close or links fail. Dynamic graph algorithms aim to update distance information quickly without recomputing everything from scratch.

However, most existing "fast" algorithms suffer from one of three drawbacks:

  1. Randomization: They rely on "coin flips," which can fail or be exploited by an "adaptive adversary" that chooses updates based on the algorithm's previous outputs.
  2. Amortization: They are fast on average, but a single update might take a very long time, making them unsuitable for real-time systems.
  3. Suboptimal Speed: They don't reach the theoretical lower bounds—the maximum possible speed allowed by current mathematical assumptions.

The authors tackle these issues head-on, focusing on unweighted, undirected graphs and providing approximations (within a factor of $1+\epsilon$) for several distance problems: $st$-distance (between two specific nodes), Single-Source Shortest Path (SSSP), and All-Pairs Shortest Path (APSP).

Methods

The paper’s "secret sauce" is the combination of two traditionally separate areas of graph theory: Algebraic Distance Maintenance and Combinatorial Emulators.

  1. Algebraic Submatrix Maintenance: The authors use the fact that distances in a graph can be encoded in the inverse of a specific matrix related to the graph's adjacency. They adapt the Sherman-Morrison-Woodbury identity—a mathematical tool for updating a matrix inverse when a few entries change—to maintain only the specific parts of the matrix (submatrices) needed for distance queries.
  2. Deterministic Low-Recourse Hitting Sets: To make the algebraic approach efficient, you need a "hitting set"—a small collection of nodes that "hit" or are near all high-degree nodes. Usually, these are picked randomly. The authors developed a deterministic version that has "low recourse," meaning the set doesn't change drastically when the graph changes. This stability is crucial for keeping the matrix updates fast.
  3. Near-Additive Emulators: An emulator is a sparse graph that preserves distances of the original graph. The authors use a two-level scheme: they first build a "medium-sparsity" emulator using their algebraic tools and then further sparsify it using static techniques to handle more complex queries like APSP.

Datasets

As a theoretical computer science paper, no empirical datasets were used. The results are proven mathematically using complexity analysis (Big-O notation) and hold for any unweighted, undirected graph.

Key Insights and Ideas

  • The "Slowly Changing" Hitting Set: The biggest "aha moment" is realizing that the bottleneck in deterministic dynamic algorithms was the instability of the hitting set. By forcing the hitting set to change only slightly per update (low recourse), they could finally apply fast algebraic update techniques deterministically.
  • Closing the Gap: For years, there has been a gap between the best randomized algorithms and deterministic ones. This paper shows that for distance approximation, you don't actually need randomness to hit the theoretical performance ceiling.
  • The Matrix Multiplication Connection: The update times (like $n^{1.407}$) aren't arbitrary; they are tied to $\omega$, the exponent of fast matrix multiplication. This links graph distances directly to one of the most fundamental problems in computer science.

Key Results

The paper establishes new state-of-the-art bounds for deterministic, worst-case update times:

  • $(1+\epsilon)$-approximate $st$-distance: $O(n^{1.407})$. This matches the conditional lower bound, meaning we likely cannot do significantly better without a major breakthrough in matrix multiplication.
  • $(1+\epsilon)$-approximate SSSP: $O(n^{1.529})$. This also matches its respective conditional lower bound.
  • $(1+\epsilon)$-approximate APSP: $O(n^2)$, which is essentially optimal since just outputting the answer takes $n^2$ time.
  • Randomized Bonus: While the focus is deterministic, their techniques also improved the best-known randomized algorithm for exact $st$-distances in directed graphs to $O(n^{1.7035})$.

Limitations and Future Work

  • Unweighted/Undirected: The primary results are for unweighted and undirected graphs. While they touch on directed graphs for randomized exact distances, a deterministic "gold standard" for directed approximate distances remains an open challenge.
  • The $\epsilon$ Factor: The update times include factors of $(1/\epsilon)^2$. While polynomial, this means the algorithm slows down significantly if you require extremely high precision (a very small $\epsilon$).
  • Implementation Complexity: These algorithms are highly sophisticated. While theoretically optimal, implementing them efficiently in a production environment would be a significant engineering undertaking compared to simpler, slower heuristics.

Summary updated

BibTeX
@inproceedings{brand2022fast,
  author = {Jan van den Brand and Sebastian Forster and Yasamin Nazari},
  title = {{Fast Deterministic Fully Dynamic Distance Approximation}},
  booktitle = {FOCS},
  year = {2022},
  doi = {10.1109/focs54457.2022.00099},
}
Figure