What is the time complexity of Prim's algorithm for finding the minimum…

What is the time complexity of Prim's algorithm for finding the minimum spanning tree using a binary heap?

  1. A.

    O(n)

  2. B.

    O(log n)

  3. C.

    O(n^2)

  4. D.

    O(n log n)

Attempted by 423 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…