SlideShare a Scribd company logo
1
[Unit 2: Agents]
Artificial Intelligence (CSC 355)
Bal Krishna Subedi
Central Department of Computer Science & Information Technology
Tribhuvan University
Artificial Intelligence Chapter- Agents
Bal Krishna Subedi
2
Intelligent Agents
An Intelligent Agent perceives it environment via sensors and acts rationally upon that
environment with its effectors (actuators). Hence, an agent gets percepts one at a time, and
maps this percept sequence to actions.
Properties of the agent
– Autonomous
– Interacts with other agents plus the environment
– Reactive to the environment
– Pro-active (goal- directed)
What do you mean, sensors/percepts and effectors/actions?
For Humans
– Sensors: Eyes (vision), ears (hearing), skin (touch), tongue (gestation), nose
(olfaction), neuromuscular system (proprioception)
– Percepts:
• At the lowest level – electrical signals from these sensors
• After preprocessing – objects in the visual field (location, textures,
colors, …), auditory streams (pitch, loudness, direction), …
– Effectors: limbs, digits, eyes, tongue, …..
– Actions: lift a finger, turn left, walk, run, carry an object, …
The Point: percepts and actions need to be carefully defined, possibly at different levels of
abstraction
Artificial Intelligence Chapter- Agents
Bal Krishna Subedi
3
A more specific example: Automated taxi driving system
• Percepts: Video, sonar, speedometer, odometer, engine sensors, keyboard input,
microphone, GPS, …
• Actions: Steer, accelerate, brake, horn, speak/display, …
• Goals: Maintain safety, reach destination, maximize profits (fuel, tire wear), obey
laws, provide passenger comfort, …
• Environment: Urban streets, freeways, traffic, pedestrians, weather, customers, …
[ Different aspects of driving may require different types of agent programs!]
Challenge!!
Compare Software with an agent
Compare Human with an agent
Percept: The Agents perceptual inputs at any given instant.
Percept Sequence: The complete history of everything the agent has ever perceived.
The agent function is mathematical concept that maps percept sequence to actions.
The agent function will internally be represented by the agent program.
The agent program is concrete implementation of agent function it runs on the physical
architecture to produce f.
The vacuum-cleaner world: Example of Agent
Environment: square A and B
Percepts: [location and content] E.g. [A, Dirty]
Actions: left, right, suck, and no-op

f : P*  A
Artificial Intelligence Chapter- Agents
Bal Krishna Subedi
4
The concept of rationality
A rational agent is one that does the right thing.
–Every entry in the table is filled out correctly.
What is the right thing?
–Right action is the one that will cause the agent to be most successful.
Therefore we need some way to measure success of an agent. Performance measures are
the criterion for success of an agent behavior.
E.g., performance measure of a vacuum-cleaner agent could be amount of dirt cleaned up,
amount of time taken, amount of electricity consumed, amount of noise generated, etc.
It is better to design Performance measure according to what is wanted in the environment
instead of how the agents should behave.
It is not easy task to choose the performance measure of an agent. For example if the
performance measure for automated vacuum cleaner is “The amount of dirt cleaned within
a certain time” Then a rational agent can maximize this performance by cleaning up the
dirt , then dumping it all on the floor, then cleaning it up again , and so on. Therefore
“How clean the floor is” is better choice for performance measure of vacuum cleaner.
What is rational at a given time depends on four things:
– Performance measure,
– Prior environment knowledge,
– Actions,
– Percept sequence to date (sensors).
–
Definition: A rational agent chooses whichever action maximizes the expected value of the
performance measure given the percept sequence to date and prior environment
knowledge.
Percept sequence Action
[A,Clean] Right
[A, Dirty] Suck
[B, Clean] Left
[B, Dirty] Suck
………. ……
Artificial Intelligence Chapter- Agents
Bal Krishna Subedi
5
Environments
To design a rational agent we must specify its task environment. Task environment means:
PEAS description of the environment:
– Performance
– Environment
– Actuators
– Sensors
Example: Fully automated taxi:
 PEAS description of the environment:
Performance: Safety, destination, profits, legality, comfort
Environment: Streets/freeways, other traffic, pedestrians, weather,, …
Actuators: Steering, accelerating, brake, horn, speaker/display,…
Sensors: Video, sonar, speedometer, engine sensors, keyboard, GPS, …
Agent Types:
Refer Book: AI by Russel and Norvig

More Related Content

