GATE / CS ARCHIVE

GATE CSE 2007 / QUESTION 49

A globally minimum-weight edge and minimum spanning trees

Algorithms · Graph Algorithms · Full GATE CSE 2007 paper

GATE 2007, Q49 2 marks · MCQ
Report issue

Graph Algorithms

Question 49, GATE 2007: In a connected undirected graph, w is the minimum edge weight and e is a particular edge of weight w. Which statement is false?
Options:
(A) Some minimum spanning tree contains e
(B) If an MST T omits e, every edge of the cycle in T+e has the same weight
(C) Every MST contains an edge of weight w
(D) Every MST contains e
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Approach. Use the exchange argument: inserting a non-tree edge creates one cycle, and removing a cycle edge gives another spanning tree. Equal minimum-weight edges need not be individually mandatory.

2. Derivation and interpretation. Take any MST T. If e is absent, adding it creates a cycle. Every edge of that cycle has weight at least w by global minimality of w, and none can have weight greater than w: exchanging such an edge for e would make a strictly cheaper spanning tree. Thus all cycle edges have weight w, proving B; exchanging any one of them for e produces an MST containing e, proving A. Every MST contains an edge of weight w by the same argument (or contains e itself), proving C. However a triangle with all edges weight w has MSTs omitting any chosen edge, so e need not belong to every MST. D is false, assuming the usual loop-free graph convention.

Original paper, page 12