Simple O(n²) Algorithm Delivers First Optimal APSP Solution for Sparse Graphs
IgorCarron · x · 2026-12-05
Researchers Ken-ichi Kawarabayashi and Yu Kohara present the Report-and-Run (R&R) algorithm on arXiv: a simple deterministic algorithm in the comparison-addition model that either detects a negative-weight cycle or solves All-Pairs Shortest Paths in O(n²) time on n-vertex, O(n)-edge directed graphs with arbitrary real weights — matching the Ω(n²) output-size lower bound and giving the first optimal sparse APSP algorithm in this model.
Variants include O(nk)-time k-nearest-vertex computation (via lazy initialization or hash tables) for bounded-degree graphs with non-negative weights, plus blocking and edge-caching heuristics that cut comparisons and additions versus Dijkstra on sparse random graphs.
More from Research
- BAIR publishes full NeurIPS 2026 listings: 224 papers, 5 orals, 12 spotlights — berkeley_ai · 2026-12-05
- Sthiti adds neurons per fact for continual learning: 98% retention vs LoRA's under 30% — Nandakishor_ml · 2026-12-05
- Mechanistic interpretability traces one thought inside Stockfish 19's neural net — CatAstro_Piyush · 2026-12-05
- Berkeley releases FantasticML: 48 expert-verified tasks to test LLM-driven ML discovery — berkeley_ai · 2026-12-05
- Berkeley teaches robots to peel with a knife: two-stage learning tops 90% success — berkeley_ai · 2026-12-05
- 14-year-old trains a 326M LLM from scratch on one RTX 3060 Ti in 180 hours — alex_verem · 2026-12-05