A New Deterministic Algorithm for Fully Dynamic All-Pairs Shortest Paths
Julia Chuzhoy, Ruimin Zhang
Abstract
We study the fully dynamic All-Pairs Shortest Paths (APSP) problem in undirected edgeweighted graphs. Given an n-vertex graph G with non-negative edge lengths, that undergoes an online sequence of edge insertions and deletions, the goal is to support approximate distance queries and shortest-path queries. We provide a deterministic algorithm for this problem, that, for a given precision parameter ǫ, achieves approximation factor (log log n) 2 O(1/ǫ 3 ) , and has amortized update time O(n ǫ log L) per operation, where L is the ratio of longest to shortest edge length. Query time for distance-query is O(2 O(1/ǫ) • log n • log log L), and query time for shortest-path query is , where P is the path that the algorithm returns. To the best of our knowledge, even allowing any o(n)-approximation factor, no adaptive-update algorithms with better than Θ(m) amortized update time and better than Θ(n) query time were known prior to this work. We also note that our guarantees are stronger than the best current guarantees for APSP in decremental graphs in the adaptive-adversary setting. In order to obtain these results, we consider an intermediate problem, called Recursive Dynamic Neighborhood Cover (RecDynNC), that was formally introduced in [Chuzhoy, STOC '21]. At a high level, given an undirected edge-weighted graph G undergoing an online sequence of edge deletions, together with a distance parameter D, the goal is to maintain a sparse D-neighborhood cover of G, with some additional technical requirements. Our main technical contribution is twofolds. First, we provide a black-box reduction from APSP in fully dynamic graphs to the RecDynNC problem. Second, we provide a new deterministic algorithm for the RecDynNC problem, that, for a given precision parameter ǫ, achieves approximation factor (log log m) 2 O(1/ǫ 2 ) , with total update time O(m 1+ǫ ), where m is the total number of edges ever present in G. This improves the previous algorithm of [Chuzhoy, STOC '21], that achieved approximation factor (log m) 2 O(1/ǫ) with similar total update time. Combining these two results immediately leads to the deterministic algorithm for fully-dynamic APSP with the guarantees stated above.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 41fd410d-c1b7-473a-be37-89ab73ab3d70Cited by top-tier papers11
- Almost-Linear Time Algorithms for Incremental Graphs: Cycle Detection, SCCs, s-t Shortest Path, and Minimum-Cost FlowLi Chen, Rasmus Kyng, Yang P. Liu, Simon Meierhans et al.STOC 2024 · 11 citations
- Dynamic Deterministic Constant-Approximate Distance Oracles with nε Worst-Case Update TimeBernhard Haeupler, Yaowei Long, Thatchaphol SaranurakFOCS 2024 · 4 citations
- Deterministic Dynamic Maximal Matching in Sublinear Update TimeAaron Bernstein, Sayan Bhattacharya, Peter Kiss, Thatchaphol SaranurakSTOC 2025 · 2 citations
- A Dynamic Shortest Paths Toolbox: Low-Congestion Vertex Sparsifiers and Their ApplicationsRasmus Kyng, Simon Meierhans, Maximilian Probst GutenbergSTOC 2024 · 2 citations
- New Structures and Algorithms for Length-Constrained Expander DecompositionsBernhard Haeupler, D. Ellis Hershkowitz, Zihan TanFOCS 2024 · 2 citations
Builds on10
- A Deterministic Algorithm for Balanced Cut with Applications to Dynamic Connectivity, Flows, and BeyondJulia Chuzhoy, Yu Gao, Jason Li, Danupon Nanongkai et al.FOCS 2020 · 76 citations
- Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear TimeAaron Bernstein, Maximilian Probst Gutenberg, Thatchaphol SaranurakFOCS 2021 · 27 citations
- Deterministic Algorithms for Decremental Shortest Paths via Layered Core DecompositionJulia Chuzhoy, Thatchaphol SaranurakSODA 2021 · 24 citations
- Dynamic Maintenance of Low-Stretch Probabilistic Tree Embeddings with ApplicationsSebastian Forster, Gramoz Goranci, Monika HenzingerSODA 2021 · 20 citations
- Deterministic Algorithms for Decremental Approximate Shortest Paths: Faster and SimplerMaximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2020 · 20 citations
Related papers
- Decremental all-pairs shortest paths in deterministic near-linear timeJulia ChuzhoySTOC 2021 · 18 citations
- Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space BoundsMaximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2020 · 19 citations
- Near-Optimal (1+ε)-Approximate Fully-Dynamic All-Pairs Shortest Paths in Planar GraphsArnold Filtser, Gramoz Goranci, Neel Patel, Maximilian Probst GutenbergFOCS 2024
- A Near-Optimal Offline Algorithm for Dynamic All-Pairs Shortest Paths in Planar DigraphsDebarati Das, Maximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2022 · 2 citations
- Faster Deterministic Worst-Case Fully Dynamic All-Pairs Shortest Paths via Decremental Hop-Restricted Shortest PathsShiri Chechik, Tianyi ZhangSODA 2023 · 5 citations
