GATE / CS ARCHIVE

GATE CSE 2006 / QUESTION 11

Minimum spanning tree on indexed vertices

Algorithms · Graph Algorithms · Full GATE CSE 2006 paper

GATE 2006, Q11 1 mark · MCQ
Report issue

Graph Algorithms

Question 11, GATE 2006: A weighted complete graph has vertices v₁,…,vₙ and edge weight w(vᵢ,vⱼ)=2|i−j|. What is the minimum spanning-tree weight?
Options:
(A) n−1
(B) 2n−2
(C) C(n,2)
(D) n²
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Every edge has weight 2|i−j|≥2, so every spanning tree costs at least 2(n−1). The path v1,v2,...,vn uses n−1 edges of weight 2 and attains the bound.

2. Hence2n−2, B.

3. Teaching check: This is a lower-bound-plus-construction proof. Every spanning tree has exactly n−1 edges and every available edge costs at least two. Connecting consecutive indices achieves that lower bound; no search over all spanning trees is necessary.

Original paper, page 2