SlideShare une entreprise Scribd logo
1  sur  43
Télécharger pour lire hors ligne
Unit 2: Agents and Environment LH 7
Presented By : Tekendra Nath Yogi
Tekendranath@gmail.com
College Of Applied Business And Technology
Contd…
• Contents:
– 2.1 Agent, Rational agent, and Intelligent Agent
– 2.2 Relationship between agents and environments
– 2.3 Environments and its properties(Fully observable vs. partially observable,
single agent vs. multi-agent, deterministic vs. stochastic, episodic vs.
sequential, static vs. dynamic, discrete vs. continuous, known vs. unknown)
– 2.4 Agent structures
• 2.4.1 Simple reflex agents
• 2.4.2 Model-based reflex agents
• 2.4.3 Goal-based agents
• 2.4.4 Utility-based agents
• 2.4.5 Learning agents
– 2.5 Performance evaluation of agents: PEAS description
212/2/2018 By: Tekendra Nath Yogi
Agent, Rational agent, intelligent agent
• Agent:
– An agent is just something that acts.
• Rational Agent:
– A Rational Agent is one that acts so as to achieve the best outcome or,
when there is uncertainty, the best expected outcome.
• I.e., one that behaves as well as possible.
– How well an agent can behave depends on the nature of the
environment; some environments are more difficult than others.
312/2/2018 By: Tekendra Nath Yogi
Contd…
• Intelligent agent:
– A Successful system can be called intelligent agent.
– Fundamental faculties of intelligence are: Acting, Sensing, Understanding
,Reasoning, Learning
– In order to act intelligent agent must sense. Blind actions is not characterization of
intelligence. Understanding is essential to interpret the sensory percepts and decide
on an action.
– Therefore, Intelligent agent: Must act, Must sense, Must be autonomous, Must be rational.
– Note: intelligent agent means it does things based on reasoning, while rational agent
means it does the best action (or reaction) for a given situation.
– However, Throughout this course we will use the term agent, rational agent and
intelligence agent synonymously.
412/2/2018 By: Tekendra Nath Yogi
Basic terminology
• Percept: Refer to the agent's perceptual inputs at any given instant.
• percept sequence:
– An agent's percept sequence is the complete history of everything the agent has
ever perceived.
– In general, an agent's choice of action at any given instant can depend on the entire
percept sequence observed to date.
• Agent Function:
– The agent function is mathematical concept that maps percept sequence to
actions(agent‟s behavior).
f : P* A
• Agent Program: The agent program is a concrete implementation of agent function
,running within some physical architecture to produce f.
512/2/2018 By: Tekendra Nath Yogi
What do you mean, sensors, percepts effectors and actions?
• For Humans
– Sensors:
• Eyes (vision), ears (hearing), skin (touch), tongue (gestation), nose
(olfaction).
– Percepts:
• At the lowest level – electrical signals from these sensors
• After preprocessing – objects in the visual field, auditory streams .
– Effectors:
• limbs, digits, eyes, tongue, …..
– Actions:
• lift a finger, turn left, walk, run, carry an object, …
612/2/2018 By: Tekendra Nath Yogi
Agents and Environments
• An agent is just something that acts.
• To act an agent perceives its environment via sensors and acts rationally upon that
environment with its effectors (actuators).
• This simple idea is illustrated in the following figure:
Fig: Agents interact with environments through sensors and actuators
Presented By: Tekendra Nath Yogi 7
Contd…
• Examples of Agent:
– A human agent
• has eyes, ears, and other organs for sensors and hands, legs, mouth, and
other body parts for actuators.
– A robotic agent:
• might have cameras and infrared range finders for sensors and various
motors for actuators.
– A 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.
812/2/2018 By: Tekendra Nath Yogi
Contd…
• Properties of the agent:
– An agent is just something that act. Of course, all computer programs
do something, but computer agent are expected to do more:
• Operate autonomously i.e., can work on their own.
• Perceive and react to their environment.
• Pro- active(i.e., should be goal oriented)
• capable of taking on another„s goal.
• They are persistent over a prolonged time period. And
• Adapt to change i.e., They should have ability to learn.
912/2/2018 By: Tekendra Nath Yogi
Contd..
The vacuum-cleaner world: Example of Agent
• To illustrate the intelligent agent, a very simple example-the vacuum-cleaner world
is used as shown in Figure below:
• This world is so simple that we can describe
everything that happens; it's also a made-up
world, so we can invent many variations.
• This particular world has just two locations: squares A and B.
– I.e. Environment: square A and B
• The vacuum agent perceives which square it is in and whether there is dirt in the
square.
– i.e., Percepts: [location and content] E.g. [A, Dirty]
• It can choose to move left, move right, suck up the dirt, or do nothing.
– i.e., Actions: left, right, suck, and no-op
Presented By: Tekendra Nath Yogi 10
Contd..
The vacuum-cleaner world: Example of Agent
• One very simple agent function is the following:
– if the current square is dirty, then suck, otherwise move to the other square.
• A partial tabulation of agent function is shown in Table below:
• A simple agent program for this agent function is given in the next
slide.
Presented By: Tekendra Nath Yogi 11
Contd..
The vacuum-cleaner world: Example of Agent
• Function 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
Presented By: Tekendra Nath Yogi 12
Good Behavior: The concept of rationality
• A rational agent is one that does the right thing i.e., one that behaves as
well as possible.
• Right thing is the one that will cause the agent to be most successful.
– For example: When an agent is in an environment, it generates a sequence of
actions according to the percepts it receives. This sequence of actions causes
the environment to go through a sequence of states. If the sequence is
desirable, then the agent has performed well.
• This notion of desirability is captured by a performance evaluation.
Presented By: Tekendra Nath Yogi 13
Contd.. Performance Measures
• Evaluates any given sequence of environment states and determine the success of
the agent.
• But, It is not easy task to choose the performance measure of an agent. Because the
performance measure doesn‟t depends on the task and agent but it depends on the
circumstances.
• Therefore, It is better to design Performance measure according to what is wanted in
the environment instead of how the agents should behave.
– E.g., The possible 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.
– But 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.
– So, “How clean the floor is” is better choice for performance measure of vacuum cleaner.
Presented By: Tekendra Nath Yogi
14
Contd…
• What is Rationality at any given time depends on four things:
– The performance measure that define the criterion of success.
– The agent‟s prior knowledge of the environment
– The actions that the agent can perform
– The agent‟s percept sequence to date.
Presented By: Tekendra Nath Yogi 15
Omniscience Versus rationality
• An omniscient agent knows the actual outcome of its actions and can act
accordingly; but omniscience is impossible in reality.
• Rationality is not the same as perfection. Rationality maximizes expected
performance, while perfection maximizes actual performance.
– For Example: I am walking along the Ring road one day and I see an old
friend across the road. There is no traffic nearby and I'm not otherwise
engaged, so, being rational, I start to cross the road. Meanwhile, at 33,000
feet, a cargo door falls off a passing airliner, and before I make it to the
other side of the road I am flattened.
Presented By: Tekendra Nath Yogi 16
Environments
• The first step to design a rational agent is the specification of its task
environment.
• Task environments are essentially the „problems‟ to which rational agents are
the „solutions‟.
• Generally task environments are specified by using the following four
parameter
– Performance
– Environment
– Actuators
– Sensors
• Therefore, task environment is also called PEAS description of the
environment.
Presented By: Tekendra Nath Yogi 17
Contd…
• Example :PEAS description of the task environment for an Fully automated taxi
– Performance: The following can be the possible measures for the performance of
automated taxi:
• Getting to the correct destination(destination).
• Minimizing the fuel consumption and wear and tear(damage that naturally occurs
as a result of aging), and Minimizing the trip time or cost( Profit)
• Minimizing the violations of traffic laws and disturbances to other
drivers(legality)
• Maximizing the safety and passenger comfort ( Safety and comfort )
– Environment: This is the driving environment that the taxi will face
• Streets/freeways, other traffic, pedestrians, weather(rain , snow,..etc), police cars,
etc.
1812/2/2018 By: Tekendra Nath Yogi
Contd…
• Actuators: The Actuators for an automated taxi include those available to a
human driver:
– Steering, accelerator, brake, horn, speaker/display,…
• Sensors: The basic sensors for the taxi includes :
– One or more controllable video cameras to see the road
– Infrared and sonar sensors to detect the distances to other cars and obstacles
– To avoid speeding tickets, the taxi should have a speedometers
– To control the vehicle on the curve it should have an accelerometer
– To determine the mechanical state of the vehicle , it should have engine sensors.
– It should have GPS so that it doesn‟t get lost.
– It should have keyboard or microphone for the passenger to request the destination.
1912/2/2018 By: Tekendra Nath Yogi
Properties of environment (classes of environment)
• Following are the dimensions along which environment can be categorized:
– Fully observable versus partially observable
– Single agent versus multi-agent
– Deterministic versus stochastic
– Episodic versus sequential
– Static versus dynamic
– Discrete versus continuous
– Known versus unknown.
2012/2/2018 By: Tekendra Nath Yogi
Contd…
• Fully observable versus partially observable:
– 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.
• For example: chess playing.
– An environment might be partially observable because of noisy and
inaccurate sensors.
• For example:
– a vacuum agent with only a local dirt sensor cannot tell whether there
is dirt in other squares.
2112/2/2018 By: Tekendra Nath Yogi
Contd…
• Single agent vs. multi-agent:
• Example: 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.
• Multi-agent environment can be:
– Competitive: 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 multi-agent
environment.
– Cooperative: In the taxi-driving environment, on the other hand, avoiding
collisions maximizes the performance measure of all agents, so it is a partially
cooperative multi-agent environment.
2212/2/2018 By: Tekendra Nath Yogi
Contd…
• Deterministic vs. stochastic:
– If the next state of the environment is completely determined by the
current state and the action executed by the agent, then we say the
environment is deterministic; otherwise, it is stochastic.
– The simple vacuum world is deterministic where as the Taxi driving is
clearly stochastic in this sense, because one can never predict the
behavior of traffic exactly; moreover, one's tires blow out and one's
engine seizes up without warning.
2312/2/2018 By: Tekendra Nath Yogi
Contd…
• Episodic versus sequential:
– In episodic environments, the choice of action in each episode depends
only on the episode itself i.e., the next episode does not depend on the
actions taken in previous episodes.
• For example an agent that has to spot defective parts on an assembly line
bases each decision on the current part, regardless of previous decisions;
moreover, the current decision doesn't affect whether the next part is
defective.
– In sequential environments, on the other hand, the current decision
could affect all future decisions.
• For example: Chess and taxi driving are sequential
2412/2/2018 By: Tekendra Nath Yogi
Contd…
• Static vs. dynamic:
– If the environment can change while an agent is deliberating, then the
environment is dynamic for that agent; otherwise, it is static.
– Static environments are easy to deal with because the agent need not
keep looking at the world while it is deciding on an action, nor need it
worry about the passage of time.
• For Example: Crossword puzzles are static.
– Dynamic environments, on the other hand, are continuously asking the
agent what it wants to do; if it hasn't decided yet, that counts as deciding
to do nothing.
• For example: Taxi driving is dynamic because the other cars and the taxi
itself keep moving while the driving algorithm dithers about what to do next.
2512/2/2018 By: Tekendra Nath Yogi
Contd…
• Discrete vs. continuous:
– The discrete/continuous distinction can be applied to the state of the
environment, to the way time is handled, and to the percepts and
actions of the agent.
• For example, a discrete-state environment such as a chess game
has a finite number of distinct states. Chess also has a discrete set
of percepts and actions.
• Example of continuous state environment includes Taxi driving :
the speed and location of the taxi sweep through a range of
continuous values and do so smoothly over time.
2612/2/2018 By: Tekendra Nath Yogi
Contd…
• Known versus unknown:
– This distinction refers not to the environment itself but to the agent‟s
state of knowledge about the environment.
– In a known environment, the outcomes for all actions are given.
– Obviously, if the environment is unknown, the agent will have to learn
how it works in order to make good decisions.
2712/2/2018 By: Tekendra Nath Yogi
The structure of the agents
• Agent‟s structure can be viewed as:
– Agent = Architecture + Agent Program
• Architecture = the machinery that an agent executes on.
• Agent Program = an implementation of an agent function.
Presented By: Tekendra Nath Yogi 28
Contd…
• Agents are grouped into five classes based on their degree of
perceived intelligence and capability:
– simple reflex agents
– model-based reflex agents
– goal-based agents
– utility-based agents
– learning agents
2912/2/2018 By: Tekendra Nath Yogi
Contd…
• Simple reflex agents:
– Simple reflex agents act only on the basis of the current percept,
ignoring the rest of the percept history.
• For example: vacuum cleaner agent.
– First of all the simple reflex agent perceives the percepts from the
environment and the agent interpret input to generate an abstract state
description of the current state from the percept.
– This generated state description is then matched against the condition
part of the rules in the rule set.
– Then it act according to a first rule whose condition matches the current
state , as defined by the percept.
3012/2/2018 By: Tekendra Nath Yogi
Contd…
• The following figure shows the structure of the simple reflex agent
Fig: simple reflex agent
Presented By: Tekendra Nath Yogi 31
Contd…
• Characteristics:
– simple, but very limited intelligence.
– The simple reflex agent work only if the environment is fully
observable. Even a little bit of unobservability can cause serious
trouble.
– Lacking history, easily get stuck in infinite loops
3212/2/2018 By: Tekendra Nath Yogi
Contd…
• Model Based Reflex agent:
• Maintain a internal state to keep track of part of world it can not see
now.
• Internal state is based on percept history and keeps two kinds of
knowledge:
• how the world evolves independently of the agent
• How the agent's own actions affect the world
• Then it combines current percept with the old internal state to generate
the updated description of the current state.
• It then chooses an action in the same way as reflex agent.
3312/2/2018 By: Tekendra Nath Yogi
Contd…
• The following figure shows the structure of the model based reflex agent
Fig: Model based reflex agent
3412/2/2018 By: Tekendra Nath Yogi
Contd…
• Goal Based agent:
– Goal-based agents further expand on the capabilities of the model-
based agents, by using "goal" information.
– Goal information describes situations that are desirable. This allows the
agent a way to choose among multiple possibilities, selecting the one
which reaches a goal state.
– It is more flexible because the knowledge that supports its decisions is
represented explicitly and can be modified.
3512/2/2018 By: Tekendra Nath Yogi
Contd…
• The following figure shows the structure of the goal based agent
Fig: Goal base agent
3612/2/2018 By: Tekendra Nath Yogi
Contd…
• Utility based agent:
– Goal-based agents only distinguish between goal states and non-goal
states.
– It is possible to define a measure of how desirable a particular state is.
This measure can be obtained through the use of a utility
function which maps a state to a measure of the utility of the state.
– A more general performance (for example, speed and safety)measure
should allow a comparison of different world states according to
exactly how happy they would make the agent. The term utility can be
used to describe how "happy" the agent is.
3712/2/2018 By: Tekendra Nath Yogi
Contd…
• The following figure shows the structure of the utility based agent
Fig: utility base agent
3812/2/2018 By: Tekendra Nath Yogi
Contd…
• Learning agents: A learning agent can be divided into four
conceptual components:
– "learning element", which is responsible for making improvements
– "performance element“ (entire agent), which is responsible for selecting
external actions. i.e., it takes in percepts and decides on actions.
– The learning element uses feedback from the "critic" on how the agent is
doing and determines how the performance element should be modified to
do better in the future.
– The last component of the learning agent is the "problem generator". It is
responsible for suggesting actions that will lead to new and informative
experiences.
3912/2/2018 By: Tekendra Nath Yogi
Contd…
• following figure shows the structure of the Learning agent
Fig: Learning base agent
4012/2/2018 By: Tekendra Nath Yogi
Applications of the agents
• Intelligent agents are applied as automated online assistants, where they
function to perceive the needs of customers in order to perform
individualized customer service.
• Such an agent may basically consist of a dialog system, as well an expert
system to provide specific expertise to the user.
• They can also be used to optimize coordination of human groups online.
4112/2/2018 By: Tekendra Nath Yogi
Homework
• Define in your own words the following terms: agent, agent function, agent
program, rationality, autonomy, reflex agent, model-based agent, goal-
based agent, utility-based agent, learning agent.
• Both the performance measure and the utility function measure how well
an agent is doing. Explain the difference between the two
• What is the differences between agent functions and agent programs.
• What an agent comprises of?
• What are the various task environments?
12/2/2018 By: Tekendra Nath Yogi 42
Thank You !
43By: Tekendra Nath Yogi12/2/2018

Contenu connexe

Tendances

Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 
Artificial Intelligence PEAS
Artificial Intelligence PEASArtificial Intelligence PEAS
Artificial Intelligence PEASMUDASIRABBAS9
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Garry D. Lasaga
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
2-Agents- Artificial Intelligence
2-Agents- Artificial Intelligence2-Agents- Artificial Intelligence
2-Agents- Artificial IntelligenceMhd Sb
 
4 informed-search
4 informed-search4 informed-search
4 informed-searchMhd Sb
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchTekendra Nath Yogi
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prologHarry Potter
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Artificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe gameArtificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe gamemanika kumari
 
Types of environment in Artificial Intelligence
Types of environment in Artificial IntelligenceTypes of environment in Artificial Intelligence
Types of environment in Artificial IntelligenceNoman Ullah Khan
 
Chapter 2 intelligent agents
Chapter 2 intelligent agentsChapter 2 intelligent agents
Chapter 2 intelligent agentsLukasJohnny
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search techniqueKapil Dahal
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Yasir Khan
 

Tendances (20)

Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Adversarial search
Adversarial search Adversarial search
Adversarial search
 
Artificial Intelligence PEAS
Artificial Intelligence PEASArtificial Intelligence PEAS
Artificial Intelligence PEAS
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
2-Agents- Artificial Intelligence
2-Agents- Artificial Intelligence2-Agents- Artificial Intelligence
2-Agents- Artificial Intelligence
 
