English

Near Optimal Algorithm for Fault Tolerant Distance Oracle and Single Source Replacement Path problem

Data Structures and Algorithms 2022-07-01 v1

Abstract

In a graph GG with a source ss, we design a distance oracle that can answer the following query: Query(s,t,e)(s,t,e) -- find the length of shortest path from a fixed source ss to any destination vertex tt while avoiding any edge ee. We design a deterministic algorithm that builds such an oracle in O~(mn)\tilde{O}(m\sqrt n) time. Our oracle uses O~(nn)\tilde{O}(n\sqrt n) space and can answer queries in O~(1)\tilde{O}(1) time. Our oracle is an improvement of the work of Bil\`{o} et al. (ESA 2021) in the preprocessing time, which constructs the first deterministic oracle for this problem in O~(mn+n2)\tilde{O}(m\sqrt n+n^2) time. Using our distance oracle, we also solve the {\em single source replacement path problem} (SSR problem). Chechik and Cohen (SODA 2019) designed a randomized combinatorial algorithm to solve the SSR problem. The running time of their algorithm is O~(mn+n2)\tilde{O}(m\sqrt n + n^2). In this paper, we show that the SSR problem can be solved in O~(mn+R)\tilde{O}(m\sqrt n + |\mathcal{R}|) time, where R\mathcal{R} is the output set of the SSR problem in GG. Our SSR algorithm is optimal (upto polylogarithmic factor) as there is a conditional lower bound of Ω(mn)\Omega(m\sqrt n) for any combinatorial algorithm that solves this problem.

Keywords

Cite

@article{arxiv.2206.15016,
  title  = {Near Optimal Algorithm for Fault Tolerant Distance Oracle and Single Source Replacement Path problem},
  author = {Dipan Dey and Manoj Gupta},
  journal= {arXiv preprint arXiv:2206.15016},
  year   = {2022}
}

Comments

Accepted in ESA 2022

R2 v1 2026-06-24T12:09:08.667Z