Lune

FOCS2022Top-tier venue

Algorithms and Lower Bounds for Replacement Paths under Multiple Edge Failure

Virginia Vassilevska Williams, Eyob Woldeghebriel, Yinzhan Xu

Abstract

This paper considers a natural fault-tolerant shortest paths problem: for some constant integer f, given a directed weighted graph with no negative cycles and two fixed vertices s and t, compute (either explicitly or implicitly) for every tuple of f edges, the distance from s to t if these edges fail. We call this problem f-Fault Replacement Paths (f FRP).We first present an O~(n3\tilde{O}(n^{3}) time algorithm for 2FRP in n-vertex directed graphs with arbitrary edge weights and no negative cycles. As 2FRP is a generalization of the well-studied Replacement Paths problem (RP) that asks for the distances between s and t for any single edge failure, 2FRP is at least as hard as RP. Since RP in graphs with arbitrary weights is equivalent in a fine-grained sense to All-Pairs Shortest Paths (APSP) [Vassilevska Williams and Williams FOCS’10, J. ACM’18], 2FRP is at least as hard as APSP, and thus a substantially subcubic time algorithm in the number of vertices for 2FRP would be a breakthrough. Therefore, our algorithm in O~(n3)\tilde{O}(n^{3}) time is conditionally nearly optimal. Our algorithm immediately implies an O~(nf+1)\tilde{O}(n^{f+1}) time algorithm for the more general f FRP problem, giving the first improvement over the straightforward O(nf+2)O(n^{f+2}) time algorithm.Then we focus on the restriction of 2FRP to graphs with small integer weights bounded by M in absolute values. We show that similar to RP,2FRP\mathrm{R}\mathrm{P}, 2\mathrm{F}\mathrm{R}\mathrm{P} has a substantially subcubic time algorithm for small enough M. Using the current best algorithms for rectangular matrix multiplication, we obtain a randomized algorithm that runs in O~(M2/3n2.9153)\tilde{O}(M^{2/3}n^{2.9153}) time. This immediately implies an improvement over our O~(nf+1)\tilde{O}(n^{f+1}) time arbitrary weight algorithm for all f>1f\gt1. We also present a data structure variant of the algorithm that can trade off pre-processing and query time. In addition to the algebraic algorithms, we also give an n8/3−o(1)n^{8/3-o(1)} conditional lower bound for combinatorial 2FRP algorithms in directed unweighted graphs, and more generally, combinatorial lower bounds for the data structure version of fFRPfF\mathrm{R}\mathrm{P}.

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.

1 top-tier paper has 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

  • All-Pairs Shortest Paths with Few Weights per Node cites Negative-Weight Single-Source Shortest Paths in Near-linear Time
  • Maintaining exact distances under multiple edge failures cites Distance sensitivity oracles with subcubic preprocessing time and fast query time
  • Maintaining exact distances under multiple edge failures cites A Refined Laser Method and Faster Matrix Multiplication
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. All-Pairs Shortest Paths with Few Weights per NodeAmir Abboud, Nick Fischer, Ce Jin, Virginia Vassilevska Williams et al.STOC 2025

Builds on4

  1. A Refined Laser Method and Faster Matrix MultiplicationJosh Alman, Virginia Vassilevska WilliamsSODA 2021 · 275 citations
  2. Negative-Weight Single-Source Shortest Paths in Near-linear TimeAaron Bernstein, Danupon Nanongkai, Christian Wulff-NilsenFOCS 2022 · 24 citations
  3. Distance sensitivity oracles with subcubic preprocessing time and fast query timeShiri Chechik, Sarel CohenSTOC 2020 · 23 citations
  4. Maintaining exact distances under multiple edge failuresRan Duan, Hanlin RenSTOC 2022 · 10 citations

Related papers

  1. Improved Shortest Path Restoration Lemmas for Multiple Edge Failures: Trade-offs Between Fault-tolerance and SubpathsGreg Bodwin, Lily WangSODA 2025
  2. Nearly Optimal Fault Tolerant Distance OracleDipan Dey, Manoj GuptaSTOC 2024 · 2 citations
  3. Fast 2-Approximate All-Pairs Shortest PathsMichal Dory, Sebastian Forster, Yael Kirkpatrick, Yasamin Nazari et al.SODA 2024
  4. Deterministic Replacement Path CoveringKarthik C. S., Merav ParterSODA 2021 · 15 citations
  5. Faster Approximate All Pairs Shortest PathsBarna Saha, Christopher YeSODA 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines