Question:medium

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?

Show Hint

Every city must have at least two highways for a closed once-each tour to exist; check whether any city in each figure has only one connecting highway.
Updated On: Jul 7, 2026
  • Such a trip is possible for (i), but not for (ii).
  • Such a trip is possible for (ii), but not for (i).
  • Such a trip is possible for both (i) and (ii).
  • Such a trip is possible neither for (i) nor for (ii).
Show Solution

The Correct Option is A

Solution and Explanation

Reframe the problem in graph-theory language: cities are vertices, highways are edges, and the salesperson wants a Hamiltonian cycle, a closed walk that visits every vertex exactly once.

Key test: if any vertex has degree exactly 1, it is a dead end -- the salesperson can reach that city but has no second edge to leave it and continue the tour without retracing the same highway. Any graph containing such a vertex cannot admit a Hamiltonian cycle.

Applying this test to the two highway systems: figure (i) has enough well-distributed connections that a full closed tour through all cities is achievable, so a Hamiltonian cycle exists. Figure (ii) contains a city that is reachable via only one highway, which blocks the formation of any closed tour covering all cities.

Hence the trip described by the salesperson is achievable only for network (i), never for network (ii).

Final answer: option A.

Was this answer helpful?
0


Questions Asked in GATE CS exam