GATE CS 2026 Set 2 | Question 8

General Aptitude › Analytical Aptitude · MCQ · 2 marks · Answer: A

  1. Question 8General Aptitudemcq2 marks
    Figures (i) and (ii) represent intercity highway systems. The black dots represent cities and the line segments between them represent intercity highways. A salesperson needs to make a trip. She needs to start from a city, visit each of the remaining cities exactly once, and finally return to the same city from which she started. Which one of the following options is then true?
    GATE CS 2026 Set 2 Question 8 figure
    • A.
      Such a trip is possible for (i), but not for (ii).
      ✓
    • B.
      Such a trip is possible for (ii), but not for (i).
    • C.
      Such a trip is possible for both (i) and (ii).
    • D.
      Such a trip is possible neither for (i) nor for (ii).

    Answer: A

    Solution

    Answer: (A) The required trip is a Hamiltonian cycle. The grid graph (i) is bipartite with an equal number of cells in each colour class, and a Hamiltonian cycle can be traced through it. Graph (ii) has a vertex/edge arrangement that forces a repeated or skipped city, so no such closed tour exists. Hence the trip is possible for (i) but not (ii).

More GATE PYQ on Analytical Aptitude

All GATE CS General Aptitude PYQ →

Attempt GATE CS 2026 Set 2 in real GATE exam mode

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

Create free account →