Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Search Agents
Goal-based agents
• Reflex agents: use a mapping from states to actions.
EXPLORE!
Examples
• States: All states reachable from the initial state by any se-
quence of actions (State space)
Problem formulation
• Initial state: the state in which the agent starts
• States: All states reachable from the initial state by any se-
quence of actions (State space)
• States: All states reachable from the initial state by any se-
quence of actions (State space)
• States: All states reachable from the initial state by any se-
quence of actions (State space)
• States: All states reachable from the initial state by any se-
quence of actions (State space)
8 puzzles
Examples
Examples
3. Unexplored.
Let’s show the first steps in growing the search tree to find a route
from San Francisco to another city
Examples of search agents
Examples of search agents
Examples of search agents
Graph search
How to handle repeated states?
Graph search
How to handle repeated states?
Search strategies
• A strategy is defined by picking the order of node expansion
Search strategies
• A strategy is defined by picking the order of node expansion
– Completeness
Does it always find a solution if one exists?
– Time complexity
Number of nodes generated/expanded
– Space complexity
Maximum number of nodes in memory
– Optimality
Does it always find a least-cost solution?
Search strategies
• Time and space complexity are measured in terms of:
http://aima.cs.berkeley.edu/