Skip to content
Official PYQ · 2025

GATE CS 2025 Set 1 Q54 — Minimum Spanning Trees

Explain with AI

The maximum value of x\text{x} such that the edge between the nodes B\text{B} and C\text{C} is included in every minimum spanning tree of the given graph is _________. (answer in integer)

Graph

View worked solution

Answer: 5:5

According to the Cycle Property of Minimum Spanning Trees (MSTs), an edge ee is included in every MST of a graph if and only if, for every cycle CC containing ee, the weight of ee is strictly less than the maximum weight of the remaining edges in CC.

This is equivalent to stating that the weight of the edge BCBC (which is xx) must be strictly less than the bottleneck (the maximum edge weight) of any alternative path between BB and CC in the graph G∖{BC}G \setminus \{BC\}:

x<min⁡paths P from B to C(max⁡e∈Pw(e))x < \min_{\text{paths } P \text{ from } B \text{ to } C} \left( \max_{e \in P} w(e) \right)

Let us analyze the alternative paths between BB and CC in G∖{BC}G \setminus \{BC\} and find their bottlenecks:

  • Path 1: B→D→CB \to D \to C
    Edges: {BD,DC}\{BD, DC\} with weights {2,6}\{2, 6\}.
    Bottleneck = max⁡(2,6)=6\max(2, 6) = 6.
  • Path 2: B→D→E→CB \to D \to E \to C
    Edges: {BD,DE,EC}\{BD, DE, EC\} with weights {2,7,5}\{2, 7, 5\}.
    Bottleneck = max⁡(2,7,5)=7\max(2, 7, 5) = 7.
  • Path 3: B→A→D→CB \to A \to D \to C
    Edges: {BA,AD,DC}\{BA, AD, DC\} with weights {3,4,6}\{3, 4, 6\}.
    Bottleneck = max⁡(3,4,6)=6\max(3, 4, 6) = 6.

The minimum bottleneck among all alternative paths is 66. Therefore, for the edge BCBC to be present in every MST, we must have:

x<6x < 6

Since xx must be an integer, the maximum possible value of xx is 5.

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

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions