Question: Given a weighted directed graph G V E with no

Given a weighted, directed graph G = (V, E) with no negative-weight cycles, let m be the maximum over all pairs of vertices u, v ¬ V of the minimum number of edges in a shortest path from u to v. (Here, the shortest path is by weight, not the number of edges.) Suggest a simple change to the Bellman-Ford algorithm that allows it to terminate in m + 1 passes.
View Solution:

Sale on SolutionInn
  • CreatedJuly 13, 2010
  • Files Included
Post your question