Abstract
Let G = (V, E) be an undirected graph with n vertices and m edges, and let µ = m/n. A distance oracle is a data structure designed to answer approximate distance queries, with the goal of achieving low stretch, efficient space usage, and fast query time. While much of the prior work focused on distance oracles with constant query time, this paper presents a comprehensive study of distance oracles with non-constant query time. We explore the tradeoffs between space, stretch, and query time of distance oracles in various regimes. Specifically, we consider both weighted and unweighted graphs in the regimes of stretch < 2 and stretch ≥ 2. In addition, we demonstrate several applications of our new distance oracles to the n-Pairs Shortest Paths (n-PSP) problem and the All Nodes Shortest Cycles (ANSC) problem. Our main contributions are: Weighted graphs: We present a new three-way trade-off between stretch, space, and query time, offering a natural extension of the classical Thorup–Zwick distance oracle [STOC’01 and JACM’05] to regimes with larger query time. Specifically, for any 0 < r < 1/2 and integer k ≥ 1, we construct a (2k(1−2r)−1)-stretch distance oracle with Õ(m+n1+1/k) space and Õ(µnr) query time. This construction provides an asymptotic improvement over the classical (2k − 1)-stretch and O(n1+1/k)-space tradeoff of Thorup and Zwick in sparse graphs, at the cost of increased query time. We also improve upon a result of Dalirrooyfard et al. [FOCS’22], who presented a (2k−2)-stretch distance oracle with O(m+n1+1/k) space and O(µn1/k) query time. In our oracle we reduce the stretch from (2k − 2) to (2k − 5) while preserving the same space and query time. Unweighted graphs: We present a (2k − 5, 4 + 2odd)-approximation1 distance oracle with O(n1+1/k) space and O(n1/k) query time. This improves upon a (2k − 2, 2odd)-approximation distance oracle of Dalirrooyfard et al. [FOCS’22] while maintaining the same space and query time. We also present a distance oracle that given u, v ∈ V returns an estimate d̂(u, v) ≤ d(u, v) + 2⌈d(u, v)/3⌉ + 2, using O(n4/3+2ε) space and O(n1−3ε) query time. To the best of our knowledge, this is the first distance oracle that simultaneously achieves a multiplicative stretch < 2, and a space complexity O(n1.5−α), for some α > 0. Applications for n-PSP and ANSC: We present an Õ(m1−1/(k+1)n)-time algorithm for the n-PSP problem, that for every input pair 〈si, ti〉, where i ∈ [n], returns an estimate d̂(si, ti) such that d̂(si, ti) ≤ d(si, ti) + 2⌈d(si, ti)/2k⌉. By allowing a small additive error, this result circumvents the conditional running time lower bound of Ω (Formula presented) , established by Dalirrooyfard et al. [FOCS’22] for achieving (1 + 1/k)-stretch. Additionally, we present an Õ(mn1−1/k)-time algorithm for the ANSC problem that computes, for every u ∈ V , an estimate ĉu such that ĉu ≤ SC(u) + 2⌈SC(u)/2(k − 1)⌉, where SC(u) denotes the length of the shortest cycle containing u. This improves upon the Õ(m2−2/kn1/k)-time algorithm of Dalirrooyfard et al. [FOCS’22], while achieving the same approximation guarantee. We obtain our results by developing several new techniques, among them are the borderline vertices technique and the middle vertex technique, which may be of independent interest.
| Original language | English |
|---|---|
| Title of host publication | 36th International Symposium on Algorithms and Computation, ISAAC 2025 |
| Editors | Ho-Lin Chen, Wing-Kai Hon, Meng-Tsung Tsai |
| Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
| ISBN (Electronic) | 9783959774086 |
| DOIs | |
| State | Published - 2025 |
| Event | 36th International Symposium on Algorithms and Computation, ISAAC 2025 - Tainan, Taiwan, Province of China Duration: 7 Dec 2025 → 10 Dec 2025 |
Publication series
| Name | Leibniz International Proceedings in Informatics, LIPIcs |
|---|---|
| Volume | 359 |
| ISSN (Print) | 1868-8969 |
Conference
| Conference | 36th International Symposium on Algorithms and Computation, ISAAC 2025 |
|---|---|
| Country/Territory | Taiwan, Province of China |
| City | Tainan |
| Period | 7/12/25 → 10/12/25 |
Bibliographical note
Publisher Copyright:© 2025 Avi Kadria and Liam Roditty.
Keywords
- Data structures
- Distance oracles
- Fine-grained algorithms
- Graph algorithms
Fingerprint
Dive into the research topics of 'New Approximate Distance Oracles and Their Applications'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver