English

Improved 2-Approximate Shortest Paths for close vertex pairs

Data Structures and Algorithms 2025-07-29 v1

Abstract

An influential result by Dor, Halperin, and Zwick (FOCS 1996, SICOMP 2000) implies an algorithm that can compute approximate shortest paths for all vertex pairs in O~(n2+O(1k))\tilde{O}(n^{2+O\left(\frac{1}{k}\right )}) time, ensuring that the output distance is at most twice the actual shortest path, provided the pairs are at least kk apart, where k2k \ge 2. We present the first improvement on this result in over 25 years. Our algorithm achieves roughly same O~(n2+1k)\tilde{O}(n^{2+\frac{1}{k}}) runtime but applies to vertex pairs merely O(logk)O(\log k) apart, where logk1\log k \ge 1. When k=lognk=\log n, the running time of our algorithm is O~(n2)\tilde{O}(n^2) and it works for all pairs at least O(loglogn)O(\log \log n) apart. Our algorithm is combinatorial, randomized, and returns correct results for all pairs with a high probability.

Keywords

Cite

@article{arxiv.2507.19859,
  title  = {Improved 2-Approximate Shortest Paths for close vertex pairs},
  author = {Manoj Gupta},
  journal= {arXiv preprint arXiv:2507.19859},
  year   = {2025}
}

Comments

Accepted in FOCS 2025

R2 v1 2026-07-01T04:20:00.664Z