There are five buildings called V, W, X, Y and Z in a row (not necessarily in that order). V is to the West of W. Z is to the East of X and the West of V. W is to the East of Z. X is to the West of Y. Which is the building in the middle? A. V B. W C. X D. Y

GATE 2017 · General Aptitude · Direction Sense · medium

Answer: The building in the middle is V.

  1. Collect all direction constraints: C1: pos(V) < pos(W). C2: pos(X) < pos(Z). C3: pos(Z) < pos(V). C4: pos(X) < pos(Y). C5 (from image): pos(Z) < pos(W). Combining C2+C3: X < Z < V. Combining with C1: X < Z < V < W. Now Y: C4 says X < Y. Since Y has no relation to Z, V, W except that it must be one of the 5 positions {1,2,3,4,5} with X < Z < V < W taking 4 of those positions, Y must be placed at position 1 (west of X).
  2. Determine the complete order and identify the middle: Full order (West to East): Y(1), X(2), V(3), Z(4), W(5). Position 3 is V.