Question DSA-GRAPH-0034
EasyWhich algorithm finds shortest paths from one source when all edge weights are non-negative?
- A.
Bellman–Ford only
- B.
Depth-first search
- C.
Kruskal's algorithm
- D.
Dijkstra's algorithm
Sign up free to see the answer and a step-by-step explanation.