• edited by
36,968 views
99 99 votes

Let $G$ be a weighted undirected graph and e be an edge with maximum weight in $G$. Suppose there is a minimum weight spanning tree in $G$ containing the edge $e$. Which of the following statements is always TRUE?

  1. There exists a cutset in $G$ having all edges of maximum weight.
  2. There exists a cycle in $G$ having all edges of maximum weight.
  3. Edge $e$ cannot be contained in a cycle.
  4. All edges in $G$ have the same weight.

11 Answers

Best answer
59 59 votes

Option $A$ is correct.

Questions says the MST of graph $G$ contain an edge $e$ which is a maximum weight edge in $G$. Need to choose the answer which is always true to follow the above constraint.

Case 1:

Option B says that if edge $e$ is in MST then for sure there is a cycle having all edges of maximum weight. But it is not true always because when there is only n-1 edges( but no cycle) in graph then also maximum edge has to be taken for MST.

Case 2:

Option C says otherwise. That if e is in MST then it cannot be in any cycle that is wrong as if there is a cycle with all maximum edges then also e will be in MST

Option D says all edges should be of same weight same explanation if there are $n-1$ distinct edges( but no cycle)  in $G$ then have to take all edges including maximum weight edge.

And at last option A says if e is in MST then for sure there is a cut-set ( A subset of Edge set of G whose removal disconnects the graph) in $G$ having all edges of maximum weight. And it is true.

Because then only we maximum weight edges has to be taken in MST.

For eg. If there are $n-1$ edges (but no cycle) then if edge e is not taken in the MST then MST will not be connected.

• edited by
40 40 votes

Option A is correct.

a

Here, in this example we can easily see that B, C, D are false. So, B,C,D are not always true.

  that's why A is always true..  A (Ans)

16 16 votes
Option a is always true

Option b is not true when e is not part of a cycle.

Option c is not true when e is part of a cycle and all edge weights are same in that cycle

Option d is need not be true when e is not part of a cycle

Option a is always true as only the min weight edge in a cut set will be part of a minimum spanning tree.
3 3 votes

(A) True, because if there is heaviest edge in MST, then there exist a cut with all edges with weight equal to heaviest edge.

(B) False, because the cutset of heaviest edge may contain only one edge.
(C) False. The cutset may form cycle with other edge.
(D) False. Not always true.

2 2 votes

question is asking for the case which remains always true....let we take each option:

(b)This may be the case but not for always. If edge 'e max' incident on a pendant vertex then MST must consider 'emax' bcoz thats the only way to reach at that vertex....so this rejects option (b)

(c)  'emax' can be there in cycle but not always. when it is in cycle and in MST also then all cycle edges will be of weight  'emax'.

(d)obviously false

Ans option(a): assuming explanation of (b) above, we see that if we MST considering  'emax' then it implies that, that's only the weight of edge to reach at that vertex(v). So there may be such multiple edges but will be having same weight only i.e.  'emax' . Removal of all these edges will disconnect 'v' from G which is the cutset for 'v'.

2 2 votes

ALL the edges in a MST are "light edges" crossing some cut.

For e to be included in the MST, it has to be the light edge crossing the cut.

For e to be a light edge, all edges should weigh equal to e here, because e is the max weight here.

So, Option A is True.


This question can, however, easily be solved via counter examples.


PS: Note that all the edges in MST are light edges (minimum-weight edges) crossing the cut. But that doesn't mean if any edge is a light edge crossing some cut, it must be in MST.

Eg: Light edges crossing the cut = {A,B,C,D,E,F,G}

Edges included in MST = {A,B,C,D}

 

PPS: Read CLRS 3rd edition pages 625 to 630. You could solve probably every GATE MST question through those five pages.

Answer:
Position:
Show:

Related questions

48 48 votes
8 answers 8 answers
12.9k
12.9k views
Ishrat Jahan asked Nov 3, 2014
12,925 views
A sink in a directed graph is a vertex i such that there is an edge from every vertex $j \neq i$ to $i$ and there is no edge from $i$ to any other vertex. A directed grap...
48 48 votes
5 answers 5 answers
15.9k
15.9k views
Ishrat Jahan asked Nov 3, 2014
15,874 views
A sink in a directed graph is a vertex i such that there is an edge from every vertex $j \neq i$ to $i$ and there is no edge from $i$ to any other vertex. A directed grap...
69 69 votes
6 answers 6 answers
19.8k
19.8k views
Ishrat Jahan asked Nov 3, 2014
19,838 views
Let $a$ and $b$ be two sorted arrays containing $n$ integers each, in non-decreasing order. Let $c$ be a sorted array containing $2n$ integers obtained by merging the two...
32 32 votes
3 answers 3 answers
13.4k
13.4k views
Ishrat Jahan asked Nov 3, 2014
13,375 views
What is the output printed by the following program?#include <stdio.h int f(int n, int k) { if (n == 0) return 0; else if (n % 2) return f(n/2, 2*k) + k; else return f(n/...