























































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!
























































Artificial Intelligence: A Modern Peter Norvig and Stuart
Knowledge-Based Agents
The Wumpus World
Knowledge Representation:
Logic
Propositional Logic: A Very Simple Logic
Syntax
Semantics
Predicate Logic
Production Rules
Represent states, actions, etc.
Incorporate new percepts
Update internal representations of the
world
Deduce hidden properties of the world
Deduce appropriate actions
Declarative Knowledge – is knowing " that "
e.g. "Washington D.C. is the capital of America "
"Three plus four is seven.“
"water is liquid"
Higher level of abstraction
Suitable for independent facts
Good modifiability
Good readability
Good cognitive matching (better for
domain experts and end-users)
Low computational efficiency
Humans know things and do reasoning.
Knowledge and reasoning are also important for
artificial agents.
▪ Knowledge-based agents can benefit from knowledge
expressed in very general form, combining and recombining
information to go with many purposes.
Knowledge and Reasoning also plays an important
role in dealing with partially observable
environments.
▪ A knowledge-based agent can combine general knowledge
with current concepts to infer hidden aspects of the current
state prior to selecting actions.
For example, a physician diagnoses a patient.
KBAs should be flexible and able to:
Represent states, actions, etc.
Incorporate new percepts
Update internal representations of the world
Deduce hidden properties of the world
Deduce appropriate actions
Inference Engine: Agents can use inference (rules) to
deduce new facts from TELLed (old) facts
ASK the agent (i.e., to query) what to do
Knowledge
Base
Inference
engine
Domain
independent
algorithms
Domain
specific
content
TEL
L
AS
K
Age
nt
Sensor
s
Actuator
s
nt Environme
Percepts
Action
s
What the
world is like
now
What
action I
should do
now
Goal
s
What
my actions
do
How the
world
evolves
Sta
te
What will it
be like if I do
action A
KnowledgeB
ase
Reasonin
g
Goal-Based/Model-
Based Agent
Percepts
▪ What can agent observe?
▪ What can sensors tell it?
Actions
▪ What actuators does agent have?
▪ In what situation are they applicable?
Goals
▪ What are agents goals/Preferences?
▪ How does agent evaluate them (check environment,
deliberate, etc.)?
Environment
▪ How can these be represented?
▪ What are “rules of the world”?
The Wumpus computer game
The agent explores a cave
consisting of rooms connected
by passageways.
The Wumpus is
monitoring/lurking
somewhere in the cave, it eats
any agent that enters its room.
Some rooms contain bottomless
Pits that trap any agent that
wanders into the room.
Occasionally, there is a heap of
Gold in a room.
The goal is to collect the gold
▪ The agent always starts
in [1,1].
▪
The task of the agent is
to find the gold, return
to the field [1,1] and
climb out of the cave
Sensors: Stench, Breeze, Glitter, Bump, Scream
Actuators: Left turn, Right turn, Forward, Grab,
Release, Shoot.
Goal: bring back gold as quickly as possible
The agent has 5 sensors, each of which gives a single bit of
information as follows:
▪ In the square containing the Wumpus and the directory (not
diagonally) adjacent squares the agent will perceive a stench.
▪ In the squares directly adjacent to a pit, the agent will perceive a
breeze.
▪ In the square where the gold is, the agent will perceive a glitter.
▪ When the agent walks into a wall, it will perceive a bump.
▪ When the Wumpus is killed, it emits a woeful scream that can be
perceived any where in the cave.
The percepts will be given to the agent in the form of a list
of five symbols [X
1
2
3
4
5
For example if there is a stench and a breeze but no glitter,
bump or scream, the agent will receive the precept