What is the time complexity of Bellman-Ford single-source shortest path…

PYQ GATE 2013

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

  1. A.

    Θ(n2)Θ(n^2)

  2. B.

    Θ(n2 log n) Θ(n^2 \ log \ n)

  3. C.

    Θ(n3)Θ(n^3)

  4. D.

    Θ(n3 log n) Θ(n^3 \ log \ n)

Attempted by 1054 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…