Question

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 _____.

Undirected graph with 6 vertices A, B, C, D, E, F and 8 edges, with given MST edge weights
Undirected graph with MST edges
Official answer and solution
Official answer
69
From
Official GATE 2015 answer key

Solution

Apply the cycle property of minimum spanning trees to establish lower bounds for all non-MST edge weights.

  1. Given MST edges and weights:

    • (A,C)=9(A, C) = 9
    • (B,C)=2(B, C) = 2
    • (B,E)=15(B, E) = 15
    • (E,F)=4(E, F) = 4
    • (D,F)=6(D, F) = 6
      Sum of MST edge weights = 9+2+15+4+6=369 + 2 + 15 + 4 + 6 = 36.
  2. Non-MST edges:
    The 3 non-MST edges are (A,B)(A, B), (D,E)(D, E), and (C,D)(C, D).
    All 8 edge weights are distinct positive integers. The weights already used in the MST are {2,4,6,9,15}\{2, 4, 6, 9, 15\}.

  3. Cycle Property bounds:
    For any non-MST edge e=(u,v)e = (u, v), its weight must be strictly greater than the maximum weight of any edge on the unique tree path between uu and vv:

    • Edge (A,B)(A, B):
      Tree path between AA and BB: A−C−BA - C - B. Edges have weights 99 and 22.

      w(A,B)>max⁡(9,2)=9.w(A, B) > \max(9, 2) = 9.

      The smallest integer >9> 9 not in {2,4,6,9,15}\{2, 4, 6, 9, 15\} is 1010.
      Hence, minimum w(A,B)=10w(A, B) = 10.

    • Edge (D,E)(D, E):
      Tree path between DD and EE: E−F−DE - F - D. Edges have weights 44 and 66.

      w(D,E)>max⁡(4,6)=6.w(D, E) > \max(4, 6) = 6.

      The smallest integer >6> 6 not in {2,4,6,9,10,15}\{2, 4, 6, 9, 10, 15\} is 77.
      Hence, minimum w(D,E)=7w(D, E) = 7.

    • Edge (C,D)(C, D):
      Cut property: Consider the partition {A,B,C}\{A, B, C\} and {D,E,F}\{D, E, F\}. The cut edges are (B,E)(B, E) and (C,D)(C, D).
      Since (B,E)=15(B, E) = 15 is in the MST, (B,E)(B, E) must be the strictly lightest edge crossing this cut.
      Therefore, w(C,D)>15w(C, D) > 15.
      The smallest integer >15> 15 is 1616.
      Hence, minimum w(C,D)=16w(C, D) = 16.

  4. Minimum Total Weight:

    Sum=36+w(A,B)+w(D,E)+w(C,D)=36+10+7+16=69.\text{Sum} = 36 + w(A, B) + w(D, E) + w(C, D) = 36 + 10 + 7 + 16 = 69.
Final answer

69

Common trap

Forgetting that all 8 edge weights must be distinct, or missing the cut-crossing condition requiring w(C, D) > 15.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 1
Question
53 of 65, printed as CS Q.43
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.