



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




What is an agent?What is an agent?
CaveatCaveat
Examples of agentsExamples of agents
AgentsAgents
Actions
Percepts 1
The agent and the environmentThe agent and the environment
DiscreteDiscrete
StaticStatic
AgentsAgents
EpisodicEpisodic
DeterministicDeterministic
ObservableObservable fullyfully fullyfully ?? partiallypartially
InternetInternet TaxiTaxi shoppingshopping
CrosswordCrossword BackgammonBackgammon puzzlepuzzle
Fully vs. partially observable : can the sensors detect all aspects that are relevant to the choice of action.
DiscreteDiscrete
StaticStatic
AgentsAgents
EpisodicEpisodic
DeterministicDeterministic deterministicdeterministic stochasticstochastic ?? stochasticstochastic
ObservableObservable fullyfully fullyfully ?? partiallypartially
InternetInternet TaxiTaxi shoppingshopping
CrosswordCrossword BackgammonBackgammon puzzlepuzzle
Deterministic vs. stochastic : is the next environment state completely determined by the current state?
A simple agent functionA simple agent function
def REFLEX-VACUUM-AGENT ( location, status ) : if status == Dirty : return Suck else if location == A : return Right else if location == B : return Left
Rational agents Rational agents
A A (^) rational agentrational agent is one that does the right thing.is one that does the right thing. What is the right thing? What is the right thing?
Performance measure according to what is wanted in the Performance measure according to what is wanted in the environment (goal).environment (goal). Performance measures for the vacuum world: Performance measures for the vacuum world:
RationalityRationality
The Structure of AgentsThe Structure of Agents
Reflex AgentReflex Agent
Selects action only on theSelects action only on the
basis of the currentbasis of the current perceptpercept
Large reduction inLarge reduction in
possible percept/actionpossible percept/action combinationscombinations
function REFLEX-VACUUM-AGENT ([ location, status ]) if status == Dirty then return Suck else if location == A then return Right else if location == B then return Left
Simple reflex agentSimple reflex agent
functionfunction^ SIMPLE-SIMPLE-REFLEXREFLEX--AGENT(AGENT( perceptpercept ))^ returnsreturns^ an actionan action
static static :: (^) rulesrules , a set of condition, a set of condition--action rulesaction rules
state state (^) ←← (^) INTERPRETINTERPRET--INPUT(INPUT( perceptpercept )) rule rule (^) ←← (^) RULERULE--MATCH(MATCH( statestate ,, rulerule )) action action ←← RULERULE--ACTION[ACTION[ rulerule ]] returnreturn actionaction
ModelModel--based reflex agentbased reflex agent
Goal- Goal-based agentsbased agents
UtilityUtility--based agentsbased agents
Learning agentsLearning agents
Learning agentsLearning agents
Performance elementPerformance element : selecting: selecting actions based on percepts.actions based on percepts.
For TuesdayFor Tuesday