ZIP
Ai Slides
PPTX
PDF
Unit2: Agents and Environment
PPT
Agents_AI.ppt
PDF
Reasoning under UncertaintyReasoning under Uncertainty.pdf
PPT
cs480-244444444444444444444444444444.ppt
PPTX
ARTIFICIAL INTELLIGENCE TO GENERATE BEST COMPILER DESIGN
PPT
cs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.ppt
Ai Slides
Unit2: Agents and Environment
Agents_AI.ppt
Reasoning under UncertaintyReasoning under Uncertainty.pdf
cs480-244444444444444444444444444444.ppt
ARTIFICIAL INTELLIGENCE TO GENERATE BEST COMPILER DESIGN
cs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.pptcs480-2.ppt

Similar to Ai unit-2 (20)

PPT
cs480-2.pptssssssssssssssssssssssssssssssssssssssss
PPT
Unit 1.ppt
PPTX
AI_Ch2.pptx
PPTX
Lecture 1 about the Agents in AI & .pptx
PPT
Elective(Intellegent agent )__cha.Two.ppt
PPT
Artificial intelligence introduction
PPTX
Intelligent AGent class.pptx
PPTX
INTELLIGENT AGENTS.pptx
PPTX
Artificial intelligence Agents lecture slides
PDF
Chapter word of it Intelligent Agents.pdf
PDF
ai-slides-1233566181695672-2 (1).pdf
PPT
Artificial intelligence and machine learning
PPT
901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt
PPT
901470_Ch Intelligent agent introduction2.ppt
PPT
introduction to inteligent IntelligentAgent.ppt
PPT
chapter -2 Intelligent Agents power Point .ppt
PPTX
Intelligent Agents, A discovery on How A Rational Agent Acts
PPTX
2. Intelligent_Agents_ShgfutydtfxcfdxdfL.pptx
PPTX
Agents and environments
PPTX
A modern approach to AI AI_02_agents_Strut.pptx
cs480-2.pptssssssssssssssssssssssssssssssssssssssss
Unit 1.ppt
AI_Ch2.pptx
Lecture 1 about the Agents in AI & .pptx
Elective(Intellegent agent )__cha.Two.ppt
Artificial intelligence introduction
Intelligent AGent class.pptx
INTELLIGENT AGENTS.pptx
Artificial intelligence Agents lecture slides
Chapter word of it Intelligent Agents.pdf
ai-slides-1233566181695672-2 (1).pdf
Artificial intelligence and machine learning
901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt
901470_Ch Intelligent agent introduction2.ppt
introduction to inteligent IntelligentAgent.ppt
chapter -2 Intelligent Agents power Point .ppt
Intelligent Agents, A discovery on How A Rational Agent Acts
2. Intelligent_Agents_ShgfutydtfxcfdxdfL.pptx
Agents and environments
A modern approach to AI AI_02_agents_Strut.pptx
Ad

More from Tribhuvan University (20)

PDF
Lecture 7 se
PDF
Lecture 6 se
PDF
Lecture 5 se
PDF
Lecture 3 se
PDF
Lecture 1 se
PDF
Lecture 2 se
PDF
Lecture 5 m&ca
PDF
Lecture 4 m&ca
PDF
Lecture 3 m&ca
PDF
Lecture 2 m&ca
PDF
Lecture 1 m&ca
PDF
Neural network (csc372) lecture 2
PDF
Neural network (csc372) lecture 1
PDF
PDF
PDF
Unit 4(nlp _neural_network)
PDF
PDF
PPT
Knowldge reprsentations
PDF
Logic homework
Lecture 7 se
Lecture 6 se
Lecture 5 se
Lecture 3 se
Lecture 1 se
Lecture 2 se
Lecture 5 m&ca
Lecture 4 m&ca
Lecture 3 m&ca
Lecture 2 m&ca
Lecture 1 m&ca
Neural network (csc372) lecture 2
Neural network (csc372) lecture 1
Unit 4(nlp _neural_network)
Knowldge reprsentations
Logic homework
Ad

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation theory and applications.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Machine learning based COVID-19 study performance prediction
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Approach and Philosophy of On baking technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Understanding_Digital_Forensics_Presentation.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation theory and applications.pdf
Unlocking AI with Model Context Protocol (MCP)
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Programs and apps: productivity, graphics, security and other tools
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
sap open course for s4hana steps from ECC to s4
Approach and Philosophy of On baking technology
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
MIND Revenue Release Quarter 2 2025 Press Release
Empathic Computing: Creating Shared Understanding
Encapsulation_ Review paper, used for researhc scholars
Understanding_Digital_Forensics_Presentation.pptx

Ai unit-2

  • 1. 1 [Unit 2: Agents] Artificial Intelligence (CSC 355) Bal Krishna Subedi Central Department of Computer Science & Information Technology Tribhuvan University
  • 2. Artificial Intelligence Chapter- Agents Bal Krishna Subedi 2 Intelligent Agents An Intelligent Agent perceives it environment via sensors and acts rationally upon that environment with its effectors (actuators). Hence, an agent gets percepts one at a time, and maps this percept sequence to actions. Properties of the agent – Autonomous – Interacts with other agents plus the environment – Reactive to the environment – Pro-active (goal- directed) What do you mean, sensors/percepts and effectors/actions? For Humans – Sensors: Eyes (vision), ears (hearing), skin (touch), tongue (gestation), nose (olfaction), neuromuscular system (proprioception) – Percepts: • At the lowest level – electrical signals from these sensors • After preprocessing – objects in the visual field (location, textures, colors, …), auditory streams (pitch, loudness, direction), … – Effectors: limbs, digits, eyes, tongue, ….. – Actions: lift a finger, turn left, walk, run, carry an object, … The Point: percepts and actions need to be carefully defined, possibly at different levels of abstraction
  • 3. Artificial Intelligence Chapter- Agents Bal Krishna Subedi 3 A more specific example: Automated taxi driving system • Percepts: Video, sonar, speedometer, odometer, engine sensors, keyboard input, microphone, GPS, … • Actions: Steer, accelerate, brake, horn, speak/display, … • Goals: Maintain safety, reach destination, maximize profits (fuel, tire wear), obey laws, provide passenger comfort, … • Environment: Urban streets, freeways, traffic, pedestrians, weather, customers, … [ Different aspects of driving may require different types of agent programs!] Challenge!! Compare Software with an agent Compare Human with an agent Percept: The Agents perceptual inputs at any given instant. Percept Sequence: The complete history of everything the agent has ever perceived. The agent function is mathematical concept that maps percept sequence to actions. The agent function will internally be represented by the agent program. The agent program is concrete implementation of agent function it runs on the physical architecture to produce f. The vacuum-cleaner world: Example of Agent Environment: square A and B Percepts: [location and content] E.g. [A, Dirty] Actions: left, right, suck, and no-op  f : P*  A
  • 4. Artificial Intelligence Chapter- Agents Bal Krishna Subedi 4 The concept of rationality A rational agent is one that does the right thing. –Every entry in the table is filled out correctly. What is the right thing? –Right action is the one that will cause the agent to be most successful. Therefore we need some way to measure success of an agent. Performance measures are the criterion for success of an agent behavior. E.g., performance measure of a vacuum-cleaner agent could be amount of dirt cleaned up, amount of time taken, amount of electricity consumed, amount of noise generated, etc. It is better to design Performance measure according to what is wanted in the environment instead of how the agents should behave. It is not easy task to choose the performance measure of an agent. For example if the performance measure for automated vacuum cleaner is “The amount of dirt cleaned within a certain time” Then a rational agent can maximize this performance by cleaning up the dirt , then dumping it all on the floor, then cleaning it up again , and so on. Therefore “How clean the floor is” is better choice for performance measure of vacuum cleaner. What is rational at a given time depends on four things: – Performance measure, – Prior environment knowledge, – Actions, – Percept sequence to date (sensors). – Definition: A rational agent chooses whichever action maximizes the expected value of the performance measure given the percept sequence to date and prior environment knowledge. Percept sequence Action [A,Clean] Right [A, Dirty] Suck [B, Clean] Left [B, Dirty] Suck ………. ……
  • 5. Artificial Intelligence Chapter- Agents Bal Krishna Subedi 5 Environments To design a rational agent we must specify its task environment. Task environment means: PEAS description of the environment: – Performance – Environment – Actuators – Sensors Example: Fully automated taxi:  PEAS description of the environment: Performance: Safety, destination, profits, legality, comfort Environment: Streets/freeways, other traffic, pedestrians, weather,, … Actuators: Steering, accelerating, brake, horn, speaker/display,… Sensors: Video, sonar, speedometer, engine sensors, keyboard, GPS, … Agent Types: Refer Book: AI by Russel and Norvig