Undirected Replacement Paths: Dual Fault Reduces to Single Source

Abstract

Given a graph and two fixed vertices s and t, the Replacement Path Problem (RP) is to compute for every edge e, the distance between s and t when e is removed. There are two natural extensions to RP: (1) Single Source Replacement Paths (SSRP): Given a graph G and a source node s, compute for every vertex v and every edge e the s-v distance in G \e\. That is, we do not fix the target anymore. (2) 2-Fault Replacement Paths (2-FRP): Given a graph G and two nodes s and t, compute for every pair of edges e, e' the s-t distance in G \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 2-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 2-FRP that match the best-known runtimes for SSRP: (1) O(M nω) for weights in [1, M] [GVW19], improving upon O(Mn2.87) [CZ24]; (2) n3/2( n) for weights in [1, poly(n)] [GVW19], improving over the previous n3polylog(n) running time [VWWX22]; (3) O(mn1/2+n2) combinatorial time for unweighted graphs [CC19], and more generally for rational weights in [1, 2] [CM20], improving upon O(n3-1/18) [CZ24]. We complement these upper bounds with tight lower bounds under fine-grained hypotheses.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…