You are on page 1of 13

CPT 317: Artificial Intelligence

(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 Downlink from Display of scene Color pixel


analysis system ?????????????? orbiting satellite categorization arrays

Part-picking Percentage of Conveyor belt Jointed arm and


robot parts in correct with parts; bins hand ?????????????
bins

Refinery Purity, yield, Refinery, Valves, pumps,


controller safety Operators heaters, displays
????????????????

Interactive Student’s score Set of students, Keyboard entry


English tutor on test testing agency ???????????????
Agent Type Performance Environment Actuators Sensors
Measure
Medical Healthy patient, Patient, hospital, Display of Keyboard entry
diagnosis system reduced costs Staff 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

Part-picking Percentage of Conveyor belt Jointed arm and Camera, joint


robot parts in correct with parts; bins hand angle sensors
bins

Refinery Purity, yield, Refinery, Valves, pumps, Temperature,


controller safety Operators heaters, displays pressure,
chemical sensors

Interactive Student’s score Set of students, Display of Keyboard entry


English tutor on test testing agency exercises,
suggestions,
corrections
Based on the Vacuum agent diagram given above, answer the following questions:
1) Tabulate the agent functions using the percept sequence and action by the agent

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

You might also like