Lune

STOC2024Top-tier venue

Fully Dynamic All-Pairs Shortest Paths: Likely Optimal Worst-Case Update Time

Xiao Mao

Abstract

The All-Pairs Shortest Paths (APSP) problem is one of the fundamental problems in theoretical computer science. It asks to compute the distance matrix of a given n-vertex graph. We revisit the classical problem of maintaining the distance matrix under a fully dynamic setting undergoing vertex insertions and deletions with a fast worst-case running time and efficient space usage.

Although an algorithm with amortized update-time O(n 2 ) 1 has been known for nearly two decades [Demetrescu and Italiano, STOC 2003], the current best algorithm for worst-case running time with efficient space usage runs is due to [Gutenberg and Wulff-Nilsen, SODA 2020], which improves the space usage of the previous algorithm due to [Abraham, Chechik, and Krinninger, SODA 2017] to O(n 2 ) but fails to improve their running time of O(n 2+2/3 ). It has been conjectured that no algorithm in O(n 2.5-ε ) worst-case update time exists. For graphs without negative cycles, we meet this conjectured lower bound by introducing a Monte Carlo algorithm running in randomized O(n 2.5 ) time while keeping the O(n 2 ) space bound from the previous algorithm. Our breakthrough is made possible by the idea of "hopdominant shortest paths," which are shortest paths with a constraint on hops (number of vertices) that remain shortest after we relax the constraint by a constant factor.

1 Throughout this paper, we use O(f ) to denote O(f • poly log(f )).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds cites Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and Simpler
  • Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and Simpler cites Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
  • Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time cites Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
  • Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time cites Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and Simpler
  • Deterministic Fully Dynamic SSSP and More cites Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
  • Deterministic Fully Dynamic SSSP and More cites Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time
  • Deterministic Fully Dynamic SSSP and More cites Decremental all-pairs shortest paths in deterministic near-linear time
  • Deterministic Fully Dynamic SSSP and More cites Faster Deterministic Worst-Case Fully Dynamic All-Pairs Shortest Paths via Decremental Hop-Restricted Shortest Paths
  • Fine-Grained Optimality of Partially Dynamic Shortest Paths and More cites Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
  • Fine-Grained Optimality of Partially Dynamic Shortest Paths and More cites Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and Simpler
  • Fine-Grained Optimality of Partially Dynamic Shortest Paths and More cites Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear Time
  • Fine-Grained Optimality of Partially Dynamic Shortest Paths and More cites Faster Deterministic Worst-Case Fully Dynamic All-Pairs Shortest Paths via Decremental Hop-Restricted Shortest Paths
  • Strongly Polynomial Parallel Work-Depth Tradeoffs for Directed SSSP cites Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
  • Strongly Polynomial Parallel Work-Depth Tradeoffs for Directed SSSP cites Deterministic Fully Dynamic SSSP and More
  • On Dynamic Graph Algorithms with Predictions cites Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
  • On Dynamic Graph Algorithms with Predictions cites Faster Deterministic Worst-Case Fully Dynamic All-Pairs Shortest Paths via Decremental Hop-Restricted Shortest Paths
  • Decremental all-pairs shortest paths in deterministic near-linear time cites Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and Simpler
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. On Dynamic Graph Algorithms with PredictionsJan van den Brand, Sebastian Forster, Yasamin Nazari, Adam PolakSODA 2024 · 4 citations
  2. Deterministic Fully Dynamic SSSP and MoreJan van den Brand, Adam KarczmarzFOCS 2023 · 2 citations
  3. Fine-Grained Optimality of Partially Dynamic Shortest Paths and MoreBarna Saha, Virginia Vassilevska Williams, Yinzhan Xu, Christopher YeSODA 2025
  4. Strongly Polynomial Parallel Work-Depth Tradeoffs for Directed SSSPAdam Karczmarz, Wojciech Nadara, Marek SokolowskiSODA 2026

Builds on5

  1. Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear TimeAaron Bernstein, Maximilian Probst Gutenberg, Thatchaphol SaranurakFOCS 2021 · 27 citations
  2. Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and SimplerMaximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2020 · 20 citations
  3. Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space BoundsMaximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2020 · 19 citations
  4. Decremental all-pairs shortest paths in deterministic near-linear timeJulia ChuzhoySTOC 2021 · 18 citations
  5. Faster Deterministic Worst-Case Fully Dynamic All-Pairs Shortest Paths via Decremental Hop-Restricted Shortest PathsShiri Chechik, Tianyi ZhangSODA 2023 · 5 citations

Related papers

  1. A Near-Optimal Offline Algorithm for Dynamic All-Pairs Shortest Paths in Planar DigraphsDebarati Das, Maximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2022 · 2 citations
  2. Near-Optimal (1+ε)-Approximate Fully-Dynamic All-Pairs Shortest Paths in Planar GraphsArnold Filtser, Gramoz Goranci, Neel Patel, Maximilian Probst GutenbergFOCS 2024
  3. A New Deterministic Algorithm for Fully Dynamic All-Pairs Shortest PathsJulia Chuzhoy, Ruimin ZhangSTOC 2023 · 7 citations
  4. New Techniques and Fine-Grained Hardness for Dynamic Near-Additive SpannersThiago Bergamaschi, Monika Henzinger, Maximilian Probst Gutenberg, Virginia Vassilevska Williams et al.SODA 2021 · 19 citations
  5. Fully Dynamic Shortest Path Reporting Against an Adaptive AdversaryAnastasiia Alokhina, Jan van den BrandSODA 2024
Dusk over the sea between two cliffs drawn in fine vertical lines