I think there are only 2 mst possible with min weight 6,7 so answer will be 7this question gets to many view just due to wrong interpretaion of question i.e. what actually asking in question is confusing means should we apply mst algo or not like this confusion .
1,2,3 will be there in MST for the best case but In the question, we have to find-
The maximum possible weight that a minimum weight spanning tree of G can have
Step 1: Select 1,2 and 3 should be in the cycle if 3 is not in the cycle then it will be not our case.
Step 2: Now imagine 4,5,6 as maximum value set we can select 4 or 5 or 6 all are right but it is not asked ,we have asked the minimum value by selecting a maximum value as follows:-
$1+2+4 = 7 (\checkmark)$
$1+2+5 = 8 (\times)$
$1+2+6 = 9(\times)$
$1+3+4 = 8(\times)$
$1+3+5 = 9 (\times)$
$1+3+6 = 10(\times)$
$2+3+4 = 9(\times)$
$2+3+5 = 10 (\times)$
$2+3+6 = 11(\times)$
that is the reason 7 is the answer
Consider these 22 graphs, both of them are different. We do not know the exact structure of the graph, so what the question wants is to find the MST of all such structures and out of these tell the weight of the MST having maximum weight.
In best answer which image to consider no image is given. Someone update the answer...
ASNR1010
+1
@Arjun sir images are not visible which he is referring to… plz update this ans with an image
where is image ? :| @Lakshman Bhaiya the ans need an update the image is missing !!
Graph $G$ can be like this:
@Vikas123
then we have to include minimum 4 edges to make a spanning tree and we put edges 1 ,2 and 3 in a cycle. so 3 will be rejected.
=> 1 + 2 + 4 + 5 = 12
@Satbir
we can have edges 1 and 2, edge 3 makes cycle with 1-2, so take edge 4. Now edge 5 makes cycle with 1-4 and similarly edge 6 makes cycle with 2-4, so now we can only take edge 7.
max MST weight= 1+2+4+7=14.
@puja.See this...
Corrections or suggestions are welcomed.
as in 2,3 (we need to select smaller one so 2 has been selected)
NOTE:-just take all possible maximum and out of all possible maximum pick minimum
64.3k questions
77.9k answers
244k comments
80.0k users