6. CS 561, Lecture 2
How is an Agent different from other
software?
— Agents are autonomous, that is, they act on behalf of
the user
— Agents contain some level of intelligence, from fixed
rules to learning engines that allow them to adapt to
changes in the environment
— Agents have social ability, that is, they communicate
with the user, the system, and other agents as required
— Agents may also cooperate with other agents to carry
out more complex tasks than they themselves can handle
7. CS 561, Lecture 2
How is an Agent different from other
software?
— Agents may migrate from one system to another to
access remote resources or even to meet other agents
9. CS 561, Lecture 2
Structure of Intelligent Agents
— Agent program: the implementation of f : P* ® A, the
agent’s perception-action mapping
function Skeleton-Agent(Percept) returns Action
memory ¬ UpdateMemory(memory, Percept)
Action ¬ ChooseBestAction(memory)
memory ¬ UpdateMemory(memory, Action)
return Action
— Architecture: a device that can execute the agent
program (e.g., general-purpose computer, specialized
device, etc.)
10. Vacuum-cleaner world
Artificial Intelligence a modern approach
12
— Percepts: location (A or B) and contents (dirt or not),
e.g., [A,Dirty]
— Actions: Left, Right, Suck, NoOp
— Agent’s function à look-up table
¡ For many agents this is a very large table
14. Rational agents
Artificial Intelligence a modern approach
16
• Rationality – Good behavior
1. Performance measuring success
2. Agents prior knowledge of environment
3. Actions that agent can perform
4. Agent’s percept sequence to date
• Rational Agent: For each possible percept sequence, a
rational agent should select an action that is expected to
maximize its performance measure, given the evidence
provided by the percept sequence and whatever built-in
knowledge the agent has.
15. Back to vacuum cleaner agent
Artificial Intelligence a modern approach
17
16. Back to vacuum cleaner agent
Artificial Intelligence a modern approach
18
18. Rationality
Artificial Intelligence a modern approach
21
— Rational is different from omniscience (all knowing
with infinite knowledge)
¡ Percepts may not supply all relevant information
¡ E.g., in card game, don’t know cards of others.
— Rational is different from being perfect
¡ Rationality maximizes expected outcome
¡ Perfection (omniscience) maximizes actual outcome.
19. The Right Thing = The Rational Action
— Rational Action: The action that maximizes the expected
value of the performance measure given the percept sequence
to date
¡ Rational = Best Yes, to the best of its knowledge
¡ Rational = Optimal Yes, to the best of its abilities (constraints).
¡ Rational ¹ Omniscience
¡ Rational ¹ Successful
20. Autonomy in Agents
— Extremes
¡ No autonomy – ignores environment/data
¡ Complete autonomy – must act randomly/no program
— Example: baby learning to crawl
— Ideal: design agents to have some autonomy
¡ Possibly become more autonomous with experience
The autonomy of an agent is the extent to which its
behaviour is determined by its own experience,
rather than knowledge of designer.
21. Specifying the task environment (PEAS)
Artificial Intelligence a modern approach
24
22. Specifying the task environment (PEAS)
Artificial Intelligence a modern approach
25
23. PEAS – vacuum cleaner
Artificial Intelligence a modern approach
26
38. PEAS - Part-picking robot
Artificial Intelligence a modern approach
41
— Performance measure: Percentage of parts in correct bins
— Environment: Conveyor belt with parts, bins
— Actuators: Jointed arm and hand
— Sensors: Camera, joint angle sensors
39. PEAS - Interactive English tutor
Artificial Intelligence a modern approach
42
40. PEAS - Interactive English tutor
Artificial Intelligence a modern approach
43
— Performance measure: Maximize student's score on
test
— Environment: Set of students
— Actuators: Screen display (exercises, suggestions,
corrections)
— Sensors: Keyboard