My AI CH 3
My AI CH 3
My AI CH 3
CHAPTER - 3
It is known as, if the agent can adopt a goal and aim at satisfying it.
Goal formulation
What are the successful world states
Problem formulation
What actions and states to consider given the goal
Search
Examine different possible sequences of actions that lead to states
of known value and then choose the best sequence
Execute
Perform actions on the basis of the solution
6
Goal Formulation
Search: The process of looking for a sequence of actions that reaches the
goal is called search.
10
Con’t…
12
Well-defined problems and solutions
a in state s.
In our example, RESULT (In (Arad), Go (Zerind)) = In (Zerind).
Together the initial state, actions and transition model implicitly define
the state space of the problem the set of all states reachable from the
14
Con’t…
16
The problem formulation is therefore:
Path cost: c(Arad, AradZerind, Zerind) = 75, c(Arad, AradSibiu, Sibiu) = 140,
c(Arad, Arad Timisoara, Timisoara)17= 118, etc.
Con’t…
20
Con’t…
States: A state description specifies the location of each of the eight
tiles and the blank in one of the nine squares.
Initial State: Any state can be designated as the initial state. Note that
any given goal can be reached from exactly half of the possible initial
states.
Actions: The simplest formulation defines the action on movements of
the blank space Left, Right, Up or Down.
Transition Model: Given a state and action, this returns the resulting
state.
21
Con’t…
Goal Test: This checks whether the state matches the goal
configuration as shown in figure.
Path cost: Each cost costs 1, so the path cost in the number of steps
in the path.
States: Each state obviously includes a location (airport) and the current
time. Furthermore, the state must record extra information like, base
fare, flight segment, their status as domestic or international, to decide
the cost of an action.
Actions: Take any flight from the current location, in any seat
class, leaving the current time, leaving enough time for within
24
Con’t…
Transition model: The state resulting from taking a flight will have the
flight’s destination as the current location and the flight’s arrival time
as the current time.
Path cost: This depends on monetary cost, waiting time, flight time,
customs and immigration procedures, seat quality, time of day, type of
airplane, frequent flyer mileage awards
25
and so on.
Basic Search Algorithms (Group Assignment)
26
1. Breadth-First Search
2. Uniform-Cost Search
3. Depth-First Search
4. Depth Limited Search
5. Iteratively Deepening Search
6. Bidirectional Search
27
THANK YOU
Q&A
?