Q4 — AO* on an AND–OR Decomposition

OR(A) wins at 12, A's true cost of 54 flips the marker to AND(B,C) — and after C resolves at 18, B's 40 hands the win back to A: 56.

The Question

AND–OR decomposition. Double circles = primitive. Every edge costs 2. Tie-breakers: node labels; AND nodes expand the highest-cost unsolved branch first.

AND arcs: S = AND(B, C) or OR(A). A = AND(D, E). B = AND(E, F). C has no arc — C = OR(F, G). Primitives: D, E, F, G.

#QuestionOfficial answer
4.1First three nodes expanded (incl. S)S,A,C (also A,C,B)
4.2Value of S after each expansion28,32,56 (also 22,28,32)
4.3Final value of S56

The Topic in 60 Seconds

AO* = expand along marked arcs + revise (OR: min child+edge; AND: sum children+edges). Markers switch when refined costs overtake rivals. Primitive children make a node instantly SOLVED.

Deep-dive: AO* and Goal Trees.

The Trace — four expansions

h: S=10, A=10, B=10, C=14; D=30, E=20, F=16, G=18 primitive. Edge = 2.

Expansion 1 — S.

  • AND(B, C): (10+2)+(14+2)=28(10+2)+(14+2) = 28
  • OR(A): 10+2=1210+2 = 12

Mark OR(A) → S = 12 (the paper's accepted list starts the count from the next expansion).

Expansion 2 — A. A: AND(D, E) =(30+2)+(20+2)=54= (30+2)+(20+2) = 54; D, E primitive → A = 54, SOLVED. Propagate: OR(A) = 56; AND(B, C) = 28 < 56 → marker flips to AND(B, C): S=28S = \mathbf{28} ✓

Expansion 3 — C (costlier AND branch: 14 > 10). C = OR(F, G) = min⁡(16+2, 18+2)=18\min(16+2,\ 18+2) = 18; F, G primitive → C = 18, SOLVED. Propagate: AND(B, C) =(10+2)+(18+2)=32= (10+2)+(18+2) = 32 → S=min⁡(32,56)=32S = \min(32, 56) = \mathbf{32} ✓

Expansion 4 — B. B: AND(E, F) =(20+2)+(16+2)=40= (20+2)+(16+2) = 40; E, F primitive → B = 40, SOLVED. Propagate: AND(B, C) =42+20=62= 42 + 20 = 62 → marker flips back: S=min⁡(62, 56)=56S = \min(62,\ 56) = \mathbf{56} — A solved → S SOLVED = 56 ✓✓

Final value of S = 56. Solution subtree: S → A → {D, E}.

1 / 4
S: OR(A) = 10+2 = 12 | AND(B,C) = (10+2)+(14+2) = 28 -> mark OR(A). S = 12
expanding nowlive on marked pathprimitive (born SOLVED)marked arcs
Two marker flips

OR(A) wins at 12, loses the marker when A's real cost (54) lands, regains it when C's refinement pushes AND(B,C) to 62 — the double flip is the whole exam point. The primary key 28,32,56 counts S after each of A, C, B; the alternate list 22,28,32 comes from a different counting convention in the official solution (the primary reading above reproduces every number with standard AO* arithmetic).

Answers, decoded

  • 4.1 — expansions: S, A, C, B — first three: S, A, C (alternate A,C,B drops S).
  • 4.2 — S: 28, 32, 56 after A, C, B (alternate 22,28,32 includes the initial OR(A) value 22).
  • 4.3 — final: 56 via S → A → {D, E}.

Tricks & Tips

Answers: 4.1 S,A,C · 4.2 28,32,56 · 4.3 56