πŸ“Š Design and Analysis of Algorithms
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)
πŸ’¬ Discuss
βœ… Correct 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).


Explanation by: Mr. Dubey
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

πŸ“Š Question Analytics

πŸ‘οΈ
947
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate