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 1–5 of 40
Let be a simple, undirected, edge-weighted graph with unique edge weights. Which of the following statements about the minimum spanning trees (MST) of is/are true?
One or more options are correct.
Answer: (A), (D)
Weights are distinct, so the MST is unique.
(A) True. Let be the heaviest edge of a cycle and suppose it is in the MST . Removing splits in two. The rest of the cycle joins the two ends of , so some other cycle edge crosses between the two parts. is lighter, so is a lighter spanning tree. This contradicts being minimum.
(B) False. Take a cycle with . Edge is the smallest on it. Add a vertex with . Now is the heaviest edge of the cycle , so by (A) it is in no MST.
(C) False. If has only one edge (a leaf), that edge is the largest at and it must be in every spanning tree.
(D) True. The cheapest edge at is the lightest edge crossing the cut versus the rest. By the cut property, with distinct weights it is in every MST.
Answer: (A), (D)
(A) True. Let be the heaviest edge of a cycle and suppose it is in the MST . Removing splits in two. The rest of the cycle joins the two ends of , so some other cycle edge crosses between the two parts. is lighter, so is a lighter spanning tree. This contradicts being minimum.
(B) False. Take a cycle with . Edge is the smallest on it. Add a vertex with . Now is the heaviest edge of the cycle , so by (A) it is in no MST.
(C) False. If has only one edge (a leaf), that edge is the largest at and it must be in every spanning tree.
(D) True. The cheapest edge at is the lightest edge crossing the cut versus the rest. By the cut property, with distinct weights it is in every MST.
Answer: (A), (D)
Consider a complete graph with vertices ( ). Note that multiple spanning trees can be constructed over . Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two sets.
Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of ?
Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of ?
Answer: (C)
The Jaccard coefficient of two edge sets is . It is never negative, and it is exactly when the two trees have no common edge. So the lowest value is if has two edge-disjoint spanning trees.
It does. Number the vertices .
- : the path , with edges .
- : the edges for , plus the edge . This is a star on vertices with vertex 2 attached to vertex 4. It has edges and is connected, so it is a spanning tree.
No edge with and not the edge has the form , so and share no edge.
So the intersection is empty, the union has edges, and the coefficient is . The other options are all positive, so they are not the lowest.
Answer: (C)
It does. Number the vertices .
- : the path , with edges .
- : the edges for , plus the edge . This is a star on vertices with vertex 2 attached to vertex 4. It has edges and is connected, so it is a spanning tree.
No edge with and not the edge has the form , so and share no edge.
So the intersection is empty, the union has edges, and the coefficient is . The other options are all positive, so they are not the lowest.
Answer: (C)
Let be any undirected graph with positive edge weights, and be a minimum spanning tree of . For any two vertices, and , let and be the shortest distances between and in and , respectively. Which ONE of the options is CORRECT for all possible , , , and ?
Answer: (B)
is a subgraph of . It uses only some of the edges of . So any path inside between and is also a valid path in , with exactly the same total weight. This means the shortest path in can never be longer than the shortest path in . has more routes to choose from (all the edges of , and possibly more), so it can only match or beat the best distance in .
So always holds. Equality is common but not guaranteed, because a shortcut through a non-tree edge in can make strictly smaller.
Answer:
So always holds. Equality is common but not guaranteed, because a shortcut through a non-tree edge in can make strictly smaller.
Answer:
The maximum value of 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)
Answer: 5
From the figure: .
Edge BC is in every MST only if every other path from B to C has an edge heavier than . If some other path has all edges , BC can be dropped from some MST.
Other paths from B to C and their heaviest edge:
B-D-A-C: weights 1, 6, 3, heaviest 6
B-A-C: weights 7, 3, heaviest 7
B-D-C: weights 1, 8, heaviest 8
B-A-D-C: weights 7, 6, 8, heaviest 8
The best alternative has heaviest edge 6, so BC is in every MST only when .
At , BC ties with AD, and the tree BD, AC, AD (weight 10) is also an MST without BC.
For , Kruskal takes BD (1), AC (3), then BC (5), and AD (6) would form a cycle. So BC is in the only MST.
The largest integer value is 5.
Answer: 5
Edge BC is in every MST only if every other path from B to C has an edge heavier than . If some other path has all edges , BC can be dropped from some MST.
Other paths from B to C and their heaviest edge:
B-D-A-C: weights 1, 6, 3, heaviest 6
B-A-C: weights 7, 3, heaviest 7
B-D-C: weights 1, 8, heaviest 8
B-A-D-C: weights 7, 6, 8, heaviest 8
The best alternative has heaviest edge 6, so BC is in every MST only when .
At , BC ties with AD, and the tree BD, AC, AD (weight 10) is also an MST without BC.
For , Kruskal takes BD (1), AC (3), then BC (5), and AD (6) would form a cycle. So BC is in the only MST.
The largest integer value is 5.
Answer: 5
The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is _________
Answer: 16
A complete graph has a number of spanning trees given by Cayley's formula: .
Put n = 4 here:
Answer: 16
Put n = 4 here:
Answer: 16
Keep practising