Kruskal’s algorithm for finding a minimum spanning tree of a weighted graph G…

PYQ GATE 1991Modified — slightly modified from the official paper; see the solution

Kruskal’s algorithm for finding a minimum spanning tree of a weighted graph G with n vertices and m edges has which tightest listed worst-case time complexity? Assume a simple graph and comparison sorting of edges.

  1. A.

    O(n²)

  2. B.

    O(mn)

  3. C.

    O(m + n)

  4. D.

    O(m log n)

  5. E.

    O(m²)

Attempted by 61 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…