Fast 2-Approximate All-Pairs Shortest Paths
Abstract
In this paper, we revisit the classic approximate All-Pairs Shortest Paths (APSP) problem in undirected graphs. For unweighted graphs, we provide an algorithm for -approximate APSP in time, for any . This is time, using known bounds for rectangular matrix multiplication [Le Gall, Urrutia, SODA 2018]. Our result improves on the bound of [Roditty, STOC 2023], and on the bound of [Baswana, Kavitha, SICOMP 2010] for graphs with edges. For weighted graphs, we obtain -approximate APSP in time, for any . This is time using known bounds for . It improves on the state of the art bound of by [Kavitha, Algorithmica 2012]. Our techniques further lead to improved bounds in a wide range of density for weighted graphs. In particular, for the sparse regime we construct a distance oracle in time that supports -approximate queries in constant time. For sparse graphs, the preprocessing time of the algorithm matches conditional lower bounds [Patrascu, Roditty, Thorup, FOCS 2012; Abboud, Bringmann, Fischer, STOC 2023]. To the best of our knowledge, this is the first 2-approximate distance oracle that has subquadratic preprocessing time in sparse graphs. We also obtain new bounds in the near additive regime for unweighted graphs. We give faster algorithms for -approximate APSP, for . We obtain these results by incorporating fast rectangular matrix multiplications into various combinatorial algorithms that carefully balance out distance computation on layers of sparse graphs preserving certain distance information.
Cite
@article{arxiv.2307.09258,
title = {Fast 2-Approximate All-Pairs Shortest Paths},
author = {Michal Dory and Sebastian Forster and Yael Kirkpatrick and Yasamin Nazari and Virginia Vassilevska Williams and Tijn de Vos},
journal= {arXiv preprint arXiv:2307.09258},
year = {2023}
}
Comments
Accepted to SODA '24