SlideShare a Scribd company logo
1
Informed Search Strategies
Ms. Richa Singh
CSE(AI)
CONTENTS
 Basic
 AND/OR graph search problem
 AO* Search Algorithm
 AO* Search Procedure
 Example
 AO* V/s A*
 Advantages and Disadvantages
2
BASIC
 In an AND-OR graph AO* algorithm is an
efficient method to explore a solution path.
 AO* algorithm works mainly based on two
phases.
AND and OR
 AO* algorithm will not give the best solution
in such cases.
3
CONTI…
4
AND/OR GRAPH SEARCH PROBLEM
 Problem definition:
Given: [G, s, T]
where
•G: implicitly specified AND/OR graph
•S: start node of the AND/OR graph
• T: set of terminal nodes
• h(n) heuristic function estimating the h(n) heuristic
function estimating the cost of solving the sub cost of
solving at n problem.
 To find: – A minimum cost solution tree A minimum
cost solution tree 5
ALGORITHM AO*
6
Step 1 Initialize Set G* = {s}, f(s) = h(s)
If s T, label s as SOLVED T
∈
Step 2 Terminate If s is SOLVED, then Terminate
Step 3 Select: Select a non-terminal leaf node n from the
marked sub-tree
Step 4 Expand Make explicit the successors of n
For each new successor, m:
Set f(m) = h(m)
If m is terminal, label m SOLVED
Step 5 Cost Revision: Call cost-revise(n)
Step 6 Loop Go To Step 2
CONTI…
7
 OPEN:
It contains the nodes that has been traversed but yet
not been marked solvable or unsolvable.
 CLOSE:
It contains the nodes that have already been processed.
AO* SEARCH PROCEDURE
8
1. Place the start node on open.
2. Using the search tree, compute the most
promising solution tree TP .
3. Select node n that is both on open and a part
of tp, remove n from open and place it no
closed.
4. If n is a goal node, label n as solved. If the
start node is solved, exit with success where tp
is the solution tree, remove all nodes from open
with a solved ancestor.
CONTI…
9
5. If n is not solvable node, label n as
unsolvable.
If the start node is labeled as unsolvable, exit
with failure.
Remove all nodes from open, with unsolvable
ancestors.
6. Otherwise, expand node n generating all of
its successor compute the cost of for each newly
generated node and place all such nodes on
open.
7. Go back to step(2)
EXAMPLE
10
CONTI…
11
 In figure (a) the top node A has been expanded producing
two area one leading to B and leading to C-D.
 The numbers at each node represent the value of f ' at that
node (cost of getting to the goal state from current state).
 For simplicity, it is assumed that every operation(i.e.
applying a rule) has unit cost, i.e., each are with single
successor will have a cost of 1 and each of its components.
 With the available information till now , it appears that C
is the most promising node to expand since its f ' = 3 , the
lowest but going through B would be better since to use C
we must also use D' and the cost would be 9(3+4+1+1).
 Through B it would be 6(5+1).
CONTI…
12
 Thus the choice of the next node to expand depends not
only n a value but also on whether that node is part of the
current best path form the initial mode.
 Figure (b) makes this clearer. In figure the node G
appears to be the most promising node, with the least f '
value.
 But G is not on the current beat path, since to use G we
must use GH with a cost of 9 and again this demands that
arcs be used (with a cost of 27).
 The path from A through B, E-F is better with a total cost
of (17+1=18).
AO* V/S A*
13
 The main difference between A* (A star) and AO (AO
star) algorithm is that A* algorithm is a OR graph
algorithm and AO* is a AND-OR graph algorithm.
 In OR graph algorithm it just find only one solution.
 In AND-OR graph algorithm it find more than one
solution by ANDing two or more brances.
 A* algorithm mostly used in practical application (traffic
navigation system, games etc) while AO* algorithm
rarely used in practical application (alpha beta pruning
for game tree)
ADVANTAGES & DISADVANTAGES:
14
Advantages:
 It is an optimal algorithm.
 If traverse according to the ordering of nodes. It can
