• retagged by
3,573 views

2 Answers

Best answer
2 2 votes

Bellman-Ford is also simpler than Dijkstra algorithm.

  • Dijkstra doesn’t work for Graphs with negative weight edges.and it is greedy algo.

  • Bellman ford work for negative edge weight. And it is a dynamic prog.

• selected by
3 3 votes

Yes. Bellman ford is an application of Dynamic Programming. 

https://www.geeksforgeeks.org/dynamic-programming-set-23-bellman-ford-algorithm/

Position:
Show:

Related questions

2 2 votes
0 0 answers
1.1k
1.1k views
Chhotu asked Nov 3, 2017
1,105 views
Hi Guys,As everyone knows Bellman Ford Algorithm works on DP approach. The algorithm calculate shortest paths in bottom-up manner. It first calculates the shortest distan...
1 1 vote
1 answers 1 answer
1.9k
1.9k views
Sandy Sharma asked Aug 3, 2018
1,865 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)...
1 1 vote
2 2 answers
4.7k
4.7k views
radha gogia asked Dec 20, 2015
4,692 views
I am unable to get the logic behind running bellman-ford for n-1 times , I have already gone through this link , but still couldn't get it clearly .http://cs.stackexchang...
2 2 votes
1 1 answer
1.2k
1.2k views
shaurya vardhan asked Nov 6, 2017
1,241 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...