- Bellman-Ford algorithm handles graphs with negative edge weights and detects negative cycles, with time complexity $O(VE)$. - Dijkstra’s algorithm fails with negative weights, requiring non-negative edges. - Kruskal’s and Prim’s are for minimum spanning trees, not shortest paths. Option (1) is correct.
Was this answer helpful?
0
0
Top TS PGECET Computer Science & Information Technology Questions