Q3 — SEARCH FOR OPTIMAL SOLUTION
Every edge on the 10 x 10 tile grid costs more than ten rupees per Manhattan tile, so Manhattan distance can never overestimate.
The Question
| # | Question | Official answer |
|---|---|---|
| 3 | In the map, nodes are placed on a grid where each tile is in size, is the Manhattan distance heuristic admissible? | A |
The map (edge costs shown):
The Topic in 60 Seconds
is admissible iff it never overestimates the true cheapest cost: for every . Manhattan distance between grid points is a lower bound on any path that moves along the grid, because every unit step of travel can shrink by at most .
Deep-dive: browse the Concepts section for admissible heuristics.
Solutions
3 — Is the Manhattan-distance heuristic (scaled by tile size 10) admissible on this map?
Options:
| Option | Verdict |
|---|---|
| A — Yes | Correct — see proof below |
| B — No | Fails: no node exists whose beats its true cost |
| C — Cannot be determined | Fails: admissibility follows from geometry alone, no coordinates needed |
Answer: A
Why A is right
Take any edge of the map. Whatever the true layout, travelling from to must cover at least tiles horizontally-plus-vertically, and each tile costs at least its side length in traversal, so:
The given weights confirm the slack: every edge costs 12 or 24 — strictly more than the a straight grid walk of 1, 2, ... tiles would need. Summing along any path and applying the triangle inequality for Manhattan distance ():
So even the cheapest path never drops below . Concretely, the best routes to G here all cost (e.g. S,A,C,G), while holds for any placement with at most ~3 tiles of separation — which this 3-hop graph guarantees. Since no path can beat the heuristic estimate, everywhere → admissible.
Why the distractors fail
- B (No) would require some node whose scaled Manhattan distance exceeds its true cheapest escape. The edge-cost slack (, ) makes that impossible.
- C (Cannot be determined) tempts you because coordinates are not printed. But the bound above never uses exact coordinates — only the fact that movement happens on a grid with edges priced above the straight-line walk.
Tricks & Tips
Answers: 3 A