English

Algorithms and Lower Bounds for Replacement Paths under Multiple Edge Failures

Data Structures and Algorithms 2022-09-16 v1

Abstract

This paper considers a natural fault-tolerant shortest paths problem: for some constant integer ff, given a directed weighted graph with no negative cycles and two fixed vertices ss and tt, compute (either explicitly or implicitly) for every tuple of ff edges, the distance from ss to tt if these edges fail. We call this problem ff-Fault Replacement Paths (ffFRP). We first present an O~(n3)\tilde{O}(n^3) time algorithm for 22FRP in nn-vertex directed graphs with arbitrary edge weights and no negative cycles. As 22FRP is a generalization of the well-studied Replacement Paths problem (RP) that asks for the distances between ss and tt for any single edge failure, 22FRP 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], 22FRP is at least as hard as APSP, and thus a substantially subcubic time algorithm in the number of vertices for 22FRP would be a breakthrough. Therefore, our algorithm in O~(n3)\tilde{O}(n^3) time is conditionally nearly optimal. Our algorithm implies an O~(nf+1)\tilde{O}(n^{f+1}) time algorithm for the ffFRP problem, giving the first improvement over the straightforward O(nf+2)O(n^{f+2}) time algorithm. Then we focus on the restriction of 22FRP to graphs with small integer weights bounded by MM in absolute values. Using fast 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 implies an improvement over our O~(nf+1)\tilde{O}(n^{f+1}) time arbitrary weight algorithm for all f>1f>1. 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/3o(1)n^{8/3-o(1)} conditional lower bound for combinatorial 22FRP algorithms in directed unweighted graphs.

Keywords

Cite

@article{arxiv.2209.07016,
  title  = {Algorithms and Lower Bounds for Replacement Paths under Multiple Edge Failures},
  author = {Virginia Vassilevska Williams and Eyob Woldeghebriel and Yinzhan Xu},
  journal= {arXiv preprint arXiv:2209.07016},
  year   = {2022}
}

Comments

To appear in FOCS 2022; Abstract shortened to fit arXiv requirements

R2 v1 2026-06-28T01:19:55.071Z