A Simple Optimal Algorithm for Directed Multi-Failure Replacement Paths
Kaito Harada, Tatsuya Terao
Key points
From the paper's conclusion- We also present a deterministic $O(n^4)$ time algorithm for $4$-FRP in directed weighted graphs, which implies a deterministic $O(n^f)$ time algorithm for $f$-FRP for every $f \ge 4$.
Abstract
Given a graph $G = (V, E)$ and two vertices $s, t \in V$, the $f$-fault replacement paths ($f$-FRP) problem asks to compute, for every set $F$ of at most $f$ edges, the distance from $s$ to $t$ in $G \setminus F$. In this paper, we present a $3$-FRP algorithm in deterministic $O(n^3 \log n)$ time for directed weighted graphs. We also present a deterministic $O(n^4)$ time algorithm for $4$-FRP in directed weighted graphs, which implies a deterministic $O(n^f)$ time algorithm for $f$-FRP for every $f \ge 4$. Since the output size of $f$-FRP can be $\Theta(n^f)$, our algorithms are optimal for every $f \ge 4$ and nearly optimal for $f = 3$. Our algorithms also extend to the single-source and all-pairs settings with $f-1$ and $f-2$ failures, respectively, with the same time complexity as $f$-FRP. Moreover, our algorithms are remarkably simple.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Simplified and Faster Algorithms for the Directed Single/Dual-Failure Replacement Paths via Modulo-Layer Hitting SetsarXiv · 2026
- A Simple Algorithm for the Directed Multiple Source Replacement Paths ProblemarXiv · 2026
- Optimal-Size Strong Connectivity Preservers under Two Edge Failures in Subcubic TimearXiv · 2026
- Faster Algorithms for Disjoint Paths in DAGs and Two Disjoint Shortest PathsarXiv · 2026
- Directed $k$-Disjoint Shortest Paths in Polynomial TimearXiv · 2026
- Local Representatives and Shortest Completions for Next-to-Shortest Paths in Directed GraphsarXiv · 2026