Question
The diagram below shows a river system consisting of 7 segments, marked P, Q, R, S, T, U, and V. It splits the land into 5 zones, marked Z1, Z2, Z3, Z4, and Z5. We need to connect these zones using the least number of bridges. Out of the following options, which one is correct?
Note: The figure shown is representative.
Official answer and solution
- Official answer
- C
- From
- Official GATE 2025 answer key
Solution
Model the 5 zones as vertices and the 7 river segments as edges connecting adjacent zones; a spanning tree on 5 vertices requires exactly 4 bridges with no cycles.
Treat the 5 zones as vertices of a graph, where each river segment corresponds to a potential bridge (edge) between two zones:
- connects and
- connects and
- connects and
- connects and
- connects and
- connects and
- connects and
Connecting zones with the minimum number of bridges requires a spanning tree of bridges:
- (A) has only 3 bridges and leaves isolated.
- (B) has 4 bridges (), but form a cycle among while leaving disconnected.
- (C) places bridges on (-), (-), (-), and (-), connecting all 5 zones via using the minimum 4 bridges.
- (D) uses 5 bridges, which is not the minimum.
Option (C)
Selecting (B) because it has 4 bridges without checking that zone Z4 (bounded only by U and V) is not connected by P, Q, S, or T.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 10 of 65
- Section
- General Aptitude
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.