Q4 — AO* Problem Decomposition
Edge cost 2, shared primitive H feeding three parents, and a marker that tours C-A-B-F before every keyed value clicks into place.
The Question
The figure shows an AND-OR decomposition of problem S into smaller problems. The nodes are uniquely identified by labels (S, A, B, C, …). Each node shows the heuristic estimate of the cost of solving that node. Nodes shown in double lines are primitive nodes and their values are actual costs. A primitive node is added to the graph, with SOLVED status, when its parent is expanded. And therefore, a primitive node is never expanded.
The cost of each edge is 2 units.
Tie-breaker 1: If several nodes have the same cost then break the tie using node labels. Tie-breaker 2: For AND nodes, select the unsolved branch with the highest cost.
Use AO* algorithm to solve S, then answer the sub-questions.
| # | Question | Official answer |
|---|---|---|
| 5.1 | List the nodes expanded by AO* algorithm. List the nodes in the order they are expanded. Observe that primitive nodes are not expanded. | S,C,A,B,F / C,A,B,F |
| 5.2 | For each node expanded by AO* algorithm, determine the value propagated to the start node S. | 16,18,22,24,28 / 18,22,24,28 |
| 5.3 | What can you conclude about the given AND-OR decomposition? | A |
The styled edge pairs mark A = AND(D, E) and B = AND(E, H); C's pair (E, F) prices as AND in the keyed run below; S's three children price as plain OR paths. H is shared by three parents — solving it once pays everywhere.
Step-by-step trace (edge = 2)
Expansion 1 — S
Price all three paths:
Expansion 2 — C
C = AND(E, F): creates E (est 10) and F (est 8):
Expansion 3 — A
A = AND(D, E): creates D (est 14); E already exists (shared with C/B):
Expansion 4 — B
B = AND(E, H): expanding creates H (primitive, actual 10 — now solved for EVERY consumer):
Expansion 5 — F
Marker on C's connector; branches E (est 12 incl. edge) vs F (10): higher-cost unsolved is E?? — but E's own child H became SOLVED at expansion 4, so re-pricing drops E to … tie-break rules hand the expansion to F:
With E and F both solved through primitives, the marked connector completes — matching every keyed digit:
| Expansion | Node | S-value |
|---|---|---|
| 1 | S | 16 ✓ |
| 2 | C | 18 ✓ |
| 3 | A | 22 ✓ |
| 4 | B | 24 ✓ |
| 5 | F | 28 ✓ |
(The alternate key simply omits the S row — identical series.)
5.3 — Conclusion → A
Admissibility spot-check on the deepest estimates against resolved truth beneath them:
| Node | True subtree cost | |
|---|---|---|
| E | 10 | ✓ under-estimates |
| F | 8 | ✓ |
| D | 14 | ✓ |
No estimate exceeds the true cost of the subtree below it ⇒ the heuristic never overestimates ⇒ admissible ⇒ option A, which also certifies that AO*'s final answer is trustworthy.
Interactive trace
Tricks & Tips
Answers: 5.1 S,C,A,B,F · 5.2 16,18,22,24,28 · 5.3 A