English

Near-Optimal Deterministic Single-Source Distance Sensitivity Oracles

Data Structures and Algorithms 2021-07-01 v1

Abstract

Given a graph with a source vertex ss, the Single Source Replacement Paths (SSRP) problem is to compute, for every vertex tt and edge ee, the length d(s,t,e)d(s,t,e) of a shortest path from ss to tt that avoids ee. A Single-Source Distance Sensitivity Oracle (Single-Source DSO) is a data structure that answers queries of the form (t,e)(t,e) by returning the distance d(s,t,e)d(s,t,e). We show how to deterministically compress the output of the SSRP problem on nn-vertex, mm-edge graphs with integer edge weights in the range [1,M][1,M] into a Single-Source DSO of size O(M1/2n3/2)O(M^{1/2}n^{3/2}) with query time O~(1)\widetilde{O}(1). The space requirement is optimal (up to the word size) and our techniques can also handle vertex failures. Chechik and Cohen [SODA 2019] presented a combinatorial, randomized O~(mn+n2)\widetilde{O}(m\sqrt{n}+n^2) time SSRP algorithm for undirected and unweighted graphs. Grandoni and Vassilevska Williams [FOCS 2012, TALG 2020] gave an algebraic, randomized O~(Mnω)\widetilde{O}(Mn^\omega) time SSRP algorithm for graphs with integer edge weights in the range [1,M][1,M], where ω<2.373\omega<2.373 is the matrix multiplication exponent. We derandomize both algorithms for undirected graphs in the same asymptotic running time and apply our compression to obtain deterministic Single-Source DSOs. The O~(mn+n2)\widetilde{O}(m\sqrt{n}+n^2) and O~(Mnω)\widetilde{O}(Mn^\omega) preprocessing times are polynomial improvements over previous o(n2)o(n^2)-space oracles. On sparse graphs with m=O(n5/4ε/M7/4)m=O(n^{5/4-\varepsilon}/M^{7/4}) edges, for any constant ε>0\varepsilon > 0, we reduce the preprocessing to randomized O~(M7/8m1/2n11/8)=O(n2ε/2)\widetilde{O}(M^{7/8}m^{1/2}n^{11/8})=O(n^{2-\varepsilon/2}) time. This is the first truly subquadratic time algorithm for building Single-Source DSOs on sparse graphs.

Keywords

Cite

@article{arxiv.2106.15731,
  title  = {Near-Optimal Deterministic Single-Source Distance Sensitivity Oracles},
  author = {Davide Bilò and Sarel Cohen and Tobias Friedrich and Martin Schirneck},
  journal= {arXiv preprint arXiv:2106.15731},
  year   = {2021}
}

Comments

Full version of a paper to appear at ESA 2021. Abstract shortened to meet ArXiv requirements

R2 v1 2026-06-24T03:44:30.211Z