GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 49

GATE CSE 2022 Q49

Algorithms · Graph Algorithms · Full GATE CSE 2022 paper

GATE 2022, Q49 2 marks · MSQ
Report issue

Graph Algorithms

Question 49, GATE 2022: A simple undirected weighted graph has distinct edge weights. Select true MST claims: A second-lightest edge is always included; B at least one of third/fourth lightest is included; C unique lightest edge across every nontrivial cut is included; D multiple MSTs can exist. Assume existence of an MST and the referenced edges.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A,B,C

Assume an MST exists and the graph has the referenced four edges. Kruskal always accepts the second-lightest edge: with only one accepted edge a simple graph cannot form a cycle. If the third is rejected, the first three edges form a triangle. The fourth cannot be another simple edge inside that already complete triangle, so it is accepted. Thus at least one of the third and fourth edges belongs to the MST. The unique lightest edge crossing any nontrivial cut belongs to every MST by the cut property. Distinct weights imply the MST is unique, making D false. Hence A, B, C. Connectedness and existence of the named edges are implicit in the question’s wording.

The cut property follows by exchange: if an MST omits the unique cheapest crossing edge e, adding e creates a cycle containing another crossing edge f. Since w(f)>w(e), replacing f by e lowers the total, a contradiction. Distinct weights also prove uniqueness by considering the cheapest edge where two proposed MSTs differ.

Original paper, page 32 · Answer key