Which of the following shortest path algorithm cannot detect presence of negative weight cycle graph?
1) Bellman Ford Algorithm
2) Dijsktra's Algorithm
3) Floyd- Warshall Algorithm
4) None of the above
Answers
Answered by
0
Answer:- Option B.........
Answered by
0
Option (B)
The shortest path algorithm cannot detect the presence of a negative weight cycle graph Dijkstra's Algorithm.
Dijkstra's Algorithm:
- The algorithm can take on a variety of forms. The original Dijkstra algorithm found the shortest path between two nodes.
- However, a more common variant chooses a single node as the "source" node and searches for the shortest paths between it and all other nodes in the network, yielding a shortest-path tree.
- The approach determines the shortest path between a specified source node and the remaining nodes in the graph.
- It can also be used to find the shortest paths between a single node and a single destination node, with the process finishing once the shortest path between the target node and the destination node has been found.
Similar questions