1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the running time of the Floyd Wa...
Q.

What is the running time of the Floyd Warshall Algorithm?

A. big-oh(v)
B. theta(v2)
C. big-oh(ve)
D. theta(v3)
Answer» D. theta(v3)
Explanation: the running time of the floyd warshall algorithm is determined by the triply nested for loops. since each execution of the for loop takes o(1) time, the algorithm runs in time theta(v3).

Discussion