Skip to main content
. Author manuscript; available in PMC: 2009 Sep 22.
Published in final edited form as: J Artif Intell Res. 2008 Jul 1;32(2):663–704.

Algorithm 3.3.

Expand subroutine of McAllester and Singh’s Algorithm.

1: Function Expand(b, d)
Inputs: b: The belief node we want to expand.
   d: The depth of expansion under b.
Static: T: An AND-OR tree representing the current search tree.
   C: The number of observations to sample.
2: if d = 0 then
3: LT (b) ← maxa A RB(b, a)
4: else
5: LT (b) ← −∞
6: for all aA do
7:   Sample Inline graphic = {z1, z2,zC} from distribution Pr(z|b, a)
8:    LT(b,a)RB(b,a)+γzZNz(Z)>0Nz(Z)CExpand(τ^(b,a,z),d1)
9:   LT (b) ← max{LT (b), LT (b, a)}
10: end for
11: end if
12: return LT (b)