Sourcewise Approximate Distance Oracle
- The paper introduces a sourcewise approximate distance oracle that efficiently computes fault-tolerant distances from a given source set using landmark sampling and precomputed shortest-path trees.
- It leverages data structures like LCA and SPTs to ensure constant time queries while maintaining a favorable balance between space usage and approximation stretch factors.
- Experimental oracle schemes demonstrate trade-offs, offering stretch factors of 5 and 13, which optimize subquadratic space requirements even under single edge failures.
A sourcewise approximate distance oracle is a compact data structure designed for undirected, positively weighted graphs with a specified source set , enabling rapid, approximate computation of fault-tolerant distances from sources to arbitrary targets following the failure of an edge . The query requests an approximate distance from to in . Recent advances have produced oracles with strong trade-offs between query time, space usage, and approximation guarantees, notably achieving query time and subquadratic space for moderate stretch factors.
1. Formal Problem Definition
Given an undirected, positively weighted graph and source set , the sourcewise approximate distance oracle problem concerns preprocessing to answer queries of the form , where , , and . The exact post-fault shortest path distance is denoted . The oracle outputs an estimate such that
where is the multiplicative stretch. The relevant complexity measures are oracle size (total space) and query time (worst-case time per query). Polylogarithmic factors are typically suppressed in notation.
2. Algorithmic Constructs and Data Structures
Modern constructions for sourcewise oracles leverage several universal primitives:
- Unique Shortest Paths: Enforced via random perturbation to avoid path degeneracy and facilitate efficient data structure construction.
- Landmark Sampling: Vertices are sampled independently with probability , producing a landmark set so that, with high probability, all sufficiently long shortest paths contain a landmark. For parameter , every shortest path of hop-length at least hits .
- Shortest-Path Trees (SPTs): For each root , an SPT is computed, storing and hop-count for all .
- Lowest Common Ancestor (LCA) Data Structures: Implemented on SPTs for constant-time detection of whether a query edge lies on the path from root to a given target.
3. Oracle Architectures and Space/stretch Trade-offs
Two primary oracle schemes have been established (Dey et al., 3 Nov 2025):
| Oracle | Space | Stretch | Query Time |
|---|---|---|---|
| Oracle 1 | $5$ | ||
| Oracle 2 | $13$ |
- Oracle 1 (Stretch 5): Uses one level of landmarks with , constructing exact fault-tolerant oracles on , SPTs for each , and storing replacement path distances for edges on for chosen to minimize . Each query involves testing edge membership via LCA and aggregating at most two sub-oracle distances.
- Oracle 2 (Stretch 13): Employs two-level landmarking with landmarks sampled at and at . Targets and are selected from and , leveraging truncated SPTs and multiple replacement-path arrays. Query answering aggregates up to three independently fault-tolerant sub-distances.
4. Query Answering Mechanisms
In both oracles, queries proceed via the following steps:
- Check if lies on in using LCA. If not, return .
- Locate the nearest landmarks or targets (), determine membership and indices in the corresponding replacement-path arrays, and fetch precomputed distances.
- For Oracle 1 (two-level), sum at most two component distances (); for Oracle 2 (three-level), sum three ().
- Each lookup (array or LCA) executes in time.
The stretch is established via triangle-type path stitching and path decomposition arguments, ensuring that all computed distances satisfy or , respectively.
5. Prior Art and Contextual Comparison
The architecture of these sourcewise oracles is built atop the fault-tolerant oracle of Bilò et al. (STACS 2018), which constructs an exact distance oracle for all pairs in under any single edge fault, requiring space and constant query time. Preprocessing is polynomial, and exact replacement-paths are stored. The sourcewise oracles utilize this as a subroutine alongside additional landmark-driven structures to attain significant space reductions by trading off for small, constant stretches.
Earlier works (e.g., Chechik et al. SODA 2012, Baswana–Khanna 2013, Gupta–Singh ICALP 2018) focus on all-pairs or single-source oracles, often restricting to undirected or unweighted graphs, and do not achieve similar space/stretch combinations for the scenario.
6. Space/Accuracy Trade-Offs and Query Complexity
Oracle 1 is preferable when due to its scaling, whereas Oracle 2 is asymptotically superior for . In both constructions, the use of landmarks serves to bound the maximum hop-length in considered subpaths and minimize space. Both guarantee query time, enabled by precomputed SPTs, LCA structures, and direct-array access.
A plausible implication is that intermediate stretch and space trade-offs may be achievable by further stratifying the landmark sample or tightening the path decomposition analysis. It is conjectured that, for any integer , similar oracles with size and stretch $8k-3$ can be realized.
7. Extensions, Open Questions, and Research Directions
Open problems include:
- Extension to dual or multiple-fault sourcewise oracles: current constructions address only single edge failures.
- Generalization from to arbitrary pair-sets .
- Application to directed graphs or adaptation to handle vertex faults.
- Further space reduction to nearly linear for arbitrary stretch constants.
- Path-reporting capabilities, i.e., augmenting oracles to return explicit approximate paths rather than distances alone.
This research direction is closely connected to the paper of subquadratic all-pairs fault-tolerant oracles, replacement paths, and graph spanners in fault models. The prevailing methodology—landmark sampling, hierarchical decomposition, and local replacement-path storage—serves as a template for further advancements in fault-tolerant compact routing and sensitivity oracles.
References
- (Dey et al., 3 Nov 2025) Fault-Tolerant Approximate Distance Oracles with a Source Set
- Bilò et al. STACS 2018 (exact fault-tolerant oracles)
- Chechik et al. SODA 2012
- Baswana–Khanna 2013
- Gupta–Singh ICALP 2018
Sponsored by Paperpile, the PDF & BibTeX manager trusted by top AI labs.
Get 30 days free