edited by
17,668 views
70 votes
70 votes

The graph shown below has $8$ edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight $36$ and contains the edges: $\{(A, C), (B, C), (B, E), (E, F), (D, F)\}$. The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all $8$ edges of this graph is_______________.

edited by

5 Answers

1 votes
1 votes

Let's start with vertex A. 

From A we can go to B or C but we are going to C having weight 9 as it may be the case edge (a-b) has weight 10,11,12.....but for choosing edge (a-c), min 10 is sufficient and we have to consider min also for our answer. So take (a-b) as 10.

Now we are at C. from C we can go to B or D, but going to B with weight 2 as (c-d) may be having weight '3'. So take (c-d) as 3.

We are at B now, and from there we are going to E with weight 15 but not following (c-d) which we assumed 3 before. so (c-d) is surely > 15. Let's take it 16(min). So (c-d) is 16 as for now.

Now come to E. we are selecting (e-f) bcoz (e-d) may be having weight 5. Coming F we are selecting    (f-d) having weight 6, so (e-d) surely >6 and so min (e-d) is 7.

And hence we can deduce 69 as the answer.

Also one thing is to be noted, we have followed prim's approach while solving...

edited by
Answer:

Related questions

80 votes
80 votes
7 answers
1
makhdoom ghaya asked Feb 13, 2015
29,034 views
The least number of temporary variables required to create a three-address code in static single assignment form for the expression $q + r / 3 + s - t * 5 + u * v/w$ is_...
33 votes
33 votes
9 answers
2
makhdoom ghaya asked Feb 13, 2015
24,597 views
Let G be a connected planar graph with 10 vertices. If the number of edges on each face is three, then the number of edges in G is_______________.