Professional Documents
Culture Documents
(AI)
Week 2 (Tut)
1
3
Agent Type Performance Environment Actuators Sensors
Measure
Medical Healthy patient, Display of Keyboard entry
diagnosis system reduced costs ?????????????? questions, tests, of symptoms,
diagnoses, findings, patient’s
treatments, answers
referrals
Satellite image Correct image Downlink from Display of scene Color pixel
analysis system categorization orbiting satellite categorization arrays
2) Write the simple reflex agent program in the two-state vacuum environment.
10
function REFLEX-VACUUM-AGENT( [location,status]) returns an action
if status = Dirty then return Suck
else if location = A then return Right
else if location = B then return Left
With the aid of a suitable diagram and Agent Program, explain the
Model-Based Reflex Agent
function MODEL-BASED-REFLEX-AGENT( percept ) returns an action
persistent: state, the agent’s current conception of the world state
model , a description of how the next state depends on current state and action
rules, a set of condition–action rules
action, the most recent action, initially none
state ← UPDATE-STATE(state, action , percept , model )
rule ← RULE-MATCH(state, rules)
action ← rule.ACTION
return action