CS Paper Radar

A Simple Optimal Algorithm for Directed Multi-Failure Replacement Paths

Kaito Harada, Tatsuya Terao

cs.DS ·submitted 2026-11-21 21:53 UTC · v1

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 $Θ(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.

Comment
17 pages, 2 figures

Closest papers

Nearest neighbours by meaning across the whole index.

A Simple Algorithm for the Directed Multiple Source Replacement Paths Problem

cs.DS ·2026-08-17 ·Kaito Harada, Taisuke Izumi
publishedtheory similarity 0.75
Abstract · 15 pages, 1 figure. To appear in SOSA 2027

In the replacement paths (RP) problem, we are given a graph $G = (V, E)$ with $n = |V|$ and $m = |E|$, together with two vertices $s, t \in V$, and are asked to compute the shortest-path distance from $s$ to $t$ in $G \setminus e$ for every failed edge $e \in E$. The multiple source replacement paths (MSRP) problem is its natural generalization: given a set $S \subseteq V$ of $σ$ sources, compute the replacement path distances for all pairs in $S \times V$. In this paper, we present a randomized combinatorial algorithm that solves MSRP on unweighted directed graphs in $\tilde{O}(m\sqrt{σn} + σn^2)$ time, with all the output distances correct with high probability. This improves the best known bound $\tilde{O}(m\min\{σ\sqrt{n}, n\} + σn^2)$ for directed graphs, which is obtained either by running the single source RP algorithm of Chechik and Magen [ICALP'20] from each source separately or by constructing and querying the all-pairs distance sensitivity oracle of Bernstein and Karger [STOC'09]. Our running time is essentially tight among combinatorial algorithms because Gupta, Jain, and Modi [PODC'20] proved a lower bound of $m{(σn)}^{1/2-o(1)}$ for such algorithms, which holds even on undirected graphs, and the additive term $σn^2$ is proportional to the time needed to write down the $Θ(σn^2)$ output distances. The algorithm is also remarkably simple.

0.40

Simplified and Faster Algorithms for the Directed Single/Dual-Failure Replacement Paths via Modulo-Layer Hitting Sets

cs.DS ·2026-10-17 ·Kaito Harada, Tatsuya Terao
similarity 0.72
Abstract · 25 pages

We study the replacement paths problem in unweighted directed graphs with $n$ vertices and $m$ edges under one or two edge failures. We give simpler and faster algorithms for both settings. Both algorithms are based on a new technique, which we call \emph{modulo-layer hitting sets}. For the single-failure setting, we obtain a simple deterministic combinatorial algorithm running in $O(m\sqrt{n})$ time, which is nearly optimal under the combinatorial Boolean Matrix Multiplication (BMM) conjecture. In addition to removing the logarithmic overhead of the deterministic $\tilde{O}(m\sqrt{n})$-time algorithm of Alon, Chechik, and Cohen~[ICALP'19], our algorithm admits a much simpler implementation and analysis. For the dual-failure setting, we obtain a randomized combinatorial algorithm running in $\tilde{O}(n^{3-1/4})$ time. This improves upon the previous $\tilde{O}(n^{3-1/18})$-time combinatorial algorithm of Chechik and Zhang~[ICALP'24].

0.14

Faster Directed SSSP on Digraphs with Random Sparse Supports or Few DFS Exceptions

cs.DS ·2026-11-22 ·Valery, Grishin, Aryeh Lev Zabokritskiy
similarity 0.69
Abstract · 29 pages. Continuation of arXiv:2611.26453

We study exact single-source shortest paths (SSSP) in directed graphs with $n$ vertices, $m$ arcs and nonnegative real weights, in the comparison-addition model. This paper continues our earlier work, which gave a deterministic algorithm that takes $O(n\sqrt{\log n}(\log\log n)^{1/4})$ time when $m=O(n)$ and $O(n\sqrt{\log n}(\log\log n)^{5/8})$ time when $m=Θ(n\sqrt{\log\log n})$. Our two deterministic algorithms compute the distances on every input and take $O(n\sqrt{\log n})$ time on two families of inputs, one per density. The support of an input is its underlying simple undirected graph. When $m=O(n)$, the first algorithm takes $O(n\sqrt{\log n})$ time if no two simple cycles of the support with fewer than $P$ vertices share a vertex, where $P=Θ(\sqrt{\log n})$ depends only on the support. For fixed $c>0$, a uniformly random graph with $n$ vertices and $\lfloor cn\rfloor$ edges has this property with probability at least $1-n^{-1+o(1)}$, and the bound then holds for every choice of one or both directions of each edge, all weights and every source. The second family is defined through the depth-first search tree of the support that starts at the source and visits neighbours in identifier order. For fixed $k\ge1$, call a set $Y$ of exceptional vertices $k$-feasible if, for each nonroot vertex, at most $k$ of its proper ancestors are joined to its subtree by arcs whose endpoints avoid $Y$ and whose underlying edges lie outside the DFS tree. Given $k$ but not such a set, the second algorithm takes, for every $k$-feasible set $Y$ of total out-degree $d^+(Y)$, time $O_k(n+m+(1+|Y|)\log n+\sqrt{(n+m)d^+(Y)\log n})$. When $m=Θ(n\sqrt{\log\log n})$, this is $O_k(n\sqrt{\log n})$ if some $k$-feasible set has $O(n/\sqrt{\log n})$ vertices and total out-degree $O(n/\sqrt{\log\log n})$.

0.11

Solving (Vertex-Weighted) Directed Multiway Cut Faster Than $2^n$

cs.DS ·2026-11-24 ·Mingyu Xiao
published similarity 0.64
Abstract · An initial version of this paper was presented at ESA 2024

In the Directed Multiway Cut problem, we are given a directed graph $G=(V,E)$ and a subset $T\subseteq V$, called the terminal set. The aim is to find a minimum-cardinality set $S\subseteq V\setminus T$, such that after deleting $S$, no directed path exists from one terminal to another terminal in the remaining graph. It had been an open question whether \textsc{Directed Multiway Cut} can be solved faster than the trivial running-time bound $O^*(2^{|V|})$. In this paper, we provide a positive answer to this question, presenting an algorithm with a running-time bound $O(1.9967^{|V|})$. The algorithm can also be modified to solve the weighted version (each vertex having a positive weight) in $O^*(1.9985^{|V|})$ time.

0.56

Strong Connectivity Oracle for Multiple Failures via Rooted Flow-Augmentation

cs.DS ·2026-11-06 ·Aditya Anand, Thatchaphol Saranurak, Benyu Wang
published similarity 0.64
Abstract · SODA 2027

We present a significantly improved $k$-fault-tolerant strong connectivity oracle, one of the most basic data structures on a directed graph $G$ that, given any set $F$ of failed edges of size $|F|\le k$, answers whether $G \setminus F$ is strongly connected. For every constant $k$, our oracle only uses $n^{1+o(1)}$ space and $n^{o(1)}$ query time. No prior result can achieve $o(n^{2})$ space and $o(n)$ query time, \emph{even when $k=2$}. Previous oracles either require $Ω(n)$ query time [BCR18], or $Ω(n^2)$ space [vdBS19]. Our main technical contribution is a \emph{rooted} version of the highly successful flow augmentation technique, which may be of independent interest. Given a directed graph $G$, an integer $k$, and a source vertex $s$, we can sample a set of edges $A$ such that each minimal $s$-rooted cut of size at most $k$ becomes an $s$-rooted min-cut in $G + A$ with probability $2^{-poly(k)}n^{-o(1)}$.

0.57

Deterministic Edge-Fault-Tolerant Connectivity Labeling Schemes with Nearly Optimal Label Size

cs.DS ·2026-09-08 ·Yaowei Long, Seth Pettie, Thatchaphol Saranurak
similarity 0.64
Abstract · 11 pages

For an undirected graph $G = (V,E)$ and a fault bound $f$, an edge-fault-tolerant connectivity labeling scheme assigns short labels to vertices and edges, so that for any vertex pair $(s,t)$ and failed edge set $F\subseteq E$ with $|F|\leq f$, the connectivity between $s$ and $t$ in $G-F$ can be answered by inspecting only the labels of $s$, $t$ and edges in $F$. In this paper, we present a labeling scheme that uses $O(\log^{2}n)$-bit labels that can be computed in deterministic polynomial time. This improves upon the previous $\tilde{O}(\sqrt{f})$ deterministic bound of [Long, Pettie, Saranurak'25], and even slightly improves the $O(\min\{f+\log n,\log^{2}n\log f\})$ randomized bound of [Dory, Parter'21] and [Long, Pettie, Saranurak'25] when $f = Ω(\log^{2}n)$. Moreover, for a general $f$, this is the first labeling scheme that produces an $\tilde{O}(1)$-size labeling which is simultaneously correct across all queries. Our approach combines the cycle-space-based labeling scheme from Dory and Parter with a recent result by [Knauer'26] on sparse cycle bases.

0.36

Solving Vertex Integrity Faster than $2^n$

cs.DS cs.DM ·2026-09-27 ·Sandip Das, Sweta Das, Sk Samim Islam, Ritam Manna Mitra, Aashirwad Mohapatra +1 more
theory similarity 0.62
Abstract · 14 Pages, 1 figure

Vertex Integrity is a classical graph parameter measuring the vulnerability of a network to vertex failures. We settle two fundamental questions concerning its exact exponential complexity. First, we prove that, unless the Exponential Time Hypothesis fails, Vertex Integrity has no $2^{o(n)}n^{O(1)}$-time algorithm. Secondly, we give a deterministic exact algorithm running in $O(1.9602^n)$ time and space, improving the straightforward $O(2^n)$ bound.

0.25

A Faster Algorithm for Fewer Vertex-Disjoint Paths Parameterized by Treewidth

cs.DS cs.CC ·2026-09-24 ·DongYun Byun, Akira Matsubayashi
theory similarity 0.62
Abstract · 22 pages, 1 figure. Presented in IPEC 2026

The $k$ vertex-disjoint paths problem asks whether, given a graph $G$ and $k$ pairs of vertices $(s_1,t_1)$, \ldots, $(s_k,t_k)$, $G$ has $k$ pairwise vertex-disjoint paths connecting $s_i$ and $t_i$ for all $1\leq i\leq k$. If $G$ is undirected, then this problem is NP-complete, but there exist FPT algorithms parameterized by $k$.Since these algorithms involve an extremely large function on $k$, algorithms for restricted graphs have also been investigated. In particular, a $2^{2tw\log tw+O(tw)}\cdot n$ time algorithm for undirected graphs with $n$ vertices and treewidth $tw$ is proposed by Scheffler (Technical Report 396, TU Berlin, '94), and it is proved by Lokshtanov, Marx, and Saurabh (SIAM J. Comput. '18) that, under the ETH, there exists no $2^{o(pw\log pw)}\cdot n^{O(1)}$ time algorithm for either directed or undirected graphs with pathwidth $pw$ and for $k=Ω(pw^4)$. It has not been known whether the lower bound also holds for a smaller $k$. In this paper, we prove that, for both the directed and undirected cases, there is an algorithm faster than Lokshtanov et al.'s lower bound for $k=tw^{o(1)}$ by proposing a $2^{O((tw+k)\log k)}\cdot n$ time algorithm. Besides, we prove a lower bound that, under the SETH, there exists no $(2-ε)^{pw\log pw}\cdot n^{O(1)}$ time algorithm for directed graphs and for a general $k$. This lower bound is tight because, with slight modifications, Scheffler's algorithm runs in $2^{pw\log pw+O(pw)}\cdot n$ time also for directed graphs.

0.26