A blocked all-pairs shortest-paths algorithm

  • Authors:
  • Gayathri Venkataraman;Sartaj Sahni;Srabani Mukhopadhyaya

  • Affiliations:
  • Department of Computer and Information Science and Engineering, University of Florida, Gainesville, FL;Department of Computer and Information Science and Engineering, University of Florida, Gainesville, FL;Department of Computer and Information Science and Engineering, University of Florida, Gainesville, FL

  • Venue:
  • Journal of Experimental Algorithmics (JEA)
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

We propose a blocked version of Floyd's all-pairs shortest-paths algorithm. The blocked algorithm makes better utilization of cache than does Floyd's original algorithm. Experiments indicate that the blocked algorithm delivers a speedup (relative to the unblocked Floyd's algorithm) between 1.6 and 1.9 on a Sun Ultra Enterprise 4000/5000 for graphs that have between 480 and 3200 vertices. The measured speedup on an SGI O2 for graphs with between 240 and 1200 vertices is between 1.6 and 2.