Skip to main content

GATE CSE 2026Quantitative Aptitude › Data Interpretation & StatisticsVerified

GATE CSE 2026 PYQ: Figures (i) \text{(i)} (i) and (ii) \text{(ii)} (ii) represent intercity highway systems. The black dots…

Figures (i)\text{(i)} and (ii)\text{(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 CSE 2026 Data Interpretation & Statistics diagram: Figures (i) \text{(i)} (i) and (ii) \text{(ii)} (ii) represe

GATE CSE 2026 Data Interpretation & Statistics diagram: Figures (i) \text{(i)} (i) and (ii) \text{(ii)} (ii) represe

 

  1. A
    Such a trip is possible for (i)\text{(i)}, but not for (ii)\text{(ii)}.
    Correct answer
  2. B
    Such a trip is possible for (ii)\text{(ii)}, but not for (i)\text{(i)}.
  3. C
    Such a trip is possible for both (i)\text{(i)} and (ii)\text{(ii)}.
  4. D
    Such a trip is possible neither for (i)\text{(i)} nor for (ii)\text{(ii)}.

Answer

(A) Such a trip is possible for (i) \text{(i)} (i) , but not for (ii) \text{(ii)} (ii) .

Approach

The trip described is exactly a closed walk that starts at one city, visits every other city exactly once, and returns to the start - i.e. a Hamiltonian cycle. So the task reduces to deciding, for each of the two highway graphs (i) and (ii), whether it contains a Hamiltonian cycle. A graph has no Hamiltonian cycle if it fails a necessary condition, e.g. it has a cut vertex (articulation point), a vertex of degree 0 or 1, or - when bipartite - unequal numbers of vertices in the two colour classes. Applying these checks to the figures shows that figure (i) admits a Hamiltonian cycle while figure (ii) does not, yielding option A.

The trip is a Hamiltonian cycle. Figure (i) contains such a cycle, while figure (ii) does not because it violates a necessary condition (e.g. a cut vertex or degree-1 vertex). Hence the trip is possible for (i) but not for (ii), confirming option A.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.