4 informed-search
4 informed-search4 informed-search
4 informed-search
 
Unit3:Informed and Uninformed search
Unit3:Informed and Uninformed searchUnit3:Informed and Uninformed search
Unit3:Informed and Uninformed search
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prolog
 
Intelligent agents
Intelligent agentsIntelligent agents
Intelligent agents
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
tic-tac-toe: Game playing
 tic-tac-toe: Game playing tic-tac-toe: Game playing
tic-tac-toe: Game playing
 
Artificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe gameArtificial Intelligence- TicTacToe game
Artificial Intelligence- TicTacToe game
 
Types of environment in Artificial Intelligence
Types of environment in Artificial IntelligenceTypes of environment in Artificial Intelligence
Types of environment in Artificial Intelligence
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
Planning
PlanningPlanning
Planning
 
Chapter 2 intelligent agents
Chapter 2 intelligent agentsChapter 2 intelligent agents
Chapter 2 intelligent agents
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search technique
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 

Similaire à Unit2: Agents and Environment

Similaire à Unit2: Agents and Environment (20)

Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
Lecture 2 agent and environment
Lecture 2   agent and environmentLecture 2   agent and environment
Lecture 2 agent and environment
 
m2-agents.pptx
m2-agents.pptxm2-agents.pptx
m2-agents.pptx
 
