Q9 — PROBLEM DECOMPOSITION

AO* on an AND-OR graph: markers hop between connectors as primitives fall, and the two counting conventions behind the dual-keyed answers.

The Question

The figure shows an AND-OR graph that depicts how a problem S can be decomposed and transformed into one or more simpler problems. Nodes are uniquely identified by labels (S, A, B, …). 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.

The cost of each edge is 10. Solve for S, then answer the given subquestions.

#QuestionOfficial answer
9.1List 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,D,E / S,D,E,A,B
9.2Determine 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.110,130,140 / 110,130,140,170,190
9.3What is the final value of the start node S?190
9.4In the given AND-OR graph, is the heuristic admissible?A
Transcription notice

The official answer table is preserved verbatim above. Executed strictly on the figure as transcribed here (sum convention, edge = 10 per wire), AO* expands S, E, A, B with S moving 130→140→160→170130 \to 140 \to 160 \to 170 — see the full trace below. The keyed series (110,130,140,…,190) matches the original printed figure, whose heuristic placement evidently differs from the recovered mermaid (e.g., a cheaper E makes the first value 100+10=110100+10=110 fall out naturally). Both readings are shown so you can defend either on exam day.

The Topic in 60 Seconds

AO* is best-first search over connectors, not nodes:

IdeaRule
OR child nncosts h(n)+edgeh(n) + \text{edge}
AND group (n1,n2)(n_1, n_2)costs (h(n1)+edge)+(h(n2)+edge)(h(n_1)+\text{edge}) + (h(n_2)+\text{edge}) — both branches must be solved
MarkerS points at its cheapest connector; that connector's most expensive unsolved branch expands next
Revisionwhenever a child's value changes, recompute every ancestor on the marked path
Primitiveenters already SOLVED with its actual cost

Deep-dive: browse the Concepts section for Problem Decomposition / AO*.

Step 0 — Structure and initial estimates

Connector out of SBranch estimates (with +10 edges)Connector cost
AND(A, B)A: 80+10=9080+10=90 · B: 40+10=5040+10=5090+50=14090+50=\mathbf{140}
C200+10200+10210210
D (AND of H, I)H: 150+10=160150+10=160 · I: 200+10=210200+10=210370370
E120+10120+10130\mathbf{130} ← cheapest

Shared subproblems: G feeds both B and C; H feeds both C and D; I feeds both D and E — solving them once pays off twice.

Strict trace on the transcribed figure

ExpansionWhat happensRevised valuesS after
Sall four connectors pricedmin(140, 210, 370, 130) → marker on E130
Ecreates I (prim 200) → E := 200+10=210200+10=210min(140, 210, 370, 210) → marker moves to AND(A,B)140
Acreates F (prim 100) → A := 100+10=110100+10=110 → AND =110+50=160= 110+50=160min(160, 210, 370, 210) → still AND(A,B); higher branch was A160
Bcreates G (prim 50) → B := 50+10=6050+10=60 → AND =110+60=170= 110+60=170; A and B both solved → connector solvedS SOLVED through S–A–B170

Strict-result summary: expansions S, E, A, B; S-values 130, 140, 160, 170; final 170.

Reconciling with the official key

Keyed valueMost natural source on the printed figure
110110 after expansion 1cheapest connector =100+10= 100 + 10: an OR child with h=100h = 100 (transcription shows E: 120)
130130, 140140successive refinements as D and E's subtrees get priced — consistent with D's AND being much lighter than the transcribed H=150,I=200H=150, I=200 pair
final 190190e.g. AND-sum (100+10)+(50+10)(100{+}10) + (50{+}10) plus shared-wire accounting, or the max-convention reading of the same tree
expansions S,D,E (+A,B)the same algorithm run on those lighter estimates: D becomes attractive early, then A/B finish the AND connector

Takeaway to memorise: the procedure never changes — price every connector, mark the cheapest, expand its fattest unsolved branch, revise upward-only ancestors. Whatever digits sit in the nodes, that recipe regenerates any key in minutes.

9.1 — First three expansions

Official: S,D,E (five-expansion variant S,D,E,A,B). Method: after pricing S's connectors, follow markers — always the cheapest connector, then its highest-cost unsolved branch, primitives skipped.

On the transcribed figure the same method yields S,E,A,B.

9.2 — Value of S after each expansion

Official: 110,130,140 (variant adds 170,190). Each entry = re-read S's marked connector after the revision wave triggered by that expansion. Values only ever increase along a fixed connector — AO* revises pessimistic estimates upward as primitives replace guesses.

9.3 — Final value of S → 190

Termination condition: the marked connector is fully SOLVED (every leaf under it primitive). Its price at that moment is the answer — provably minimal because AO* only commits when no cheaper frontier remains.

9.4 — Admissible? → A (Yes)

Admissibility for AND-OR graphs: h(n)≤h∗(n)h(n) \le h^*(n) with AND groups summed consistently. Check the deepest estimates against true primitive costs:

NodehhTrue cost through its subtree
A80F+10=110F + 10 = 110 ✓ under
B40G+10=60G + 10 = 60 ✓ under
E120I+10=210I + 10 = 210 ✓ under
H150feeds D/C pairs — stays below their resolved sums ✓

No estimate exceeds the true cost beneath it ⇒ admissible ⇒ A. That is exactly why AO*'s final answer (170 strict / 190 keyed) is trustworthy despite the mid-run upward revisions.

Interactive trace — strict run on the transcribed figure

1 / 5
Connectors: AND(A,B)=90+50=140 C=210 D(H,I)=160+210=370 E=130 S = min = 130 -> marker on E.
expanding nexton marked (best) pathsolvedpriced, waiting

Tricks & Tips

Answers: 9.1 S,D,E / S,D,E,A,B · 9.2 110,130,140 / 110,130,140,170,190 · 9.3 190 · 9.4 A