be used for both OR and AND graph.
Disadvantages:
 Sometimes for unsolvable nodes, it can’t find the
optimal path. Its complexity is than other
algorithms.
THANKS
15

More Related Content

PPTX
AO Star Algorithm in Artificial Intellligence
PPTX
HEURISTIC SEARCH and other technique.pptx
PPTX
5.problem reduction in artificial intelligence.pptx
PDF
I. AO* SEARCH ALGORITHM
PDF
UNIT 2 - Artificial intelligence merged.pdf
PPTX
Informed search algorithms.pptx
PPTX
Unit 3 Informed Search Strategies.pptx
PDF
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AO Star Algorithm in Artificial Intellligence
HEURISTIC SEARCH and other technique.pptx
5.problem reduction in artificial intelligence.pptx
I. AO* SEARCH ALGORITHM
UNIT 2 - Artificial intelligence merged.pdf
Informed search algorithms.pptx
Unit 3 Informed Search Strategies.pptx
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf

Similar to Unit 2 Topic 4 Informed search strategies AO.ppt (20)

PPT
Ai4 heuristic2
PPT
BFS algo.ppt
PPTX
AI444444444444444444444444444444444.pptx
PDF
AO Star Algorithm.pdf gfd677878896555666
PDF
AO Star Algorithm.pdfuytyyjhjjhjjhkjkjkjk
PPTX
AI BEST FIRST,A-STAR,AO-STAR SEARCH.pptx
PPTX
Lecture 21 problem reduction search ao star search
PPTX
heuristic technique.pptx...............................
PPT
unit-1-l3AI..........................ppt
PDF
Heuristic Searching: A* Search
PPTX
informed search.pptx
PPTX
Artificial intelligence topic for the btech studentCT II.pptx
PPT
uniformed (also called blind search algo)
PPT
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
PPTX
AO star algorithm -Adv-Ltms-comp AI.pptx
PPTX
BFS,DFS, BEST FIRST,A-STAR,AO-STAR SEARCH.pptx
PDF
R01741124127
PDF
A* Search Algorithm
PPT
What is A-Star (A*) Algorithm in Artificial astar.ppt
PPT
HEURISTIC SEARCH IN ARTIFICIAL INTELLEGENCE
Ai4 heuristic2
BFS algo.ppt
AI444444444444444444444444444444444.pptx
AO Star Algorithm.pdf gfd677878896555666
AO Star Algorithm.pdfuytyyjhjjhjjhkjkjkjk
AI BEST FIRST,A-STAR,AO-STAR SEARCH.pptx
Lecture 21 problem reduction search ao star search
heuristic technique.pptx...............................
unit-1-l3AI..........................ppt
Heuristic Searching: A* Search
informed search.pptx
Artificial intelligence topic for the btech studentCT II.pptx
uniformed (also called blind search algo)
2012wq171-03-UninformedSeknlk ;lm,l;mk;arch.ppt
AO star algorithm -Adv-Ltms-comp AI.pptx
BFS,DFS, BEST FIRST,A-STAR,AO-STAR SEARCH.pptx
R01741124127
A* Search Algorithm
What is A-Star (A*) Algorithm in Artificial astar.ppt
HEURISTIC SEARCH IN ARTIFICIAL INTELLEGENCE
Ad

Recently uploaded (20)

PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Well-logging-methods_new................
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
PPT on Performance Review to get promotions
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
web development for engineering and engineering
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
composite construction of structures.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Geodesy 1.pptx...............................................
CYBER-CRIMES AND SECURITY A guide to understanding
Well-logging-methods_new................
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Sustainable Sites - Green Building Construction
PPT on Performance Review to get promotions
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Digital Logic Computer Design lecture notes
web development for engineering and engineering
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
composite construction of structures.pdf
additive manufacturing of ss316l using mig welding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Lecture Notes Electrical Wiring System Components
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Ad

