edited by
29,449 views
89 89 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_______________.

7 Answers

Best answer
132 132 votes
Consider the cycle $ABC$. $AC$ and $BC$ are part of minimum spanning tree. So, $AB$ should be greater than $max(AC, BC)$ (greater and not equal as edge weights are given to be distinct), as otherwise we could add $AB$ to the minimum spanning tree and removed the greater of $AC, BC$ and we could have got another minimum spanning tree. So, $AB > 9$.

Similarly, for the cycle $DEF, ED > 6$.

And for the cycle $BCDE, CD > 15$.

So, minimum possible sum of these will be $10 + 7 + 16 = 33$. Adding the weight of spanning tree, we get the total sum of edge weights

$= 33 + 36 = 69$
edited by
14 14 votes

The minimum possible sum of weights of all 8 edges of this graph is 69..
first we compare A to C and A to B we find 9 at A to C it means A to B must greater than A to C and for minimum possible greater value than 9 will b 10 .. so first we conclude 10.
after that we have again two conflict pair B to E and C to D in which we select B to E 15 which C to D possible weight 16.
now we have E to D and F to D in which we select F to D 6 means E to D must be greater than 6 so possible value greater than 6 is 7 .
so missing weight are
A to B ---->10
C to D---->16
E to D---->7

2 2 votes

First, all edge weights are different.

Consider ABC portion of given graph, after including edge AB it will form a cycle in MST so AB is not included & it's weight is more then AC & BC (=10). 

Now consider DEF portion, and apply the same above logic, weight of CD > wt. of EF & wt. of FD (=7).

Same logic in BECD, Wt. CD = 16

16+7+10=33

33+36(Wt of MST) = 69.

1 1 vote

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:
Position:
Show:

Related questions

0 0 votes
0 0 answers
353
353 views
Awais_Khan asked Nov 13, 2025
353 views
hey i am trying to solve this question GATE CSE 2015 Set 1 | Question: 43 so what is my doubt is if i take the dijkstras algo for mcst then this is right but when i am tr...
77 77 votes
5 answers 5 answers
16.9k
16.9k views
Misbah Ghaya asked Feb 13, 2015
16,893 views
Let a$_{n}$ represent the number of bit strings of length n containing two consecutive $1$s. What is the recurrence relation for $a_{n}$?$a_{n - 2} + a_{n - 1} + 2^{n - 2...
93 93 votes
16 answers 16 answers
32.6k
32.6k views
Misbah Ghaya asked Feb 13, 2015
32,647 views
Let $G = (V, E)$ be a simple undirected graph, and $s$ be a particular vertex in it called the source. For $x \in V$, let $d(x)$ denote the shortest distance in $G$ from ...
131 131 votes
7 answers 7 answers
41.2k
41.2k views
Misbah Ghaya asked Feb 13, 2015
41,173 views
An algorithm performs $(\log N)^{\frac{1}{2}}$ find operations , $N$ insert operations, $(\log N)^{\frac{1}{2}}$ delete operations, and $(\log N)^{\frac{1}{2}}$ decrease-...