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
PPT
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
PPT
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
PDF
Artificial Intelligence Course of BIT Unit 2
PPTX
A modern approach to AI AI_02_agents_Strut.pptx
PPT
Artificial Intelligence Chapter two agents
PPT
Unit 1.ppt
Ai Slides
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Artificial Intelligence Course of BIT Unit 2
A modern approach to AI AI_02_agents_Strut.pptx
Artificial Intelligence Chapter two agents
Unit 1.ppt

Similar to Ai unit-2 (20)

PDF
Week 2.pdf
PDF
Reasoning under UncertaintyReasoning under Uncertainty.pdf
PPT
Lecture 02-agents
PPTX
AI_Lec1.pptx ist step to enter in AI field
PDF
Unit2: Agents and Environment
PPTX
Introduction To Artificial Intelligence
PPTX
Introduction To Artificial Intelligence
PPT
Chapter-2 Intelligent Agent.ppt.........
PPT
Artificial intelligence introduction
PDF
Understanding Intelligent Agents: Concepts, Structure, and Applications
PPT
m2-agents.ppt
PDF
Artificial Intelligence chapter 1 and 2(1).pdf
PPT
Elective(Intellegent agent )__cha.Two.ppt
PDF
ai-slides-1233566181695672-2 (1).pdf
PPTX
Intelligence Agent - Artificial Intelligent (AI)
PPTX
AI_Ch2.pptx
PPT
Artificial intelligence and machine learning
PPT
901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt
PPT
901470_Ch Intelligent agent introduction2.ppt
PPT
Unit 1.ppt
Week 2.pdf
Reasoning under UncertaintyReasoning under Uncertainty.pdf
Lecture 02-agents
AI_Lec1.pptx ist step to enter in AI field
Unit2: Agents and Environment
Introduction To Artificial Intelligence
Introduction To Artificial Intelligence
Chapter-2 Intelligent Agent.ppt.........
Artificial intelligence introduction
Understanding Intelligent Agents: Concepts, Structure, and Applications
m2-agents.ppt
Artificial Intelligence chapter 1 and 2(1).pdf
Elective(Intellegent agent )__cha.Two.ppt
ai-slides-1233566181695672-2 (1).pdf
Intelligence Agent - Artificial Intelligent (AI)
AI_Ch2.pptx
Artificial intelligence and machine learning
901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt901470_Ch2.ppt
901470_Ch Intelligent agent introduction2.ppt
Unit 1.ppt
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)

PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
Human Computer Interaction Miterm Lesson
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PPTX
Microsoft User Copilot Training Slide Deck
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
A symptom-driven medical diagnosis support model based on machine learning te...
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
LMS bot: enhanced learning management systems for improved student learning e...
PDF
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PPTX
Internet of Everything -Basic concepts details
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Human Computer Interaction Miterm Lesson
MuleSoft-Compete-Deck for midddleware integrations
EIS-Webinar-Regulated-Industries-2025-08.pdf
Rapid Prototyping: A lecture on prototyping techniques for interface design
Microsoft User Copilot Training Slide Deck
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Build Real-Time ML Apps with Python, Feast & NoSQL
A symptom-driven medical diagnosis support model based on machine learning te...
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
LMS bot: enhanced learning management systems for improved student learning e...
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
Early detection and classification of bone marrow changes in lumbar vertebrae...
Internet of Everything -Basic concepts details

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