A Simple Shortest Path Algorithm with Linear Average Time

  • Authors:
  • Andrew V. Goldberg

  • Affiliations:
  • -

  • Venue:
  • ESA '01 Proceedings of the 9th Annual European Symposium on Algorithms
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a simple shortest path algorithm. If the input lengths are positive and uniformly distributed, the algorithm runs in linear time. The worst-case running time of the algorithm is O(m + n log C), where n and m are the number of vertices and arcs of the input graph, respectively, and C is the ratio of the largest and the smallest nonzero arc length.