paper

A Simple Algorithm for the Directed Multiple Source Replacement Paths Problem

arXiv:2608.16615

Abstract

In the replacement paths (RP) problem, we are given a graph with and , together with two vertices , and are asked to compute the shortest-path distance from to in for every failed edge . The multiple source replacement paths (MSRP) problem is its natural generalization: given a set of sources, compute the replacement path distances for all pairs in . In this paper, we present a randomized combinatorial algorithm that solves MSRP on unweighted directed graphs in time, with all the output distances correct with high probability. This improves the best known bound 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 for such algorithms, which holds even on undirected graphs, and the additive term is proportional to the time needed to write down the output distances. The algorithm is also remarkably simple.

15 pages, 1 figure

A Simple Algorithm for the Directed Multiple Source Replacement Paths Problem · wovepaper