Unit 2 Topic 4 Informed search strategies AO.ppt

  • 1. 1 Informed Search Strategies Ms. Richa Singh CSE(AI)
  • 2. CONTENTS  Basic  AND/OR graph search problem  AO* Search Algorithm  AO* Search Procedure  Example  AO* V/s A*  Advantages and Disadvantages 2
  • 3. BASIC  In an AND-OR graph AO* algorithm is an efficient method to explore a solution path.  AO* algorithm works mainly based on two phases. AND and OR  AO* algorithm will not give the best solution in such cases. 3
  • 5. AND/OR GRAPH SEARCH PROBLEM  Problem definition: Given: [G, s, T] where •G: implicitly specified AND/OR graph •S: start node of the AND/OR graph • T: set of terminal nodes • h(n) heuristic function estimating the h(n) heuristic function estimating the cost of solving the sub cost of solving at n problem.  To find: – A minimum cost solution tree A minimum cost solution tree 5
  • 6. ALGORITHM AO* 6 Step 1 Initialize Set G* = {s}, f(s) = h(s) If s T, label s as SOLVED T ∈ Step 2 Terminate If s is SOLVED, then Terminate Step 3 Select: Select a non-terminal leaf node n from the marked sub-tree Step 4 Expand Make explicit the successors of n For each new successor, m: Set f(m) = h(m) If m is terminal, label m SOLVED Step 5 Cost Revision: Call cost-revise(n) Step 6 Loop Go To Step 2
  • 7. CONTI… 7  OPEN: It contains the nodes that has been traversed but yet not been marked solvable or unsolvable.  CLOSE: It contains the nodes that have already been processed.
  • 8. AO* SEARCH PROCEDURE 8 1. Place the start node on open. 2. Using the search tree, compute the most promising solution tree TP . 3. Select node n that is both on open and a part of tp, remove n from open and place it no closed. 4. If n is a goal node, label n as solved. If the start node is solved, exit with success where tp is the solution tree, remove all nodes from open with a solved ancestor.
  • 9. CONTI… 9 5. If n is not solvable node, label n as unsolvable. If the start node is labeled as unsolvable, exit with failure. Remove all nodes from open, with unsolvable ancestors. 6. Otherwise, expand node n generating all of its successor compute the cost of for each newly generated node and place all such nodes on open. 7. Go back to step(2)
  • 11. CONTI… 11  In figure (a) the top node A has been expanded producing two area one leading to B and leading to C-D.  The numbers at each node represent the value of f ' at that node (cost of getting to the goal state from current state).  For simplicity, it is assumed that every operation(i.e. applying a rule) has unit cost, i.e., each are with single successor will have a cost of 1 and each of its components.  With the available information till now , it appears that C is the most promising node to expand since its f ' = 3 , the lowest but going through B would be better since to use C we must also use D' and the cost would be 9(3+4+1+1).  Through B it would be 6(5+1).
  • 12. CONTI… 12  Thus the choice of the next node to expand depends not only n a value but also on whether that node is part of the current best path form the initial mode.  Figure (b) makes this clearer. In figure the node G appears to be the most promising node, with the least f ' value.  But G is not on the current beat path, since to use G we must use GH with a cost of 9 and again this demands that arcs be used (with a cost of 27).  The path from A through B, E-F is better with a total cost of (17+1=18).
  • 13. AO* V/S A* 13  The main difference between A* (A star) and AO (AO star) algorithm is that A* algorithm is a OR graph algorithm and AO* is a AND-OR graph algorithm.  In OR graph algorithm it just find only one solution.  In AND-OR graph algorithm it find more than one solution by ANDing two or more brances.  A* algorithm mostly used in practical application (traffic navigation system, games etc) while AO* algorithm rarely used in practical application (alpha beta pruning for game tree)
  • 14. ADVANTAGES & DISADVANTAGES: 14 Advantages:  It is an optimal algorithm.  If traverse according to the ordering of nodes. It can be used for both OR and AND graph. Disadvantages:  Sometimes for unsolvable nodes, it can’t find the optimal path. Its complexity is than other algorithms.