GATE CS 2013 · Question 19 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices?

  1. (A) Θ(n²)
  2. (B) Θ(n² log n)
  3. (C) Θ(n³)
  4. (D) Θ(n³ log n)
Answer

Answer (C)

Answer from the official GATE CS 2013 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes