Reproduce “Breaking the Sorting Barrier for Directed Single-Source Shortest Paths” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ran Duan, Jiayi Mao, Xiao Mao, Xinkai Shu, Longhui Yin

The authors present a deterministic algorithm for single-source shortest paths in directed graphs with real non-negative edge weights. It computes distances using bounded batches and recursive work on representative pivots, rather than maintaining a distance order. In the comparison-addition model, it runs in O(m log²⁄³ n) time, improving on Dijkstra’s asymptotic bound for sparse graphs, but returns distances, not vertices sorted by distance.

Key insights

  • The 'sorting barrier' for SSSP can be overcome in the comparison-addition model when only distances are required, not the sorted order of all vertices by distance.
  • A strategic combination of Dijkstra-like frontier expansion and Bellman-Ford-like relaxation, implemented recursively, allows for more efficient propagation of shortest path information.
  • Dynamic frontier reduction using `FindPivots` and custom data structures that support batch processing are crucial for achieving sub-logarithmic factors in the time complexity.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.