GateAI
Minimum Spanning Trees

GATE CSE 2011 · Q55

MCQ2 marksMedium

Time

The length of the path from v5v_5 to v6v_6 in the MST of previous question with n=10n = 10 is

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) 31

Minimum Spanning Trees

From the previous question, the edges present in the MST are:

  1. Edge (v1,v2)(v_1, v_2) with weight 33.

  2. Edges (vi,vi+2)(v_i, v_{i+2}) with weight i+(i+2)=2i+2i + (i+2) = 2i + 2 for all 1≤i≤n−21 \le i \le n-2.

In the MST, the vertices are connected in two chains through alternating nodes linked together at v1v_1 and v2v_2:

  • The odd chain: v5−v3−v1v_5 - v_3 - v_1

  • The edge between chains: v1−v2v_1 - v_2

  • The even chain: v2−v4−v6v_2 - v_4 - v_6

Thus, the unique simple path from v5v_5 to v6v_6 in the MST is:

v5→v3→v1→v2→v4→v6v_5 \to v_3 \to v_1 \to v_2 \to v_4 \to v_6

The edges on this path and their weights are:

  • (v5,v3)(v_5, v_3): weight =5+3=8= 5 + 3 = 8

  • (v3,v1)(v_3, v_1): weight =3+1=4= 3 + 1 = 4

  • (v1,v2)(v_1, v_2): weight =1+2=3= 1 + 2 = 3

  • (v2,v4)(v_2, v_4): weight =2+4=6= 2 + 4 = 6

  • (v4,v6)(v_4, v_6): weight =4+6=10= 4 + 6 = 10

Total length of the path:

Total weight=8+4+3+6+10=31\text{Total weight} = 8 + 4 + 3 + 6 + 10 = 31

Therefore, option C is the correct choice.

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 Minimum Spanning Trees previous year question is Q55 of the GATE CSE 2011 paper. Find more GATE CSE PYQs on Minimum Spanning Trees 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 Minimum Spanning Trees 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.

Minimum Spanning Trees in GATE CSE

Minimum Spanning Trees has 13 GATE CSE PYQs across 9 papers from 2011 to 2026. 5 of them are 2-mark MCQs like this one, and GATE CSE 2011 has 2.

How GATE tests Minimum Spanning Trees

More from GATE CSE 2011

Share this solution

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

GateAI solution cardGATE CSE 2011 · Q55 · MCQ

The length of the path from v5 to v6 in the MST of previous question with n = 10 is

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.