
































































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!

































































Last update: October 9, 2008
CMSC 421: Chapter 7
♦ Knowledge-based agents
♦ Wumpus world
♦ Logic in general—models and entailment
♦ Propositional (Boolean) logic
♦ Equivalence, validity, satisfiability
♦ Inference rules and theorem proving
function KB-Agent( percept) returns an action static: KB, a knowledge base t, a counter, initially 0, indicating time Tell(KB, Make-Percept-Sentence( percept, t)) action ← Ask(KB, Make-Action-Query(t)) Tell(KB, Make-Action-Sentence(action, t)) t ← t + 1 return action
The agent must be able to: Represent states, actions, etc. Incorporate new percepts Update internal representations of the world Deduce hidden properties of the world Deduce appropriate actions
Environment One wumpus, one heap of gold P (pit) = 0. 2 for each square Squares adjacent to wumpus are smelly Squares adjacent to pit are breezy Glitter iff gold is in the same square Shooting kills wumpus if you are facing it Shooting uses up the only arrow Grabbing picks up gold if in same square Releasing drops the gold in same square
Breeze Breeze
Breeze
Breeze Breeze
Stench
Stench
Breeze PIT
PIT
PIT 1 2 3 4
1
2
3
4
START
Gold
Stench
Performance measure gold +1000, death − 1000 , − 1 per step, − 10 for using the arrow
Actuators Left turn, Right turn, Forward, Grab, Release, Shoot
Sensors Breeze, Glitter, Smell
Fully observable? No—only local perception
Deterministic?
Fully observable? No—only local perception
Deterministic? Yes—outcomes exactly specified
Episodic?
Fully observable? No—only local perception
Deterministic? Yes—outcomes exactly specified
Episodic? No—sequential at the level of actions
Static? Yes—Wumpus, pits, and gold do not move
Discrete?
Fully observable? No—only local perception
Deterministic? Yes—outcomes exactly specified
Episodic? No—sequential at the level of actions
Static? Yes—Wumpus, pits, and gold do not move
Discrete? Yes
Single-agent?
A
OK
OK OK
OK
OK OK
A
A
B
OK
OK OK
A
A
B
P?
P?
A
S
OK
OK OK
A
A
B
P?
P?
A
S
OK
OK
OK OK
A
A
B
P?
P?
A
S
OK
A
OK
OK
OK
OK OK
A
A
B
P?
P?
A
S
OK
A
OK
OK
A
BGS