Lecture 1 about the Agents in AI & .pptx
Lecture 1 about the Agents in AI & .pptxLecture 1 about the Agents in AI & .pptx
Lecture 1 about the Agents in AI & .pptx
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
 
1.1 What are Agent and Environment.pptx
1.1 What are Agent and Environment.pptx1.1 What are Agent and Environment.pptx
1.1 What are Agent and Environment.pptx
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Ai unit-2
Ai unit-2Ai unit-2
Ai unit-2
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 
agents.pdf
agents.pdfagents.pdf
agents.pdf
 
AI Basic.pptx
AI Basic.pptxAI Basic.pptx
AI Basic.pptx
 
Lec 2 agents
Lec 2 agentsLec 2 agents
Lec 2 agents
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
INTELLIGENT AGENTS.pptx
INTELLIGENT AGENTS.pptxINTELLIGENT AGENTS.pptx
INTELLIGENT AGENTS.pptx
 
Week 2.pdf
Week 2.pdfWeek 2.pdf
Week 2.pdf
 
M2 agents
M2 agentsM2 agents
M2 agents
 
CS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptxCS Artificial intelligence chapter 2.pptx
CS Artificial intelligence chapter 2.pptx
 
Ai Slides
Ai SlidesAi Slides
Ai Slides
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 

