GATE / CS ARCHIVE

SIMILAR QUESTIONS / ALGORITHMS

Assess sufficient conditions for a unique minimum spanning tree

4 questions solved the same way, newest first. Back to Algorithms

How these are solved

Distinct edge weights imply unique MST by the exchange argument; ties alone do not force nonuniqueness or a common minimum edge.

1 mark · MCQ
Report issue

Graph Algorithms

Question 1, GATE 2021: For connected undirected weighted G: S1 some minimum-weight edge belongs to every MST; S2 distinct edge weights imply a unique MST. A both true; B only S1; C only S2; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

An equal-weight triangle has three MSTs, each omitting a different minimum-weight edge, so no edge belongs to every MST. This refutes S1. Distinct edge weights ensure a unique MST by the cut/exchange property, so S2 is true. Thus C.

For S1 the quantifier “every MST” is crucial: a minimum edge is safe for some MST, but ties can let another edge replace it. For S2 suppose two MSTs differ and choose the lightest edge in their symmetric difference. Adding it to the other tree creates a cycle containing a heavier edge from that difference; exchanging them lowers the weight, a contradiction.

Original paper, page 55 · Answer key

2 marks · MCQ
Report issue

Cut properties and MST uniqueness

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

2 marks · MCQ
Report issue

Graph Algorithms

Question 26, GATE 2017: In any connected undirected graph with positive distinct edge weights, are these necessarily true? I the minimum spanning tree is unique; II the shortest path between any two vertices is unique. A I only; B II only; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. For uniqueness of the MST, suppose two different minimum trees exist. Select the lightest edge in their symmetric difference and add it to the tree not containing it.

2. The resulting cycle has an edge belonging to that tree but not the other. This edge is heavier because weights are distinct and the chosen edge was lightest in the difference. Exchanging them strictly reduces weight, contradicting minimality. Thus I is true.

3. Distinct edge weights do not make path sums distinct. In a triangle with weights 1,2,3 the direct weight-3 edge ties the 1+2 route. II fails, so A.

Original paper, page 13 · Answer key

2 marks · MCQ
Report issue

Extremal edge weights in a spanning tree

Graph Algorithms

Question 2.18, GATE 2000: Connected undirected G has distinct edge weights. Which is false: every MST contains the minimum edge; if the maximum edge lies in an MST it is a bridge; no MST contains the maximum edge; G has a unique MST?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: The globally lightest edge is the unique lightest edge across a cut separating one endpoint from the other, so the cut property forces it into the MST. Distinct weights also give a unique MST.

Step 2: If the maximum edge lies on a cycle, it is the unique heaviest edge there and the cycle property excludes it. Thus if it appears in an MST, it must be a bridge. But a bridge is mandatory, even when globally heaviest.

A graph that is itself a weighted tree supplies a counterexample to C. Therefore C is false, while B correctly handles the bridge case.

Original paper, page 5