GATE / CS ARCHIVE

GATE CSE 2019 / QUESTION 38

Cut properties and MST uniqueness

Algorithms · Graph Algorithms · Full GATE CSE 2019 paper

GATE 2019, Q38 2 marks · MCQ
Report issue

Graph Algorithms

Question 38, GATE 2019: For a connected weighted undirected graph G, test: I distinct weights on all edges imply a unique MST; II every cut having a unique cheapest crossing edge implies a unique MST. Options A I only, B II only, C both, D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Use the cut property: if an edge is the unique lightest edge crossing some cut, every minimum spanning tree must contain it. Otherwise adding it to an MST forms a cycle containing another crossing edge, and replacing that heavier edge makes a cheaper spanning tree.
2. To prove II, choose any MST T and remove one of its edges e. The remaining components define a cut. Edge e must be a cheapest crossing edge: a strictly cheaper one could reconnect the components and improve T.
3. Under II the cheapest crossing edge is unique, so e is that unique edge. By step 1, every MST must contain e. This reasoning applies to each edge of T.
4. Any other MST must therefore contain all |V|−1 edges of T and hence equal T. This proves II.
5. If every edge weight in the graph is distinct, each nonempty cut automatically has a unique cheapest crossing edge. Thus I implies the condition of II and is also true. Answer C. These are sufficient conditions for uniqueness; the question does not require proving that all edge weights must be distinct in every graph with a unique MST.

Original paper, page 12 · Answer key