Plus de Tekendra Nath Yogi

BIM Data Mining Unit5 by Tekendra Nath Yogi
 BIM Data Mining Unit5 by Tekendra Nath Yogi BIM Data Mining Unit5 by Tekendra Nath Yogi
BIM Data Mining Unit5 by Tekendra Nath YogiTekendra Nath Yogi
 
BIM Data Mining Unit4 by Tekendra Nath Yogi
 BIM Data Mining Unit4 by Tekendra Nath Yogi BIM Data Mining Unit4 by Tekendra Nath Yogi
BIM Data Mining Unit4 by Tekendra Nath YogiTekendra Nath Yogi
 
BIM Data Mining Unit3 by Tekendra Nath Yogi
 BIM Data Mining Unit3 by Tekendra Nath Yogi BIM Data Mining Unit3 by Tekendra Nath Yogi
BIM Data Mining Unit3 by Tekendra Nath YogiTekendra Nath Yogi
 
BIM Data Mining Unit2 by Tekendra Nath Yogi
 BIM Data Mining Unit2 by Tekendra Nath Yogi BIM Data Mining Unit2 by Tekendra Nath Yogi
BIM Data Mining Unit2 by Tekendra Nath YogiTekendra Nath Yogi
 
BIM Data Mining Unit1 by Tekendra Nath Yogi
 BIM Data Mining Unit1 by Tekendra Nath Yogi BIM Data Mining Unit1 by Tekendra Nath Yogi
BIM Data Mining Unit1 by Tekendra Nath YogiTekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath YogiTekendra Nath Yogi
 
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath YogiB. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath YogiTekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath YogiTekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath YogiTekendra Nath Yogi
 

Plus de Tekendra Nath Yogi (20)

Unit9:Expert System
Unit9:Expert SystemUnit9:Expert System
Unit9:Expert System
 
Unit7: Production System
Unit7: Production SystemUnit7: Production System
Unit7: Production System
 
Unit8: Uncertainty in AI
Unit8: Uncertainty in AIUnit8: Uncertainty in AI
Unit8: Uncertainty in AI
 
Unit5: Learning
Unit5: LearningUnit5: Learning
Unit5: Learning
 
Unit1: Introduction to AI
Unit1: Introduction to AIUnit1: Introduction to AI
Unit1: Introduction to AI
 
Unit 6: Application of AI
Unit 6: Application of AIUnit 6: Application of AI
Unit 6: Application of AI
 
Unit10
Unit10Unit10
Unit10
 
Unit9
Unit9Unit9
Unit9
 
Unit8
Unit8Unit8
Unit8
 
Unit7
Unit7Unit7
Unit7
 
BIM Data Mining Unit5 by Tekendra Nath Yogi
 BIM Data Mining Unit5 by Tekendra Nath Yogi BIM Data Mining Unit5 by Tekendra Nath Yogi
BIM Data Mining Unit5 by Tekendra Nath Yogi
 
BIM Data Mining Unit4 by Tekendra Nath Yogi
 BIM Data Mining Unit4 by Tekendra Nath Yogi BIM Data Mining Unit4 by Tekendra Nath Yogi
BIM Data Mining Unit4 by Tekendra Nath Yogi
 
BIM Data Mining Unit3 by Tekendra Nath Yogi
 BIM Data Mining Unit3 by Tekendra Nath Yogi BIM Data Mining Unit3 by Tekendra Nath Yogi
BIM Data Mining Unit3 by Tekendra Nath Yogi
 
BIM Data Mining Unit2 by Tekendra Nath Yogi
 BIM Data Mining Unit2 by Tekendra Nath Yogi BIM Data Mining Unit2 by Tekendra Nath Yogi
BIM Data Mining Unit2 by Tekendra Nath Yogi
 
BIM Data Mining Unit1 by Tekendra Nath Yogi
 BIM Data Mining Unit1 by Tekendra Nath Yogi BIM Data Mining Unit1 by Tekendra Nath Yogi
BIM Data Mining Unit1 by Tekendra Nath Yogi
 
Unit6
Unit6Unit6
Unit6
 
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 5 By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath YogiB. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Lab By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
 
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
 

Dernier

Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.Nitya salvi
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡anilsa9823
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPirithiRaju
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsSumit Kumar yadav
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticssakshisoni2385
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPirithiRaju
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 

Dernier (20)

Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 

