Lune

SODA2024Top-tier venue

Fast 2-Approximate All-Pairs Shortest Paths

Michal Dory, Sebastian Forster, Yael Kirkpatrick, Yasamin Nazari, Virginia Vassilevska Williams, Tijn de Vos

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 2-approximate APSP in ร• (๐‘› 2.5-๐‘Ÿ + ๐‘› ๐œ” (๐‘Ÿ ) ) time, for any ๐‘Ÿ โˆˆ [0, 1]. This is ๐‘‚ (๐‘› 2.032 ) time, using known bounds for rectangular matrix multiplication ๐‘› ๐œ” (๐‘Ÿ ) [Le Gall, Urrutia, SODA 2018]. Our result improves on the ร• (๐‘› 2.25 ) bound of [Roditty, STOC 2023], and on the ร• (๐‘š โˆš ๐‘› + ๐‘› 2 ) bound of [Baswana, Kavitha, SICOMP 2010] for graphs with ๐‘š โ‰ฅ ๐‘› 1.532 edges. For weighted graphs, we obtain (2 + ๐œ–)-approximate APSP in ร• (๐‘› 3-๐‘Ÿ + ๐‘› ๐œ” (๐‘Ÿ ) ) time, for any ๐‘Ÿ โˆˆ [0, 1]. This is ๐‘‚ (๐‘› 2.214 ) time using known bounds for ๐œ” (๐‘Ÿ ). It improves on the state of the art bound of ๐‘‚ (๐‘› 2.25 ) 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 ร• (๐‘š๐‘› 2/3 ) time that supports 2-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 (1 + ๐œ–, ๐‘˜)approximate APSP, for ๐‘˜ = 2, 4, 6, 8.

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper ยท the top-tier papers that cite it ยท related work

Get the answer

Free to start. No credit card required.

Lineage

  • Faster Matrix Multiplication via Asymmetric Hashing cites A Refined Laser Method and Faster Matrix Multiplication
  • A Refined Laser Method and Faster Matrix Multiplication cites Faster Matrix Multiplication via Asymmetric Hashing
  • New Bounds for Matrix Multiplication: from Alpha to Omega cites Faster Matrix Multiplication via Asymmetric Hashing
  • New Bounds for Matrix Multiplication: from Alpha to Omega cites A Refined Laser Method and Faster Matrix Multiplication
  • A Refined Laser Method and Faster Matrix Multiplication cites New Bounds for Matrix Multiplication: from Alpha to Omega
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Improved Additive Approximation Algorithms for APSPCe Jin, Yael Kirkpatrick, Michal Stawarz, Virginia Vassilevska WilliamsSODA 2026

Builds on12

  1. A Refined Laser Method and Faster Matrix MultiplicationJosh Alman, Virginia Vassilevska WilliamsSODA 2021 ยท 275 citations
  2. New Bounds for Matrix Multiplication: from Alpha to OmegaVirginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, Renfei ZhouSODA 2024 ยท 90 citations
  3. Faster Matrix Multiplication via Asymmetric HashingRan Duan, Hongxun Wu, Renfei ZhouFOCS 2023 ยท 54 citations
  4. New Techniques and Fine-Grained Hardness for Dynamic Near-Additive SpannersThiago Bergamaschi, Monika Henzinger, Maximilian Probst Gutenberg, Virginia Vassilevska Williams et al.SODA 2021 ยท 19 citations
  5. Monochromatic Triangles, Triangle Listing and APSPVirginia Vassilevska Williams, Yinzhan XuFOCS 2020 ยท 15 citations

Related papers

  1. Faster Approximate All Pairs Shortest PathsBarna Saha, Christopher YeSODA 2024 ยท 3 citations
  2. Improved 2-Approximate Shortest Paths for close vertex pairsManoj GuptaFOCS 2025 ยท 2 citations
  3. Approximation Algorithms and Hardness for n-Pairs Shortest Paths and All-Nodes Shortest CyclesMina Dalirrooyfard, Ce Jin, Virginia Vassilevska Williams, Nicole WeinFOCS 2022 ยท 3 citations
  4. Nearly 2-Approximate Distance Oracles in Subquadratic TimeShiri Chechik, Tianyi ZhangSODA 2022 ยท 5 citations
  5. An almost 2-approximation for all-pairs of shortest paths in subquadratic timeMaor Akav, Liam RodittySODA 2020 ยท 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines