Near-Optimal Deterministic Single-Source Distance Sensitivity Oracles

Davide Bilò, Sarel Cohen, Tobias Friedrich, Martin SchirneckarXiv 2021

TL;DR

This paper presents the first near-optimal deterministic data structures for finding shortest paths in a graph when a single edge or vertex fails. By combining a novel "versatile compression" scheme with new derandomization techniques, the authors achieve optimal space usage and provide the first truly subquadratic preprocessing time for building these oracles on sparse graphs.

What Problem Does This Paper Address?

In real-world networks—from fiber-optic cables to road systems—components fail. When an edge or vertex goes down, we need to quickly find the new shortest path from a starting point ($s$) to a destination ($t$). This is known as the Single-Source Replacement Paths (SSRP) problem.

While you could just pre-calculate every possible failure and store the results, that would take $O(n^2)$ space for a graph with $n$ vertices, which is prohibitively large for massive networks. Researchers instead try to build Distance Sensitivity Oracles (DSOs): compact data structures that can answer "what is the distance from $s$ to $t$ if edge $e$ fails?" in nearly constant time.

The challenge has been building these oracles efficiently (preprocessing time), keeping them small (space complexity), and doing so without relying on "luck" (randomized algorithms).

Methods

The authors introduce three major innovations:

  1. Multi-stage Derandomization: They successfully "derandomize" two state-of-the-art SSRP algorithms. They use a hierarchical framework to identify a small set of "critical paths" that must be monitored, replacing the previous method of random sampling with a deterministic greedy approach.
  2. Versatile Compression: The core "aha!" moment is that any shortest path under failure can be partitioned into a small number of segments ($O(\sqrt{Mn})$). Within these segments, the replacement distances behave predictably. By storing only the "break points" where distances change, they compress the $O(n^2)$ possible outputs into a much smaller $O(M^{1/2}n^{3/2})$ space.
  3. Advanced Search for Sparse Graphs: For graphs with fewer edges, they developed a randomized algorithm that exploits path monotonicity. This allows them to skip large portions of the graph during construction, breaking the "quadratic barrier" for preprocessing time.

Datasets

As a theoretical computer science paper, this work does not use empirical datasets. Instead, it provides rigorous mathematical proofs and complexity analysis. The algorithms are evaluated based on their asymptotic performance (Big-O notation) across different graph types (weighted vs. unweighted, dense vs. sparse).

Key Insights and Ideas

  • Space Optimality: The authors didn't just make a small oracle; they proved an unconditional lower bound. They showed that any such oracle must take at least $\Omega(M^{1/2}n^{3/2})$ bits, meaning their construction is essentially as small as mathematically possible.
  • The Power of Undirectedness: A key reason their compression works is that the graphs are undirected. This allows the analysis to "traverse" paths in both directions to prove that certain detour stubs cannot intersect, a property that doesn't hold in directed graphs.
  • Path-Reporting: Unlike many previous oracles that only return the distance, these oracles can be made "path-reporting," meaning they can actually reconstruct the new shortest path edge-by-edge very quickly.

Key Results

The paper's results significantly improve the state-of-the-art across several dimensions, as summarized in the table below:

Comparison of results showing the improvements in preprocessing time and space for various graph settings.
  • For Unweighted Graphs: They achieved $O(n^{3/2})$ space with $\tilde{O}(1)$ query time, improving preprocessing time by a factor of $\sqrt{n}$ over previous deterministic results.
  • For Weighted Graphs: They achieved $O(M^{1/2}n^{3/2})$ space, the first such result for graphs with integer weights up to $M$.
  • Sparse Graph Breakthrough: On very sparse graphs, they reduced preprocessing time to $O(n^{2-\epsilon/2})$, the first "truly subquadratic" result in this field.

Limitations and Future Work

  • Directed Graphs: The current compression techniques rely on properties of undirected graphs. Extending these near-optimal bounds to directed graphs remains a major open challenge.
  • Deterministic Sparse Preprocessing: While the authors achieved subquadratic preprocessing for sparse graphs, that specific algorithm is still randomized. Finding a purely deterministic subquadratic algorithm for sparse graphs is a clear next step.
  • Vertex Failures: While the paper shows their DSO can handle vertex failures, they note that finding an efficient deterministic SSRP algorithm specifically for vertex failures is still an open question.

Summary updated

BibTeX
@misc{bilo2021near,
  author = {Davide Bilò and Sarel Cohen and Tobias Friedrich and Martin Schirneck},
  title = {{Near-Optimal Deterministic Single-Source Distance Sensitivity Oracles}},
  year = {2021},
  eprint = {2106.15731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.15731},
}
Figure