Floyd Warshall Algorithm can be used for finding _____________

Floyd Warshall Algorithm can be used for finding _____________
A. Single source shortest path
B. Topological sort
C. Minimum spanning tree
D. Transitive closure
 
Answer: d
Explanation: One of the ways to compute the transitive closure of a graph in Theta(N$^{3}$) time is to assign a weight of 1 to each edge of E and then run the Floyd Warshall Algorithm.
 

Tìm kiếm

Back
Top