UPSC CSAT 2025 Q65: Directions and Distance on a Road Grid — Solved
There are 7 places A, B, C, D, E, F and G in a city connected by various roads AB, AC, CD, DE, BF, EG and FG. A is 6 km south of B. A is 10 km west of C. D is 5 km east of E. C is 6 km north of D. F is 9 km west of B. F is 12 km north of G. A person travels from D to F through these roads. What is the distance covered by the person ?
- 20 km
- 25 km
- 31 km
- 37 km
Answer: (c) 31 km
Solution
-
Set up coordinates. Put A at the origin, A = (0, 0). East is +x and north is +y.
-
Place each point from the statements. - A is 6 km south of B, so B is 6 km north of A: B = (0, 6). - A is 10 km west of C, so C is 10 km east of A: C = (10, 0). - C is 6 km north of D, so D is 6 km south of C: D = (10, −6). - D is 5 km east of E, so E is 5 km west of D: E = (5, −6). - F is 9 km west of B: F = (−9, 6). - F is 12 km north of G, so G is 12 km south of F: G = (−9, −6).
-
Sketch the network. The roads are AB, AC, CD, DE, BF, EG and FG.
F(-9,6) ---9--- B(0,6)
| |
12 6
| |
| A(0,0) ---10--- C(10,0)
| |
| 6
| |
G(-9,-6) -------14------- E(5,-6) -5- D(10,-6)
-
Find the length of EG. It is not given directly. E and G both have y = −6, so EG runs east–west. EG = 5 − (−9) = 14 km.
-
List the routes from D to F. D connects to C and E only. That gives two routes: - Route 1: D → C → A → B → F - Route 2: D → E → G → F
-
Route 1 length. DC + CA + AB + BF = 6 + 10 + 6 + 9 = 31 km.
-
Route 2 length. DE + EG + GF = 5 + 14 + 12 = 31 km.
-
Check. Every road runs north–south or east–west. D is 10 − (−9) = 19 km east of F and 6 − (−6) = 12 km south of F. So any road route needs at least 19 + 12 = 31 km. Both routes only ever move west or north, so neither wastes distance. Both equal 31 km.
-
Answer. Whichever route the person takes, the distance covered is 31 km.
Option-wise explanation
- a: incorrect — 20 km is less than the 19 + 12 = 31 km minimum that any route along these perpendicular roads must cover. You get it by adding only some of the legs (for example 6 + 5 + 9), not by following a connected path.
- b: incorrect — 25 km is Route 1 with the 6 km A–B leg left out (6 + 10 + 9). The trap is jumping straight from A to F's row and forgetting the climb from A up to B.
- c: correct — D → C → A → B → F = 6 + 10 + 6 + 9 = 31 km, and D → E → G → F = 5 + 14 + 12 = 31 km. Both routes agree.
- d: incorrect — 37 km is 31 + 6. It comes from counting a 6 km north–south leg twice, or from placing D north of C instead of south (reversing "C is 6 km north of D").
How to eliminate
Use the grid shortcut. Every road runs north–south or east–west, so the shortest road distance between two points is the horizontal gap plus the vertical gap.
- Horizontal gap: F is 9 km west of B, and D is 10 km east of A (same column as C). So D is 9 + 10 = 19 km east of F.
- Vertical gap: F is at B's level, 6 km above A. D is 6 km below C (A's level). So the vertical gap is 6 + 6 = 12 km.
- Minimum = 19 + 12 = 31 km.
This rules out 20 and 25 at once, since no road route can be shorter than 31. Then trace D → C → A → B → F: it only moves west and north, so it hits the minimum of 31 exactly. That rules out 37.
You never need EG, which the question does not give. About 45–60 seconds with a rough sketch. Attempt this one early: it is a sure mark.
Know more
Directions and distance on a grid of roads
Method:
- Fix one point at (0, 0). Take east as +x and north as +y.
- Turn each statement into a coordinate. Watch the reversal: "P is 6 km south of Q" places Q 6 km north of P.
- Draw only the roads that are given, then list the connected paths.
If every road runs north–south or east–west, any route between two points is at least |Δx| + |Δy| long (the Manhattan distance). A route that never doubles back, in either direction, achieves exactly this. The straight-line distance √(Δx² + Δy²) applies only if the person can travel "as the crow flies".
| Asked for | Formula |
|---|---|
| Road distance, no backtracking | |Δx| + |Δy| |
| Shortest (straight-line) distance | √(Δx² + Δy²) |
| Direction | sign of Δx (E/W) and Δy (N/S) |
Worked variant. P is 8 km north of Q. R is 15 km east of Q. S is 4 km south of R. Roads: PQ, QR, RS. Find the road distance from P to S and the straight-line distance.
- Q = (0, 0), P = (0, 8), R = (15, 0), S = (15, −4).
- Road: 8 + 15 + 4 = 27 km, which equals |15| + |−12|.
- Straight line: √(15² + 12²) = √369 ≈ 19.2 km, to the south-east.