English

Near Optimal Algorithm for the Directed Single Source Replacement Paths Problem

Data Structures and Algorithms 2020-04-29 v1

Abstract

In the Single Source Replacement Paths (SSRP) problem we are given a graph G=(V,E)G = (V, E), and a shortest paths tree K^\widehat{K} rooted at a node ss, and the goal is to output for every node tVt \in V and for every edge ee in K^\widehat{K} the length of the shortest path from ss to tt avoiding ee. We present an O~(mn+n2)\tilde{O}(m\sqrt{n} + n^2) time randomized combinatorial algorithm for unweighted directed graphs. Previously such a bound was known in the directed case only for the seemingly easier problem of replacement path where both the source and the target nodes are fixed. Our new upper bound for this problem matches the existing conditional combinatorial lower bounds. Hence, (assuming these conditional lower bounds) our result is essentially optimal and completes the picture of the SSRP problem in the combinatorial setting. Our algorithm extends to the case of small, rational edge weights. We strengthen the existing conditional lower bounds in this case by showing that any O(mn1/2ϵ)O(mn^{1/2-\epsilon}) time (combinatorial or algebraic) algorithm for some fixed ϵ>0\epsilon >0 yields a truly subcubic algorithm for the weighted All Pairs Shortest Paths problem (previously such a bound was known only for the combinatorial setting).

Keywords

Cite

@article{arxiv.2004.13673,
  title  = {Near Optimal Algorithm for the Directed Single Source Replacement Paths Problem},
  author = {Shiri Chechik and Ofer Magen},
  journal= {arXiv preprint arXiv:2004.13673},
  year   = {2020}
}

Comments

38 pages, 9 figures, to appear in the Proceedings of the 47th International Colloquium on Automata, Languages and Programming (ICALP)