Floyd Warshall’s Algorithm can be applied on __________

Floyd Warshall’s Algorithm can be applied on __________
A. Undirected and unweighted graphs
B. Undirected graphs
C. Directed graphs
D. Acyclic graphs
 
Answer: c
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.
 

Tìm kiếm

Back
Top