GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 6

Spanning trees of a complete unit graph

Discrete Mathematics · Trees & Connectivity · Full GATE CSE 2005 paper

GATE 2005, Q6 1 mark · MCQ
Report issue

Trees & Connectivity

Question 6, GATE 2005: An undirected n-vertex graph has adjacency matrix with zero diagonal and all other entries 1. Which MST claim? A none; B unique with cost n−1; C multiple distinct MSTs each cost n−1; D multiple spanning trees with differing costs. The n≥3 assumption for C is not explicitly printed.
Tap to enlarge
Your answer
Answer & solution

Answer: C for n≥3 (no official key was published)

The adjacency matrix describes Kn with unit edge weights. Every spanning tree has n−1 edges and therefore cost n−1. For n≥3 there are multiple spanning trees (indeed nn−2), giving C. The prompt does not restrict n: K1 and K2 each have a unique spanning tree, so the multiple-tree assertion requires the nontrivial n≥3 convention.

The matrix describes a complete graph Kn. Interpreting all edges with unit weight, any spanning tree has n−1 edges and thus equal cost n−1. When n≥3, different trees exist, so C is intended. But n=1 or 2 gives a unique tree, which is why the unprinted size restriction must stay explicit. Neither a different tree shape nor a different traversal order changes total cost here.

Original paper, page 1