• retagged by
2,236 views
0 0 votes

3 Answers

0 0 votes
Bellman-Ford algorithm works on graphs that don't contain any cycles with negative weights.
Here EBCDE make a cycle with negative weights of value -1.
So Bellman-Ford algorithm is not applicable.
Position:
Show:

Related questions

2 2 votes
1 1 answer
3.3k
3.3k views
Na462 asked Oct 20, 2018
3,342 views
Consider following with respect to directed graph where there can be positive,negative edge weights but no negative edge cycle.S1 : The Bellmann Ford algorithm will compu...
1 1 vote
1 answers 1 answer
1.9k
1.9k views
Sandy Sharma asked Aug 3, 2018
1,874 views
What is the reason behind it? How do we find an optimal substructure and overlapping sub problems in this ? In which line of code memoization is done? BELLMAN-FORD(G,w,s)...
0 0 votes
2 answers 2 answers
3.6k
3.6k views
iarnav asked May 17, 2018
3,576 views
Is it Dynamic programming?
2 2 votes
1 1 answer
1.2k
1.2k views
shaurya vardhan asked Nov 6, 2017
1,242 views
A pseudo code for Bellman Ford where each edge is relaxed k times where k>=1. Let the graph G be a simple connected and undirected graph . Let number of vertices be V, an...