Problem-Solving: Solving Problems by Searching
Problem-Solving: Solving Problems by Searching
CHAPTER 3
SOLVING PROBLEMS BY SEARCHING
Prepared by
Supervised by
Prof DR Abbas-ALbakri
Solving Problems By Searching 1
Introduction
• Simple-reflex agents directly maps states to actions.
Real-world problems
Route-finding
Touring
VLSI
Robot navigation
Internet searching
Solving Problems By Searching 8
Example: The agent is driving to Bucharest from Arad.
17
Searching for Solutions
• Basic idea of tree search algorithms :
Simulated exploration of state space by generating successors of
already –explored states(expanding states)
The root node : initial state .
19
Solving Problems By Searching
Search Tree, Example The agent is driving to Bucharest from Arad.
Dijkstra’s algorithm.
• It requires that all step costs are 80
non-negative
177
• It may get stuck if there is a path 310
with an infinite sequence of zero 278
cost steps.
• Otherwise it is complete
• Space? O(b m)
• Optimal? No
m … maximum depth