Professional KnowledgeHardIBPS SO IT

Floyd-Warshall algorithm complexity for V vertices is:

  1. A. O(V^3)
  2. B. O(V^2)
  3. C. O(V E)
  4. D. O(V log V)

Correct answer: A. O(V^3)

Three nested loops over vertices.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic