Skip to content
Official PYQ · 2018

GATE CS 2018 Q47 — Minimum Spanning Trees

Explain with AI

Consider the following undirected graph GG:

Choose a value for xx that will maximize the number of minimum weight spanning trees (MWSTs) of GG. The number of MWSTs of GG for this value of xx is ____.

View worked solution

Answer: 4

In the given undirected graph GG, the vertices are a,b,c,d,ea, b, c, d, e with the following edge weights:

  • Weight 1: (a,e)(a, e) and (d,e)(d, e)
  • Weight 2: (a,b)(a, b), (c,d)(c, d), and (c,e)(c, e)
  • Weight 3: (b,c)(b, c)
  • Weight xx: (b,e)(b, e)

To construct a Minimum Weight Spanning Tree (MWST):

  1. We must select the two minimum-weight edges of weight 1: (a,e)(a, e) and (d,e)(d, e). This connects vertices a,d,ea, d, e into a single component of weight 1+1=21 + 1 = 2.
  2. We now need to connect the remaining vertices bb and cc to this component at the minimum possible cost.

To maximize the number of MWSTs, we choose x=2x = 2 for the edge (b,e)(b, e):

  • Connecting bb: We have two options of weight 2, which are (a,b)(a, b) and (b,e)(b, e).
  • Connecting cc: We have two options of weight 2, which are (c,d)(c, d) and (c,e)(c, e).

Since these choices are independent and do not form any cycles, the total number of MWSTs is:

Number of MWSTs=2×2=4\text{Number of MWSTs} = 2 \times 2 = 4

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions