













































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














































Lecture 02
Focus of this course
An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators. Agent Sensor Actuator Human Eyes Arms/Legs Robot Camera Motors Software Keystokes File Receiving Receive Packets Screen Display File Writing Sending Packets
We use the term percept to refer to the agent’s perceptual inputs at any given instant. Agent’s percept sequence is the complete history of everything the agent has ever perceived. percept Percepts/ Percept Sequence Agent Function Action Actions/ Action Sequence
function Refl ex-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
We might propose to measure performance by the amount of dirt cleaned up in a single eight-hour shift. (^) A rational agent can maximize this performance measure by cleaning up the dirt, then dumping it all on the floor, then cleaning it up again, and so on. A more suitable performance measure would reward the agent for having a clean floor. (^) For example, one point could be awarded for each clean square at each time step. As a general rule, it is better to design performance measures according to what one actually wants in the environment, rather than according to how one thinks the agent should behave.
Designing an agent requires understanding of three things
CHAPTER 2 1 0
Performance measure?? Environment?? Actuators?? Sensors??
Performance measure?? price, quality, appropriateness, effi ciency Environment?? current and future websites, vendors, shippers Actuators?? display to user, follow URL, fill in form Sensors?? HTML pages (text, graphics, scripts) 1 2
The environment largely determines the agent design.
If an agent’s sensors give it access to the complete state of the environment at each point in time, then we say that the task environment is fully observable. An environment might be partially observable because of noisy and inaccurate sensors or because parts of the state are simply missing from the sensor data. (^) For example, a vacuum agent with only a local dirt sensor cannot tell whether there is dirt in other squares, and an automated taxi cannot see what other drivers are thinking.
An agent solving a crossword puzzle by itself is clearly in a single-agent environment, whereas an agent playing chess is in a two agent environment. For example, in chess, the opponent entity B is trying to maximize its performance measure, which, by the rules of chess, minimizes agent A’s performance measure. Thus, chess is a competitive multiagent environment. In the taxi-driving environment, on the other hand, avoiding collisions maximizes the performance measure of all agents, so it is a partially cooperative multiagent environment.