Minimum Spanning Tree: GATE CS Previous Year Questions

Minimum Spanning Tree · Algorithms

40 questions · asked in 23 of 27 years (2000–2026)

MCQ 26 · MSQ 3 · NAT 111-mark 16 · 2-mark 24

2000Questions per year2026

Questions 26–30 of 40

Q26GATE 20102 marksMCQ−0.67 if wrong
Consider a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Entry WijW_{ij} in the matrix W below is the weight of the edge {i, j}.

(018141012498120731470249320)\begin{pmatrix} 0&1 & 8 & 1 &4 \\ 1& 0 & 12 & 4 & 9\\ 8 & 12 & 0 & 7 & 3\\ 1& 4& 7 & 0 &2 \\ 4& 9 & 3& 2 &0 \end{pmatrix}

What is the minimum possible weight of a spanning tree T in this graph such that vertex 0 is a leaf node in the tree T?

Q27GATE 20092 marksMCQ−0.67 if wrong
Consider the following graph:
a b e d g c f 5 3 2 4 6 5 6 6 6 3 5 4
Which one of the following is NOT the sequence of edges added to the minimum spanning tree using Kruskal's algorithm?

Q28GATE 20082 marksMCQ−0.67 if wrong
For the undirected, weighted graph given below, which of the following sequences of edges represents a correct execution of Prim's algorithm to construct a Minimum Spanning Tree?
a d g b f i c e h 5 10 3 2 1 6 6 3 7 8 8 7 12

Q29GATE 20082 marksMCQ−0.67 if wrong
G is a graph on n vertices and 2n-2 edges. The edges of G can be partitioned into two edge-disjoint spanning trees. Which of the following is NOT true for G?

Q30GATE 20071 markMCQ−0.33 if wrong
What is the largest integer m such that every simple connected graph with n vertices and n edges contains at least m different spanning trees ?

Keep practising

Topics in Algorithms

All CS topics ›