English

Undirected 3-Fault Replacement Path in Nearly Cubic Time

Data Structures and Algorithms 2024-11-28 v1

Abstract

Given a graph G=(V,E)G=(V,E) and two vertices s,tVs,t\in V, the ff-fault replacement path (ffFRP) problem computes for every set of edges FF where Ff|F|\leq f, the distance from ss to tt when edges in FF fail. A recent result shows that 2FRP in directed graphs can be solved in O~(n3)\tilde{O}(n^3) time [arXiv:2209.07016]. In this paper, we show a 3FRP algorithm in deterministic O~(n3)\tilde{O}(n^3) time for undirected weighted graphs, which almost matches the size of the output. This implies that ffFRP in undirected graphs can be solved in almost optimal O~(nf)\tilde{O}(n^f) time for all f3f\geq 3. To construct our 3FRP algorithm, we introduce an incremental distance sensitivity oracle (DSO) with O~(n2)\tilde{O}(n^2) worst-case update time, while preprocessing time, space, and query time are still O~(n3)\tilde{O}(n^3), O~(n2)\tilde{O}(n^2) and O~(1)\tilde{O}(1), respectively, which match the static DSO [Bernstein and Karger 2009]. Here in a DSO, we can preprocess a graph so that the distance between any pair of vertices given any failed edge can be answered efficiently. From the recent result in [arXiv:2211.05178], we can obtain an offline dynamic DSO from the incremental worst-case DSO, which makes the construction of our 3FRP algorithm more convenient. By the offline dynamic DSO, we can also construct a 2-fault single-source replacement path (2-fault SSRP) algorithm in O~(n3)\tilde{O}(n^3) time, that is, from a given vertex ss, we want to find the distance to any vertex tt when any pair of edges fail. Thus the O~(n3)\tilde{O}(n^3) time complexity for 2-fault SSRP is also almost optimal. Now we know that in undirected graphs 1FRP can be solved in O~(m)\tilde{O}(m) time [Nardelli, Proietti, Widmayer 2001], and 2FRP and 3FRP in undirected graphs can be solved in O~(n3)\tilde{O}(n^3) time. In this paper, we also show that a truly subcubic algorithm for 2FRP in undirected graphs does not exist under APSP-hardness conjecture.

Keywords

Cite

@article{arxiv.2411.18312,
  title  = {Undirected 3-Fault Replacement Path in Nearly Cubic Time},
  author = {Shucheng Chi and Ran Duan and Benyu Wang and Tianle Xie},
  journal= {arXiv preprint arXiv:2411.18312},
  year   = {2024}
}
R2 v1 2026-06-28T20:14:32.164Z