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.5.

Expand: Expand subroutine for heuristic search algorithms.

1: Function Expand(b)
Inputs: b: An OR-Node we want to expand.
Static: bc: The current belief state of the agent.
   T: An AND-OR tree representing the current search tree.
   L: A lower bound on V *.
   U: An upper bound on V *.
2: for each aA do
3: for each zZ do
4:   b′ ← τ(b, a, z)
5:   UT (b′) ← U(b′)
6:   LT (b′) ← L(b′)
7:    HT(b)HT(b)
8:    bT(b)b
9: end for
10: LT (b, a) ← RB(b, a) + γ Σz Z Pr(z|b, a)LT (τ(b, a, z))
11: UT (b, a) ← RB(b, a) + γ Σz Z Pr(z|b, a)UT (τ(b, a, z))
12: zb,aTargmaxzZHT(b,a,z)HT(τ(b,a,z))
13: HT(b,a)=HT(b,a,zb,aT)HT(τ(b,a,zb,aT))
14: bT(b,a)bT(τ(b,a,zb,aT))
15: end for
16: LT (b) ← max{maxa A LT (b, a), LT (b)}
17: UT (b) ← min{maxa A UT (b, a), UT (b)}
18:
abTargmaxaAHT(b,a)HT(b,a)
19:
HT(b)HT(b,abT)HT(b,abT)
20:
bT(b)bT(b,abT)