Computer Sciences > GATE 2026 SET-2 > Spatial Aptitude
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?
A
Such a trip is possible for (i) (i), but not for (ii) (ii).
B
Such a trip is possible for (ii) (ii), but not for (i) (i).
C
Such a trip is possible for both (i) (i) and (ii) (ii).
D
Such a trip is possible neither for (i) (i) nor for (ii) (ii).

Correct : a

The correct answer is Option C — The salesperson can make the trip on both networks (i) and (ii).
The salesperson''s trip is a Hamiltonian Cycle problem — a closed path that visits every city (vertex) exactly once and returns to the starting city. We check if such a cycle exists in each network.
Figure (i) — 4×4 Grid Network (16 cities): For a grid graph G(m×n), a Hamiltonian cycle exists if and only if m×n is even and both m ≥ 2, n ≥ 2. Here 4×4 = 16 (even) and both dimensions exceed 1. The Hamiltonian cycle exists.
Figure (ii) — Irregular 5-city Network: All 5 vertices have degree ≥ 2, and by tracing the edges a valid Hamiltonian cycle can be found — visiting all 5 cities exactly once before returning to the start.
Since a Hamiltonian cycle exists in both networks, the salesperson can complete the required trip on both highway systems.
Key distinction: this is a Hamiltonian cycle (every city visited once), not an Eulerian circuit (every road traversed once). For grid graphs, the even-vertex rule directly determines Hamiltonicity.

Similar Questions

A black square PQRS has been cut into two parts. One part of it is shown in Panel I. Which one of the shapes in Panel II is the other part?
#1551 MCQ
Two tiles are missing in Panel I. Which one of the options in Panel II is the appropriate choice for the missing tiles?
#1552 MCQ
The figure in Panel I below is a grid of cells with four rows and four columns. The numbers on the top and on the left represent the number of cells that are to...
#1554 MCQ

Related Topics

Hamiltonian cycle salesperson GATE 2026 GATE CS 2026 Set-2 Q8 grid graph Hamiltonian cycle GATE spatial aptitude GATE 2026 intercity highway trip GATE Hamiltonian path grid network GATE 4x4 grid Hamiltonian GATE both networks Hamiltonian GATE CSE

Unique Visitor Count

Total Unique Visitors

Loading......