Home / Engineering / Design and Analysis of Algorithms / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) Floyd Warshall’s Algorithm can be applied on                      

(A) undirected and unweighted graphs
(B) undirected graphs
(C) directed graphs
(D) acyclic graphs
Correct answer : Option (C) - directed graphs

Explanation:
 floyd warshall algorithm can be applied in directed graphs. from a given directed graph, an adjacency matrix is framed and then all pair shortest path is computed by the floyd warshall algorithm.

Share

Discusssion

Login to discuss.