Q9 — PROBLEM DECOMPOSITION
AO* walks S, C, D, G and backs 101, 161, 183, 194 up to the root - while h(B)=200 quietly overestimates B's real cost of 102.
The Question
The figure shows an AND-OR graph that depicts how a problem can be decomposed and transformed into one or more simpler problems. Nodes are uniquely identified by labels (). The number in each node is the heuristic estimate of the cost of solving that node.
Nodes with double lines are primitive nodes and their values are actual costs. Observe that a primitive node is added to the graph by its parent when the parent is expanded, and the primitive node is labeled as SOLVED and it will not be expanded subsequently.
- Tie-breaker 1: For nodes with the same cost, expand in the ascending order of node labels.
- Tie-breaker 2: For AND nodes, expand the unsolved branch with the highest cost.
- Each edge has a unit cost. Solve for .
| # | Question | Official answer |
|---|---|---|
| 9.1 | List the first three nodes (including S) expanded by AO* algorithm. List the nodes in the order they are expanded. Observe that primitive nodes are not expan... | S,C,D / S,C,D,G |
| 9.2 | Determine the value of the start node S after each node expansion. List the first three values of S that correspond to the first three node expansions. | 101,161,183 / 101,161,183,194 |
| 9.3 | What is the final value of the start node S? | 194 |
| 9.4 | In the given AND-OR graph, is the heuristic admissible? | A |
The Topic in 60 Seconds
AO* maintains one cost per node and always expands the cheapest unsolved non-primitive leaf lying on S's current best partial solution graph:
After expanding a leaf, back the new costs up to S and re-pick. Terminate when the best solution graph contains only solved/primitive nodes.
Deep-dive: browse the Concepts section for AO* search.
Solutions
The run, expansion by expansion
Expansion 1 — S. Price S's three options from leaf estimates:
| Option | Arithmetic | Cost |
|---|---|---|
| AND branch | 222 | |
| OR via C | 101 ← best | |
| OR via D | 161 |
, best child C.
Expansion 2 — C (cheapest leaf on S's best graph). C is AND of (still a leaf: ) and (primitive 100):
Back-up: → best flips to D.
Expansion 3 — D. D is AND of primitives (140) and (100):
Back-up: → best returns to C.
Expansion 4 — G (the only expandable leaf left on S's best graph; H, I are primitive). G is OR of leaves (100), (90), plus its own estimate 80:
Back-up: , so . The chain is now entirely solved/primitive → terminate.
Answers
9.1 — Expansion order: S, C, D (continuing: S, C, D, G). No ties ever arose, so both tie-breakers stay idle. Primitives A, E, F, H, I are never expanded by rule.
Answer: S,C,D / S,C,D,G
9.2 — Value of S after each of the first three expansions: 101, 161, 183 (fourth gives 194).
Answer: 101,161,183 / 101,161,183,194
9.3 — Final value of S: 194
True cost check along the returned solution: ✓
Answer: 194
9.4 — Is the heuristic admissible? → A (No)
Admissibility requires for every non-primitive node. Test B: its true solve cost is
A 98-unit overestimate → the heuristic is not admissible. (The other estimates behave: , , , .)
Answer: A
Interactive AO* trace
Each step shows the expansion, exact arithmetic, and how S's backed-up value moves: 101 → 161 → 183 → 194.
Tricks & Tips
Answers: 9.1 S,C,D / S,C,D,G · 9.2 101,161,183 / 101,161,183,194 · 9.3 194 · 9.4 A