





















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!






















-^ Nondeterministic games•^ Logic–^ –
The^ WumpusTheWumpus
worldworld
-^ Entailment^ – Entailment
-^ Logic– Entailment and inference– Propositional logic: Syntax and semantics– Inference rules
-^ Chapters 7 and 8
Function
MINIMAX-VALUE (state, game)
returns
a utility value
If^ TERMINAL-TESTgame then
return
UTILITYgame else if
MAX is to move in
state^ then return
the highest MINIMAX-VALUE of Successors[
state]
else return
the lowest MINIMAX-VALUE of Successors[
state]
Function
EXPECTIMINIMAX-VALUE (state, game)
returns
a utility value
If^ TERMINAL-TESTgame then
return
UTILITYgame else^ if
state
is a chance node
then
return
average of
EXPECTIMINMAX-VALUE
of Successors(
state)
else if
MAX is to move in
state^ then return
the highest EXPECTIMINIMAX-VALUE of Successors[
state]
else return
the lowest EXPECTIMINIMAX-VALUE of Successors[
state]
-^ Goals:
Get gold back to the start without entering it or wumpussquare. • Percepts:
Breeze, Glitter, Smell.
-^ Actions:
Left turn, Right turn, Forward, Grab, Release, Shoot.
if you
are facing it.• Shooting uses up the only arrow.• Grabbing picks up the gold if inthe same square.• Releasing drops the gold in thesame square.
-^ Logics
-^ Semantics
-^ For example, the language of arithmetic^ –^
-^ x + y >
-^ x + 2
-^ x + 2
≥≥≥≥^ y^ is true in a world where
-^ x + 2
≥≥≥≥^ y^ is false in a world where
-^ A knowledge base is a collection of sentences.•^ Knowledge base KB entails sentence
α^ if and only if
α^ is true whenever KB is true (i.e. all sentencesin KB are true).
-^ An inference procedure
i^
can do two things:
α^ purported to be entailed
by KB.– Given KB and
α, report whether or not
α^ is entailed by KB.
-^ A^ sound
inference procedure only produces entailed sentences.
-^ Every entailed sentence can be generated by a
inference procedure.
α=Αα=Αα=Αα=Α ∨
∨∨∨ ΒΒΒΒ^ and
-^ Is it the case that KB
α
-^ Check all possible models --
α^ must be true whenever KB is true
True True True True True
True True False True True
True False True False True
True True False False True
True True True True False
True False False True False
False False True False False
False False False False False
αααα ΑΑΑΑ ∨∨∨∨ ΒΒΒΒ KB(ΑΑΑΑ ∨∨∨∨^ C)^ ∧∧∧∧ ((((B ∨∨∨∨ ¬¬¬¬C) C B A
α=Αα=Αα=Αα=Α ∨
∨∨∨ ΒΒΒΒ^ and
-^ Is it the case that KB
α
-^ Check all possible models --
α^ must be true whenever KB is true
True True True True True
True True False True True
True False True False True
True True False False True
True True True True False
True False False True False
False False True False False
False False False False False
αααα ΑΑΑΑ ∨∨∨∨ ΒΒΒΒ KB(ΑΑΑΑ ∨∨∨∨^ C)^ ∧∧∧∧ ((((B ∨∨∨∨ ¬¬¬¬C) C B A