GateAI
Graph Traversals, MSTs and Shortest Paths

GATE CSE 2025 Set 1 · Q64

NAT2 marksMedium

Time

The maximum value of xx such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is ________ . (answer in integer)

GATE CSE 2025 Set 1 Q64 diagram

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 5 (±0)

Graph Traversals, MSTs and Shortest Paths

To determine the maximum integer value of xx such that the edge (B,C)(B, C) is included in every Minimum Spanning Tree (MST), we can analyze the cuts and cycles of the graph.

Using Kruskal's algorithm:

  1. The edge with the smallest weight is (B,D)(B, D) with weight 11.

  2. The next smallest edge is (A,C)(A, C) with weight 33.

Selecting these two edges creates two disconnected components:

\{B, D\} \quad \text{and} \quad \\{A, C\}

To form a spanning tree on the 4 vertices, exactly one edge crossing the cut between {B,D}\{B, D\} and {A,C}\{A, C\} must be chosen. The edges crossing this cut are:

  • (B,C)(B, C) with weight xx

  • (A,D)(A, D) with weight 66

  • (A,B)(A, B) with weight 77

  • (C,D)(C, D) with weight 88

For edge (B,C)(B, C) to be present in every MST, it must be the strictly unique minimum-weight edge crossing this cut:

x<min⁡(6,7,8)  ⟹  x<6x < \min(6, 7, 8) \implies x < 6

If x=6x = 6, there is a tie with edge (A,D)(A, D), which means an MST could choose (A,D)(A, D) instead of (B,C)(B, C), so (B,C)(B, C) would not be in *every* MST.

Therefore, the maximum integer value of xx is 5.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Graph Traversals, MSTs and Shortest Paths previous year question is Q64 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Graph Traversals, MSTs and Shortest Paths in Algorithms, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Graph Traversals, MSTs and Shortest Paths PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Graph Traversals, MSTs and Shortest Paths in GATE CSE

Graph Traversals, MSTs and Shortest Paths has 7 GATE CSE PYQs across 7 papers from 2014 to 2025. 4 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2025 Set 1.

How GATE tests Graph Traversals, MSTs and Shortest Paths

More from GATE CSE 2025 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2025 Set 1 · Q64 · NAT

The maximum value of x such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is … (answer in integer)

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.