Skip to content
Preprint

$\tilde{O}$ptimal Algorithm for 2-Approximate All Pair Shortest Paths -- almost

Jul 2026 · 0 citations · 28 references
Computer Science

TL;DR

A randomized algorithm is designed that runs in $\tilde{O}(n^2)$ time and, with high probability, guarantees a 2-approximation for all pairs at distance at least $c$, where $c \ge 0$ is a constant.

Abstract

Given an undirected, unweighted graph $G$, we aim to compute a 2-approximation of all-pairs shortest paths (APSP). This problem admits a natural lower bound of $\Omega(n^2)$ since the output size is $\Theta(n^2)$. A central goal in this area is to achieve a running time of $O(n^2)$. Dor, Halperin, and Zwick (FOCS 1996, SICOMP 2001) designed an algorithm with a running time of $\tilde{O}(n^2)$ that guarantees a 2-approximation only for pairs at a distance of at least $O(\log n)$. Recently, Gupta (FOCS 2025) improved this bound, handling all pairs at a distance of at least $O(\log \log n)$. We nearly resolve this problem. We design a randomized algorithm that runs in $\tilde{O}(n^2)$ time and, with high probability, guarantees a 2-approximation for all pairs at distance at least $c$, where $c \ge 0$ is a constant. Unlike the above two results, which were purely combinatorial, our algorithm combines combinatorial techniques with fast matrix multiplication (FMM).

View source

Similar papers

Preprint Aug 2026

A simple and practical $o(\sqrt{n})$-time algorithm for shortest paths in power law graphs

PBS is proposed and analyzed, a simple sublinear approximation algorithm for power-law graphs with parameter $\beta\in[2,3)$ that does not require any preprocessing, yet exhibits performance comparable to light index-based algorithms (of linear or sublinear index size).

Jiaqi Mao · 0 citations
Preprint Aug 2026

Tight Inapproximability of Max Independent Set in Triangle-Free Graphs

The soundness uses a result of Haeupler, Saha, and Srinivasan building on the proof of Moser and Tardos, to upper-bound the probability that a fixed relatively large subset is an independent set after the Moser-Tardos algorithm terminates.

Édouard Bonnet · 0 citations
Jul 2026

Graph k-Coloring in Average Sublinear Time

The main result shows that the exact average-case complexity of this fundamental problem is $\Theta(nk)$ for every $k \leq n^{c'}$ and some $c'\in (0, 1)$, and reveals the average sublinear nature of $k$-colorability: the average-case complexity is linear in $n$, and thus sublinear in the size of the input.

Cassandra Marcussen, Edward Pyne, R. Rubinfeld et al. · 0 citations
Preprint Sep 2026

A Deterministic $O^*((3/2)^n)$ Algorithm for the Parity of Directed Hamiltonian Cycles

We give a deterministic algorithm for the parity of the number of directed Hamiltonian cycles in an $n$-vertex digraph. For $n\geq 2$, the running time is $O^*((3/2)^n)$ and the space usage is $2^{O(n/\log n)}$. The construction starts from the local-degree identity of Bj\"orklund and Husfeldt. Their surviving terms ar...

Han-Qing Li · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.