M_Persian
December 31st, 2006, 05:49 PM
I have an unsolved problem in graphs...its related to Bellman-Ford algorithm
I actually dont understand the meaning of this question
So i would be thankful if someone helps me with that :)
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 which belong to 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.
(this exercise is of the chapter 24 of the book 'Introduction to algorithms' by CLR)
Thanks
I actually dont understand the meaning of this question
So i would be thankful if someone helps me with that :)
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 which belong to 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.
(this exercise is of the chapter 24 of the book 'Introduction to algorithms' by CLR)
Thanks