2 Intelligent Agent
2 Intelligent Agent
Intelligent Agent
Salah Ud Din
Lecturer
Department of Computer Science
COMSATS University Islamabad, Attock
Agents
• An agent is anything that can be viewed as perceiving its
environment through sensors and acting upon that environment
through actuators
Human agent:
eyes, ears, and other organs for sensors;
hands, legs, mouth, and other body parts for actuators
Robotic agent:
cameras and infrared range finders for sensors;
various motors for actuators
Software agent: receives keystrokes, file contents, and network
packets as sensory inputs and acts on the environment by
displaying on the screen,writing files, and sending network
packets
Agents and Environment
table lookup
for entire history
The lookup table for chess—a tiny, well-behaved fragment of the real world—would
have at least 1080 entries.
Table Driven Agent
• The size of table (the number of atoms in the observable
universe is less than 1080) means that
– no physical agent in this universe will have the space to store the
table
– the designer would not have time to create the table
– no agent could ever learn all the right table entries from
its experience
– even if the environment is simple enough to yield a
feasible table size, the designer still has no guidance about
how to fill in the table entries.
• Despite all this, TARLE-DRIVEN-AGFNT does do what we
want: it implements the desired agent function.
• The key challenge for AI is to find out how to write programs
that, to the extent possible, produce rational behavior from a
smallish program rather than from a vast table.
Simple reflex agents
• The simplest kind of agent is the simple reflex agent.
• These agents select actions on the basis of the current percept, ignoring
the rest of the percept history.
• For example, the vacuum agent whose agent function is a simple reflex
agent, because its decision is based only on the current location and on
whether that location contains dirt.
• Simple reflex behaviors occur even in more complex environments. Imagine
yourself as the driver of the automated taxi. If the car in front brakes and its brake
lights come on, then you should notice this and initiate braking.
• We call such a connection a condition-action rule, written as
if car-in-front-is-braking then initiate-braking.