GATE CS 2021 Set 1 | Question 27

Algorithms › Graph Algorithms · NAT · 1 mark · Answer: 3

  1. Question 27Algorithmsnat1 mark
    Consider the undirected graph with edge weights as shown in the figure. The number of minimum-weight spanning trees of the graph is ______.
    GATE CS 2021 Set 1 Question 27 figure

    Answer: 3

    Solution

    The minimum spanning tree has weight formed by the small (0.1) edges; counting the ways to complete an MST while breaking ties among equal-weight edges gives 3 distinct minimum-weight spanning trees.

More GATE PYQ on Graph Algorithms

All GATE CS Algorithms PYQ →

Attempt GATE CS 2021 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →