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.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Graphs question
Which algorithm finds shortest paths from one source when all edge weights are non-negative?
Bellman–Ford only
Depth-first search
Sign up free to see the answer and a step-by-step explanation.
Kruskal's algorithm
Dijkstra's algorithm