Bích Ngọc Member Sep 21, 2021 #1 What is the running time of the Floyd Warshall Algorithm? A. Big-oh(V) B. Theta(V$^{2}$) C. Big-Oh(VE) D. Theta(V$^{3}$)
What is the running time of the Floyd Warshall Algorithm? A. Big-oh(V) B. Theta(V$^{2}$) C. Big-Oh(VE) D. Theta(V$^{3}$)
M Minh Tung New member Sep 21, 2021 #2 Answer: d 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(V$^{3}$). Upvote 0 Downvote
Answer: d 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(V$^{3}$).