Question
Official answer and solution
- Official answer
- 9
- From
- Official GATE 2024 answer key
Solution
Use Kruskal's algorithm: include all 4 weight-1 edges first, then count the ways to connect the resulting 3 components using weight-2 edges.
The graph has vertices, so any spanning tree contains edges:
- Weight-1 edges: There are edges of weight : . They form no cycles, so all must be in every MST. Including them partitions the vertices into connected components:
- Weight-2 edges: To connect the components using additional edges of minimum weight ():
- We must pick exactly of the weight-2 edges between and : or (3 choices).
- We must pick exactly of the weight-2 edges between and : or (3 choices).
Therefore, the number of distinct minimum-weight spanning trees is (each of weight ).
Final answer
9
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
- Question
- 59 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.