[Paper Review] Approximate Distance Oracle with Constant Query Time
This paper presents a novel approximate distance oracle for undirected graphs with non-negative edge weights that achieves $2k-1$ stretch and constant $O(1)$ query time, while maintaining $O(kn^{1+1/k})$ space. It combines the Mendel-Naor distance oracle for initial estimation with a modified Thorup-Zwick framework to enable constant-time queries via precomputed distance thresholds and pivot structures.
An approximate distance oracle is a succinct data structure that provides fast answers to distance queries between any two nodes. In this paper we consider approximate distance oracles for general undirected graphs with non-negative edge weights with constant query time. We present a distance oracle of size O(k n^{1+1/k}), with 2k-1 stretch and O(1) query time. This improves the O(log{k}) query time of Wulff-Nilsen's distance oracle [SODA '13], which in turn improved the O(k) query time of Thorup and Zwick's distance oracle [J. ACM '05].
Motivation & Objective
- To design a distance oracle with constant query time for general undirected graphs with non-negative edge weights.
- To improve upon prior oracles that achieved $O(\log k)$ query time, such as Wulff-Nilsen's, by reducing it to $O(1)$.
- To maintain a near-optimal space bound of $O(kn^{1+1/k})$ while achieving $2k-1$ stretch.
- To enable practical deployment in large-scale networks where sublinear query time is critical.
Proposed method
- Leverage the Mendel-Naor distance oracle to obtain an initial $O(ck)$-stretch estimate for all pairs in $O(1)$ time.
- Construct a modified Thorup-Zwick oracle using pivot sets and bunches to support $2k-1$-stretch queries.
- Preprocess distance thresholds $\tilde{\cal D}(d)$ by merging the Mendel-Naor distance set $\cal D_{MN}$ with the Thorup-Zwick set $\cal D_{TZ}$.
- For each node $u$, compute $\delta_j(u)$, $\Delta_j(u)$, and use them to precompute indices $x_1(i,u)$, $x_2(i,u)$, $x_3(i,u)$ to enable constant-time query routing.
- Use a hash function $h_u$ and list $L_u$ to efficiently map query distances to precomputed values during lookup.
- Combine the $O(1)$-time oracle from Mendel-Naor with the $2k-1$-stretch structure of Thorup-Zwick via a hybrid query algorithm that selects the best estimate in constant time.
Experimental results
Research questions
- RQ1Can a distance oracle achieve $O(1)$ query time while maintaining $2k-1$ stretch and $O(kn^{1+1/k})$ space?
- RQ2Is it possible to reduce the $O(\log k)$ query time of Wulff-Nilsen's oracle to a universal constant?
- RQ3How can a low-stretch initial estimate be combined with a Thorup-Zwick-style structure to enable constant-time queries?
- RQ4What is the construction time overhead of achieving constant query time with $2k-1$ stretch?
Key findings
- The proposed distance oracle achieves $O(1)$ query time with $2k-1$ stretch and $O(kn^{1+1/k})$ space, improving upon Wulff-Nilsen's $O(\log k)$ query time.
- The construction time is $O(kmn^{1/k} + kn^{1+1/k}\log n + mn^{1/(ck)}\log^3 n)$, which is efficient for sparse graphs.
- The method combines the Mendel-Naor oracle for fast initial estimation with a refined Thorup-Zwick structure to ensure stretch guarantees.
- The preprocessing for each node takes $O(k^2)$ time, leading to a total preprocessing time of $O(nk\log n)$, which is efficient for large graphs.
- The data structure supports $O(1)$-time queries by precomputing critical distance thresholds and routing indices for all nodes and query pairs.
- The size of the data structure is $O(kn^{1+1/k})$, matching the optimal trade-off up to constant factors under the girth conjecture.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.