Skip to content
Official PYQ · 2006

GATE CS 2006 Q47 — Minimum Spanning Trees

Explain with AI

Consider the following graph:

Which one of the following cannot be the sequence of edges added, in that order, to a minimum spanning tree using Kruskal’s algorithm? 

Choose one option
View worked solution

Answer: D

Kruskal's algorithm finds a Minimum Spanning Tree (MST) by processing and adding edges in strictly non-decreasing order of their weights. If multiple edges have the same weight, they can be processed in any arbitrary order.

From the given graph, the weights of the edges included in the MST are:

  • w(a−b)=2w(a-b) = 2
  • w(d−f)=2w(d-f) = 2
  • w(b−f)=5w(b-f) = 5
  • w(d−c)=5w(d-c) = 5
  • w(d−e)=8w(d-e) = 8

According to Kruskal's algorithm, any valid sequence of edge additions must satisfy the weight order:

{w(a−b),w(d−f)}≤{w(b−f),w(d−c)}≤w(d−e)\{w(a-b), w(d-f)\} \le \{w(b-f), w(d-c)\} \le w(d-e)

This means:

  1. The first two edges added must be (a−b)(a-b) and (d−f)(d-f) (in any order).
  2. The next two edges added must be (b−f)(b-f) and (d−c)(d-c) (in any order).
  3. The last edge added must be (d−e)(d-e).

In Option D, the sequence is (d−f),(a−b),(b−f),(d−e),(d−c)(d-f), (a-b), (b-f), (d-e), (d-c). Here, (d−e)(d-e) (weight 88) is added before (d−c)(d-c) (weight 55), which violates the non-decreasing weight requirement of Kruskal's algorithm.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions