2
2
AI
Problem Solving Agents
• When the correct action to take is not immediately obvious, an agent may
need to plan ahead to consider a sequence of actions that form a path to
a goal state.
• Such agents is called a problem-solving agent, and the computational
process it undertakes is called search.
– A set of possible states that the environment can be in. We call this the
state space.
– The initial state that the agent starts in. For example: Arad.
• A search tree over the statespace graph, forms various paths from
the initial state, trying to find a path that reaches a goal state.
• The state space describes the (possibly infinite) set of states in the
world, and the actions that allow transitions from one state to
another. The search tree describes paths between these states,
reaching towards the goal.
Search Tree
• We can expand the node, by considering the available ACTIONS for
that state, using the RESULT function to see where those actions
lead to, and generating a new node (called a child node or
successor node) for each of the resulting states.
• A search to depth d = 10 would take less than 3 hours, but would require
10 terabytes of memory. The memory requirements are a bigger problem
for breadth-first search than the execution time. But time is still an
important factor.