Unit2: Agents and Environment

  • 1. Unit 2: Agents and Environment LH 7 Presented By : Tekendra Nath Yogi Tekendranath@gmail.com College Of Applied Business And Technology
  • 2. Contd… • Contents: – 2.1 Agent, Rational agent, and Intelligent Agent – 2.2 Relationship between agents and environments – 2.3 Environments and its properties(Fully observable vs. partially observable, single agent vs. multi-agent, deterministic vs. stochastic, episodic vs. sequential, static vs. dynamic, discrete vs. continuous, known vs. unknown) – 2.4 Agent structures • 2.4.1 Simple reflex agents • 2.4.2 Model-based reflex agents • 2.4.3 Goal-based agents • 2.4.4 Utility-based agents • 2.4.5 Learning agents – 2.5 Performance evaluation of agents: PEAS description 212/2/2018 By: Tekendra Nath Yogi
  • 3. Agent, Rational agent, intelligent agent • Agent: – An agent is just something that acts. • Rational Agent: – A Rational Agent is one that acts so as to achieve the best outcome or, when there is uncertainty, the best expected outcome. • I.e., one that behaves as well as possible. – How well an agent can behave depends on the nature of the environment; some environments are more difficult than others. 312/2/2018 By: Tekendra Nath Yogi
  • 4. Contd… • Intelligent agent: – A Successful system can be called intelligent agent. – Fundamental faculties of intelligence are: Acting, Sensing, Understanding ,Reasoning, Learning – In order to act intelligent agent must sense. Blind actions is not characterization of intelligence. Understanding is essential to interpret the sensory percepts and decide on an action. – Therefore, Intelligent agent: Must act, Must sense, Must be autonomous, Must be rational. – Note: intelligent agent means it does things based on reasoning, while rational agent means it does the best action (or reaction) for a given situation. – However, Throughout this course we will use the term agent, rational agent and intelligence agent synonymously. 412/2/2018 By: Tekendra Nath Yogi
  • 5. Basic terminology • Percept: Refer to the agent's perceptual inputs at any given instant. • percept sequence: – An agent's percept sequence is the complete history of everything the agent has ever perceived. – In general, an agent's choice of action at any given instant can depend on the entire percept sequence observed to date. • Agent Function: – The agent function is mathematical concept that maps percept sequence to actions(agent‟s behavior). f : P* A • Agent Program: The agent program is a concrete implementation of agent function ,running within some physical architecture to produce f. 512/2/2018 By: Tekendra Nath Yogi
  • 6. What do you mean, sensors, percepts effectors and actions? • For Humans – Sensors: • Eyes (vision), ears (hearing), skin (touch), tongue (gestation), nose (olfaction). – Percepts: • At the lowest level – electrical signals from these sensors • After preprocessing – objects in the visual field, auditory streams . – Effectors: • limbs, digits, eyes, tongue, ….. – Actions: • lift a finger, turn left, walk, run, carry an object, … 612/2/2018 By: Tekendra Nath Yogi
  • 7. Agents and Environments • An agent is just something that acts. • To act an agent perceives its environment via sensors and acts rationally upon that environment with its effectors (actuators). • This simple idea is illustrated in the following figure: Fig: Agents interact with environments through sensors and actuators Presented By: Tekendra Nath Yogi 7
  • 8. Contd… • Examples of Agent: – A human agent • has eyes, ears, and other organs for sensors and hands, legs, mouth, and other body parts for actuators. – A robotic agent: • might have cameras and infrared range finders for sensors and various motors for actuators. – A 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. 812/2/2018 By: Tekendra Nath Yogi
  • 9. Contd… • Properties of the agent: – An agent is just something that act. Of course, all computer programs do something, but computer agent are expected to do more: • Operate autonomously i.e., can work on their own. • Perceive and react to their environment. • Pro- active(i.e., should be goal oriented) • capable of taking on another„s goal. • They are persistent over a prolonged time period. And • Adapt to change i.e., They should have ability to learn. 912/2/2018 By: Tekendra Nath Yogi
  • 10. Contd.. The vacuum-cleaner world: Example of Agent • To illustrate the intelligent agent, a very simple example-the vacuum-cleaner world is used as shown in Figure below: • This world is so simple that we can describe everything that happens; it's also a made-up world, so we can invent many variations. • This particular world has just two locations: squares A and B. – I.e. Environment: square A and B • The vacuum agent perceives which square it is in and whether there is dirt in the square. – i.e., Percepts: [location and content] E.g. [A, Dirty] • It can choose to move left, move right, suck up the dirt, or do nothing. – i.e., Actions: left, right, suck, and no-op Presented By: Tekendra Nath Yogi 10
  • 11. Contd.. The vacuum-cleaner world: Example of Agent • One very simple agent function is the following: – if the current square is dirty, then suck, otherwise move to the other square. • A partial tabulation of agent function is shown in Table below: • A simple agent program for this agent function is given in the next slide. Presented By: Tekendra Nath Yogi 11
  • 12. Contd.. The vacuum-cleaner world: Example of Agent • Function 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 Presented By: Tekendra Nath Yogi 12
  • 13. Good Behavior: The concept of rationality • A rational agent is one that does the right thing i.e., one that behaves as well as possible. • Right thing is the one that will cause the agent to be most successful. – For example: When an agent is in an environment, it generates a sequence of actions according to the percepts it receives. This sequence of actions causes the environment to go through a sequence of states. If the sequence is desirable, then the agent has performed well. • This notion of desirability is captured by a performance evaluation. Presented By: Tekendra Nath Yogi 13
  • 14. Contd.. Performance Measures • Evaluates any given sequence of environment states and determine the success of the agent. • But, It is not easy task to choose the performance measure of an agent. Because the performance measure doesn‟t depends on the task and agent but it depends on the circumstances. • Therefore, It is better to design Performance measure according to what is wanted in the environment instead of how the agents should behave. – E.g., The possible 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. – But 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. – So, “How clean the floor is” is better choice for performance measure of vacuum cleaner. Presented By: Tekendra Nath Yogi 14
  • 15. Contd… • What is Rationality at any given time depends on four things: – The performance measure that define the criterion of success. – The agent‟s prior knowledge of the environment – The actions that the agent can perform – The agent‟s percept sequence to date. Presented By: Tekendra Nath Yogi 15
  • 16. Omniscience Versus rationality • An omniscient agent knows the actual outcome of its actions and can act accordingly; but omniscience is impossible in reality. • Rationality is not the same as perfection. Rationality maximizes expected performance, while perfection maximizes actual performance. – For Example: I am walking along the Ring road one day and I see an old friend across the road. There is no traffic nearby and I'm not otherwise engaged, so, being rational, I start to cross the road. Meanwhile, at 33,000 feet, a cargo door falls off a passing airliner, and before I make it to the other side of the road I am flattened. Presented By: Tekendra Nath Yogi 16
  • 17. Environments • The first step to design a rational agent is the specification of its task environment. • Task environments are essentially the „problems‟ to which rational agents are the „solutions‟. • Generally task environments are specified by using the following four parameter – Performance – Environment – Actuators – Sensors • Therefore, task environment is also called PEAS description of the environment. Presented By: Tekendra Nath Yogi 17
  • 18. Contd… • Example :PEAS description of the task environment for an Fully automated taxi – Performance: The following can be the possible measures for the performance of automated taxi: • Getting to the correct destination(destination). • Minimizing the fuel consumption and wear and tear(damage that naturally occurs as a result of aging), and Minimizing the trip time or cost( Profit) • Minimizing the violations of traffic laws and disturbances to other drivers(legality) • Maximizing the safety and passenger comfort ( Safety and comfort ) – Environment: This is the driving environment that the taxi will face • Streets/freeways, other traffic, pedestrians, weather(rain , snow,..etc), police cars, etc. 1812/2/2018 By: Tekendra Nath Yogi
  • 19. Contd… • Actuators: The Actuators for an automated taxi include those available to a human driver: – Steering, accelerator, brake, horn, speaker/display,… • Sensors: The basic sensors for the taxi includes : – One or more controllable video cameras to see the road – Infrared and sonar sensors to detect the distances to other cars and obstacles – To avoid speeding tickets, the taxi should have a speedometers – To control the vehicle on the curve it should have an accelerometer – To determine the mechanical state of the vehicle , it should have engine sensors. – It should have GPS so that it doesn‟t get lost. – It should have keyboard or microphone for the passenger to request the destination. 1912/2/2018 By: Tekendra Nath Yogi
  • 20. Properties of environment (classes of environment) • Following are the dimensions along which environment can be categorized: – Fully observable versus partially observable – Single agent versus multi-agent – Deterministic versus stochastic – Episodic versus sequential – Static versus dynamic – Discrete versus continuous – Known versus unknown. 2012/2/2018 By: Tekendra Nath Yogi
  • 21. Contd… • Fully observable versus partially observable: – 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. • For example: chess playing. – An environment might be partially observable because of noisy and inaccurate sensors. • For example: – a vacuum agent with only a local dirt sensor cannot tell whether there is dirt in other squares. 2112/2/2018 By: Tekendra Nath Yogi
  • 22. Contd… • Single agent vs. multi-agent: • Example: 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. • Multi-agent environment can be: – Competitive: 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 multi-agent environment. – Cooperative: In the taxi-driving environment, on the other hand, avoiding collisions maximizes the performance measure of all agents, so it is a partially cooperative multi-agent environment. 2212/2/2018 By: Tekendra Nath Yogi
  • 23. Contd… • Deterministic vs. stochastic: – If the next state of the environment is completely determined by the current state and the action executed by the agent, then we say the environment is deterministic; otherwise, it is stochastic. – The simple vacuum world is deterministic where as the Taxi driving is clearly stochastic in this sense, because one can never predict the behavior of traffic exactly; moreover, one's tires blow out and one's engine seizes up without warning. 2312/2/2018 By: Tekendra Nath Yogi
  • 24. Contd… • Episodic versus sequential: – In episodic environments, the choice of action in each episode depends only on the episode itself i.e., the next episode does not depend on the actions taken in previous episodes. • For example an agent that has to spot defective parts on an assembly line bases each decision on the current part, regardless of previous decisions; moreover, the current decision doesn't affect whether the next part is defective. – In sequential environments, on the other hand, the current decision could affect all future decisions. • For example: Chess and taxi driving are sequential 2412/2/2018 By: Tekendra Nath Yogi
  • 25. Contd… • Static vs. dynamic: – If the environment can change while an agent is deliberating, then the environment is dynamic for that agent; otherwise, it is static. – Static environments are easy to deal with because the agent need not keep looking at the world while it is deciding on an action, nor need it worry about the passage of time. • For Example: Crossword puzzles are static. – Dynamic environments, on the other hand, are continuously asking the agent what it wants to do; if it hasn't decided yet, that counts as deciding to do nothing. • For example: Taxi driving is dynamic because the other cars and the taxi itself keep moving while the driving algorithm dithers about what to do next. 2512/2/2018 By: Tekendra Nath Yogi
  • 26. Contd… • Discrete vs. continuous: – The discrete/continuous distinction can be applied to the state of the environment, to the way time is handled, and to the percepts and actions of the agent. • For example, a discrete-state environment such as a chess game has a finite number of distinct states. Chess also has a discrete set of percepts and actions. • Example of continuous state environment includes Taxi driving : the speed and location of the taxi sweep through a range of continuous values and do so smoothly over time. 2612/2/2018 By: Tekendra Nath Yogi
  • 27. Contd… • Known versus unknown: – This distinction refers not to the environment itself but to the agent‟s state of knowledge about the environment. – In a known environment, the outcomes for all actions are given. – Obviously, if the environment is unknown, the agent will have to learn how it works in order to make good decisions. 2712/2/2018 By: Tekendra Nath Yogi
  • 28. The structure of the agents • Agent‟s structure can be viewed as: – Agent = Architecture + Agent Program • Architecture = the machinery that an agent executes on. • Agent Program = an implementation of an agent function. Presented By: Tekendra Nath Yogi 28
  • 29. Contd… • Agents are grouped into five classes based on their degree of perceived intelligence and capability: – simple reflex agents – model-based reflex agents – goal-based agents – utility-based agents – learning agents 2912/2/2018 By: Tekendra Nath Yogi
  • 30. Contd… • Simple reflex agents: – Simple reflex agents act only on the basis of the current percept, ignoring the rest of the percept history. • For example: vacuum cleaner agent. – First of all the simple reflex agent perceives the percepts from the environment and the agent interpret input to generate an abstract state description of the current state from the percept. – This generated state description is then matched against the condition part of the rules in the rule set. – Then it act according to a first rule whose condition matches the current state , as defined by the percept. 3012/2/2018 By: Tekendra Nath Yogi
  • 31. Contd… • The following figure shows the structure of the simple reflex agent Fig: simple reflex agent Presented By: Tekendra Nath Yogi 31
  • 32. Contd… • Characteristics: – simple, but very limited intelligence. – The simple reflex agent work only if the environment is fully observable. Even a little bit of unobservability can cause serious trouble. – Lacking history, easily get stuck in infinite loops 3212/2/2018 By: Tekendra Nath Yogi
  • 33. Contd… • Model Based Reflex agent: • Maintain a internal state to keep track of part of world it can not see now. • Internal state is based on percept history and keeps two kinds of knowledge: • how the world evolves independently of the agent • How the agent's own actions affect the world • Then it combines current percept with the old internal state to generate the updated description of the current state. • It then chooses an action in the same way as reflex agent. 3312/2/2018 By: Tekendra Nath Yogi
  • 34. Contd… • The following figure shows the structure of the model based reflex agent Fig: Model based reflex agent 3412/2/2018 By: Tekendra Nath Yogi
  • 35. Contd… • Goal Based agent: – Goal-based agents further expand on the capabilities of the model- based agents, by using "goal" information. – Goal information describes situations that are desirable. This allows the agent a way to choose among multiple possibilities, selecting the one which reaches a goal state. – It is more flexible because the knowledge that supports its decisions is represented explicitly and can be modified. 3512/2/2018 By: Tekendra Nath Yogi
  • 36. Contd… • The following figure shows the structure of the goal based agent Fig: Goal base agent 3612/2/2018 By: Tekendra Nath Yogi
  • 37. Contd… • Utility based agent: – Goal-based agents only distinguish between goal states and non-goal states. – It is possible to define a measure of how desirable a particular state is. This measure can be obtained through the use of a utility function which maps a state to a measure of the utility of the state. – A more general performance (for example, speed and safety)measure should allow a comparison of different world states according to exactly how happy they would make the agent. The term utility can be used to describe how "happy" the agent is. 3712/2/2018 By: Tekendra Nath Yogi
  • 38. Contd… • The following figure shows the structure of the utility based agent Fig: utility base agent 3812/2/2018 By: Tekendra Nath Yogi
  • 39. Contd… • Learning agents: A learning agent can be divided into four conceptual components: – "learning element", which is responsible for making improvements – "performance element“ (entire agent), which is responsible for selecting external actions. i.e., it takes in percepts and decides on actions. – The learning element uses feedback from the "critic" on how the agent is doing and determines how the performance element should be modified to do better in the future. – The last component of the learning agent is the "problem generator". It is responsible for suggesting actions that will lead to new and informative experiences. 3912/2/2018 By: Tekendra Nath Yogi
  • 40. Contd… • following figure shows the structure of the Learning agent Fig: Learning base agent 4012/2/2018 By: Tekendra Nath Yogi
  • 41. Applications of the agents • Intelligent agents are applied as automated online assistants, where they function to perceive the needs of customers in order to perform individualized customer service. • Such an agent may basically consist of a dialog system, as well an expert system to provide specific expertise to the user. • They can also be used to optimize coordination of human groups online. 4112/2/2018 By: Tekendra Nath Yogi
  • 42. Homework • Define in your own words the following terms: agent, agent function, agent program, rationality, autonomy, reflex agent, model-based agent, goal- based agent, utility-based agent, learning agent. • Both the performance measure and the utility function measure how well an agent is doing. Explain the difference between the two • What is the differences between agent functions and agent programs. • What an agent comprises of? • What are the various task environments? 12/2/2018 By: Tekendra Nath Yogi 42
  • 43. Thank You ! 43By: Tekendra Nath Yogi12/2/2018