English

On the Shoshan-Zwick Algorithm for the All-Pairs Shortest Path Problem

Data Structures and Algorithms 2016-03-30 v1

Abstract

The Shoshan-Zwick algorithm solves the all pairs shortest paths problem in undirected graphs with integer edge costs in the range {1,2,,M}\{1, 2, \dots, M\}. It runs in O~(Mnω)\tilde{O}(M\cdot n^{\omega}) time, where nn is the number of vertices, MM is the largest integer edge cost, and ω<2.3727\omega < 2.3727 is the exponent of matrix multiplication. It is the fastest known algorithm for this problem. This paper points out the erroneous behavior of the Shoshan-Zwick algorithm and revises the algorithm to resolve the issues that cause this behavior. Moreover, it discusses implementation aspects of the Shoshan-Zwick algorithm using currently-existing sub-cubic matrix multiplication algorithms.

Keywords

Cite

@article{arxiv.1603.08627,
  title  = {On the Shoshan-Zwick Algorithm for the All-Pairs Shortest Path Problem},
  author = {Pavlos Eirinakis and Matthew Williamson and K. Subramani},
  journal= {arXiv preprint arXiv:1603.08627},
  year   = {2016}
}

Comments

16 pages

R2 v1 2026-06-22T13:20:10.180Z