Chapter - 3 Mid
Chapter - 3 Mid
SEARCH: Before taking any action in the real world, the agent
simulates sequences of actions in its model, searching until it
finds a sequence of actions that reaches the goal - a solution.
The agent might have to simulate multiple sequences that
do not reach the goal, but eventually it will find a solution
(such as going from Arad to Sibiu to Fagaras to Bucharest),
or it will find that no solution is possible.
EXECUTION: The agent can now execute the actions in the
solution, one at a time.
Problem-Solving agents…
It is an important property that in a fully observable,
deterministic, known environment, the solution to any problem
is a fixed sequence of actions: drive to Sibiu, then Fagaras,
then Bucharest.
If the model is correct, then once the agent has found a
solution, it can ignore its percepts while it is executing the
actions—closing its eyes, so to speak—because the solution is
guaranteed to lead to the goal.
Control theorists call this an open-loop system: ignoring the
percepts breaks the loop between agent and environment.
If there is a chance that the model is incorrect, or the
environment is nondeterministic, then the agent would be safer
using a closed-loop approach that monitors the percepts.
Problem-Solving agents…
Figure 2: The state-space graph for the two-cell vacuum world. There are 8
states and three actions for each state: L = Left, R = Right, S = Suck
Grid world…
Transition model:
Suck removes any dirt from the agent’s cell;
Forward moves the agent ahead one cell in the direction it is
facing, unless it hits a wall, in which case the action has no
effect.
Backward moves the agent in the opposite direction, while
TurnRight and TurnLeft change the direction it is facing by 90◦.
Goal states: The states in which every cell is clean.
Action cost: Each action costs 1.
Real-world problems
Each cell has a fixed footprint (size and shape) and requires a
certain number of connections to each of the other cells.
The aim is to place the cells on the chip so that they do not
overlap and so that there is room for the connecting wires to
be placed between the cells.
Channel routing finds a specific route for each wire through
the gaps between the cells.
These search problems are extremely complex, but definitely
worth solving.
Real-world problems…