wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

To find the shortest-path in a weighted graph or network, which of the following algorithm is not used?

A
Warshall's algorithm
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
Dijkastra algorithm
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Kruskal algorithm
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A Warshall's algorithm

To find the shortest-path in a weighted graph or network, Warshall's algorithm is not used.

Floyd–Warshall algorithm is an algorithm for finding shortest paths in a weighted graph with positive or negative edge weights. A single execution of the algorithm will find the lengths of shortest paths between all pairs of vertices.

In graph theory, the shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of its constituent edges is minimized.



925502_916700_ans_2af403527fbb42dfa31b1c17f2f49066.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Median
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon