Lec5 Problem Reducti AOstar
Lec5 Problem Reducti AOstar
Goal:Prepare Dinner
f1 = estimate of heuristic
function value
B C D
(5) (3) (4)
Fig. – 2(a)
Best-First Search and Problem – Reduction
(Contd..)
• Assume that every operation has a uniform cost 1.
• The ARC with single successor has a cost 1.
• And Arc with multiple successors has a cost 1 for each
successor.
• The cost of A when B is followed 5 + 1 = 6.
• The cost of A when and AND arc is followed 3+4+1+1=
9.
• If only f1 values are compared, C is to be chosen. Node
to be selected must depend not on f1 value only
Best-First Search and Problem – Reduction
(Contd..)
• Fig. 2-b. Illustrates this
• To use AC, AD is also to be followed.
• To use CG arc CH is also to be used.
• The path from A through B to E and F is
better with A total cost of 18.
Best-First Search and Problem – Reduction
(Contd..)
(18) A
(38)
B C D
A (5) A (6)
(9)
B C D
(3) (4) (5)
Back Propagation : Example (Contd..)
A A
B (9) C D B C D
(3) (4) (10) (4) (10)
E F G H E F
(4) (4) (5) (7) (4) (4)
Node= A,Successors= B,C & D Node =B Successor G,H
Observations about OR graph &
AND - OR graphs
B C D A
Unsolvable
G H E F D
C
I J (5) E (2)
Fig.5 -(a) Fig.5 -(b)
Observations about OR graph &
AND - OR graphs (Contd..)
• Search strategies for OR graph find a single
path to a goal.
- solution for and-or graphs is a path from start
node to a set of solution states.
• In Best-First (or graph) the desired path from
one node to another was always with lowest
cost. This is not always true in and or graph.
• When searching and-or graph due to and arcs
a longer path may be better as in Fig. 5 (a).
Observations about OR graph &
AND - OR graphs (Contd..)
A (7)
B (10) C (6)
D (3) E (5)
Fig. 4-1
An unnecessary
Backward Propagation
Observations about AO* Algorithm (Contd..)
A (11)
B (13) C (10)
G (5)
Fig. 4-2 (a)
A necessary
Backward Propagation
Observations about AO* Algorithm (Contd..)
A (14)
B (13) C (15)
G (10)
H (9)
Fig. 4-2 (b) A necessary Backward Propagation
Observations about AO* Algorithm (Contd..)