English

New approximate distance oracles and their applications

Data Structures and Algorithms 2025-09-03 v1

Abstract

Let G=(V,E)G = (V, E) be an undirected graph with nn vertices and mm edges, and let μ=m/n\mu = m/n. A \emph{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< 2 and stretch 2\ge 2. Among our results, 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/20 < r < 1/2 and integer k1k \ge 1, we construct a (2k(12r)1)(2k(1 - 2r) - 1)-stretch distance oracle with O~(m+n1+1/k)\tilde{O}(m + n^{1 + 1/k}) space and O~(μnr)\tilde{O}(\mu n^r) query time. In addition, we demonstrate several applications of our new distance oracles to the nn-Pairs Shortest Paths (nn-PSP) problem and the All Nodes Shortest Cycles (ANSCANSC) problem.

Keywords

Cite

@article{arxiv.2509.00890,
  title  = {New approximate distance oracles and their applications},
  author = {Avi Kadria and Liam Roditty},
  journal= {arXiv preprint arXiv:2509.00890},
  year   = {2025}
}
R2 v1 2026-07-01T05:14:11.904Z