English

Undirected Replacement Paths: Dual Fault Reduces to Single Source

Data Structures and Algorithms 2026-05-05 v1

Abstract

Given a graph and two fixed vertices ss and tt, the Replacement Path Problem (RP) is to compute for every edge ee, the distance between ss and tt when ee is removed. There are two natural extensions to RP: (1) Single Source Replacement Paths (SSRP): Given a graph GG and a source node ss, compute for every vertex vv and every edge ee the ss-vv distance in G{e}G \setminus \{e\}. That is, we do not fix the target anymore. (2) 22-Fault Replacement Paths (2-FRP): Given a graph GG and two nodes ss and tt, compute for every pair of edges e,ee, e' the ss-tt distance in G{e,e}G \setminus \{e, e'\}. That is, we consider two failures instead of one. Previously, there was no known reduction between SSRP and 2-FRP. It seemed plausible that 2-FRP would be computationally harder because there are no settings where 2-FRP admits a faster algorithm than SSRP. In directed unweighted graphs there is a provable gap in complexity, and in undirected graphs many of the known 2-FRP algorithms in a variety of settings are much slower than those for SSRP in the same setting. The main contribution of this paper is a tight reduction from undirected 22-FRP to undirected SSRP, showing that contrary to prior intuition, 2-FRP is not harder than SSRP. As our reduction is weight-preserving, we obtain the first algorithms for 22-FRP that match the best-known runtimes for SSRP: (1) O~(Mnω)\tilde{O}(M n^{\omega}) for weights in [1,M][1, M] [GVW19], improving upon O(Mn2.87)O(Mn^{2.87}) [CZ24]; (2) n3/2Ω(logn)n^3/2^{\Omega(\sqrt{\log n})} for weights in [1,poly(n)][1, \text{poly}(n)] [GVW19], improving over the previous n3polylog(n)n^3\text{polylog}(n) running time [VWWX22]; (3) O~(mn1/2+n2)\tilde{O}(mn^{1/2}+n^{2}) combinatorial time for unweighted graphs [CC19], and more generally for rational weights in [1,2][1, 2] [CM20], improving upon O~(n31/18)\tilde{O}(n^{3-1/18}) [CZ24]. We complement these upper bounds with tight lower bounds under fine-grained hypotheses.

Keywords

Cite

@article{arxiv.2605.02114,
  title  = {Undirected Replacement Paths: Dual Fault Reduces to Single Source},
  author = {Jakob Nogler and Virginia Vassilevska Williams},
  journal= {arXiv preprint arXiv:2605.02114},
  year   = {2026}
}

Comments

ICALP 2026

R2 v1 2026-07-01T12:47:48.693Z