Question

Which of the following algorithms is best suited for finding the shortest path in a weighted graph where some edges may have negative weights but no negative cycles?

A Dijkstra's Algorithm
B Kruskal's Algorithm
C Bellman-Ford Algorithm
D Prim’s Algorithm
E Floyd-Warshall Algorithm
Practice Next

Hey! Ask a query