Lune

FOCS2022Top-tier venue

Approximation Algorithms and Hardness for n-Pairs Shortest Paths and All-Nodes Shortest Cycles

Mina Dalirrooyfard, Ce Jin, Virginia Vassilevska Williams, Nicole Wein

Abstract

We study the approximability of two related problems on graphs with n nodes and m edges: n-Pairs Shortest Paths (n-PSP), where the goal is to find a shortest path between O(n) prespecified pairs, and All Node Shortest Cycles (ANSC), where the goal is to find the shortest cycle passing through each node. Approximate n-PSP has been previously studied, mostly in the context of distance oracles. We ask the question of whether approximate n-PSP can be solved faster than by using distance oracles or All Pair Shortest Paths (APSP). ANSC has also been studied previously, but only in terms of exact algorithms, rather than approximation.We provide a thorough study of the approximability of n PSP and ANSC, providing a wide array of algorithms and conditional lower bounds that trade off between running time and approximation ratio.A highlight of our conditional lower bounds results is that for any integer k≥\geq1, under the combinatorial 4k-clique hypothesis, there is no combinatorial algorithm for unweighted undirected n-PSP with approximation ratio better than 1+1/k1+1/k that runs in O(m2−2/(k+1)n1/(k+1)−ε)O(m^{2-2/(k+1)}n^{1/(k+1)-\varepsilon}) time. This nearly matches an upper bound implied by the result of Agarwal (2014).Our algorithms use a surprisingly wide range of techniques, including techniques from the girth problem, distance oracles, approximate APSP, spanners, fault-tolerant spanners, and link-cut trees.A highlight of our algorithmic results is that one can solve both n-PSP and ANSC in O(m+n3/2+∈)O(m+n^{3/2+\in}) time1with approximation factor 2+ε2+\varepsilon (and additive error that is function of ε\varepsilon), for any constant ε<0\varepsilon\lt 0. For n-PSP, our conditional lower bounds imply that this approximation ratio is nearly optimal for any subquadratic-time combinatorial algorithm. We further extend these algorithms for n-PSP and ANSC to obtain a time/accuracy trade-off that includes near-linear time algorithms.1O~\tilde{O} hides sub-polynomial factors.Additionally, for ANSC, for all integers k≥1k\geq 1, we extend the very recent almost k-approximation algorithm for the girth problem that works in O~(n1+1/k)\tilde{O}(n^{1+1/k}) time [Kadria et al. SODA’22], and obtain an almost k-approximation algorithm for ANSC in O~(mn1/k)\tilde{O}(mn^{1/k}) time.

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.

3 top-tier papers have 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

  • Removing Additive Structure in 3SUM-Based Reductions cites A Refined Laser Method and Faster Matrix Multiplication
  • Fast 2-Approximate All-Pairs Shortest Paths cites New Techniques and Fine-Grained Hardness for Dynamic Near-Additive Spanners
  • Fast 2-Approximate All-Pairs Shortest Paths cites A Refined Laser Method and Faster Matrix Multiplication
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 citations
  2. Fast 2-Approximate All-Pairs Shortest PathsMichal Dory, Sebastian Forster, Yael Kirkpatrick, Yasamin Nazari et al.SODA 2024
  3. Subquadratic algorithms in minor-free digraphs: (weighted) distance oracles, decrementai reachability, and moreAdam Karczmarz, Da Wei ZhengSODA 2025

Builds on10

  1. A Refined Laser Method and Faster Matrix MultiplicationJosh Alman, Virginia Vassilevska WilliamsSODA 2021 · 275 citations
  2. Bipartite Matching in Nearly-linear Time on Moderately Dense GraphsJan van den Brand, Yin Tat Lee, Danupon Nanongkai, Richard Peng et al.FOCS 2020 · 72 citations
  3. New algorithms and hardness for incremental single-source shortest paths in directed graphsMaximilian Probst Gutenberg, Virginia Vassilevska Williams, Nicole WeinSTOC 2020 · 21 citations
  4. Truly Subcubic Min-Plus Product for Less Structured Matrices, with ApplicationsVirginia Vassilevska Williams, Yinzhan XuSODA 2020 · 19 citations
  5. 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

Related papers

  1. New Approximation Algorithms and Reductions for n-Pairs Shortest Paths and All-Nodes Shortest CyclesShiri Chechik, Itay Hoch, Gur LifshitzSODA 2025
  2. Improved Additive Approximation Algorithms for APSPCe Jin, Yael Kirkpatrick, Michal Stawarz, Virginia Vassilevska WilliamsSODA 2026
  3. Universe Reduction for APSP: Equivalence of Three Fine-Grained HypothesesNick FischerSTOC 2026 · 2 citations
  4. Constant girth approximation for directed graphs in subquadratic timeShiri Chechik, Yang P. Liu, Omer Rotem, Aaron SidfordSTOC 2020
  5. Improved 2-Approximate Shortest Paths for close vertex pairsManoj GuptaFOCS 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines