Problem Formulation & Solving by Search
Problem Formulation & Solving by Search
Performance measure:
safe, fast, legal, comfortable, maximize profits
Environment:
roads, other traffic, pedestrians, customers
Actuators:
steering, accelerator, brake, signal, horn
Sensors:
cameras, sonar, speedometer, GPS
PEAS: Medical diagnosis system
4
Performance measure:
Healthy patient, minimize costs, lawsuits
Environment:
Patient, hospital, staff
Actuators:
Screen display (form including: questions, tests, diagnoses,
treatments, referrals)
Sensors:
Keyboard (entry of symptoms, findings, patient's answers)
Environment Restrictions for Now
5
Static
Fully Observable
Deterministic
Discrete
The rational agent designer’s goal
6
Environment
How the world evolves
What my actions do
What it will be like
if I do action A
What action I
Goals Actuators Actions
should do now
Goal Based Agents
9
The agent carries out its plans with its eyes closed
Certain of what’s going on
Open loop system
Well Defined Problems and Solutions
10
A problem
Initial state
Actions and Successor Function
Goal test
Path cost
Problem formulation
11
Goal formulation
Deciding on goal states based on current situation and agent’s
performance measure
Problem formulation
how can we get to the goal, without getting bogged down in the detail
of the world.
What actions and states to consider given the goal
Search
Determine the possible sequence of actions that lead to the states of
known values and then choose the best sequence.
Search algorithms –input is a problem, output is a solution (action
sequence)
Execute–Given the solution, perform the actions.
State Space Search Notations
13
Initial state:
The buckets are empty
Represented by the tuple ( 0 0 )
Goal state:
One of the buckets has two gallons of water in it
Represented by either ( x 2 ) or ( 2 y )
Path cost:
1 per unit step
Example: Water Pouring
25
(0,0)
(4,0) (0,3)
(1,0) (0,1)
(3,3) (4,2)
(4,1)
(2,3)
(2,0) (0,2)
Example: Romania
27
Semester 2 , 2018
Example: Map Planning
28
Well-defined problems and solutions
29
Searching For Solutions
30
Initial State
e.g. “At Arad”
Successor Function
A set of action state pairs
S(Arad) = {(Arad->Zerind, Zerind), …}
Goal Test
e.g. x = “at Bucharest”
Path Cost
sum of the distances traveled
Problem Formulation
31
Searching For Solutions
32