


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Draper; Class: Introduction to Artificial Intelligence; Subject: Computer Science; University: Colorado State University; Term: Fall 2008;
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



thth
hh
thth
Performance measurePerformance measure
EnvironmentEnvironment
Sensors:
Sensors: Stench, Breeze, Glitter, BumpStench, Breeze, Glitter, Bump
Actuators:Actuators: Left turn, Right turn, Forward, Grab,Left turn, Right turn, Forward, Grab,
Release,ShootRelease,Shoot
LetLet PP x,yx,y
be the proposition that square (be the proposition that square (x,yx,y) has a) has a
pit.pit.
Let
Let WW
x,y
x,y
be the proposition that the
be the proposition that the wumpuswumpus is inis in
square (
square (x,yx,y))
LetLet BB x,yx,y
be the proposition that a breeze is felt inbe the proposition that a breeze is felt in
square (square (x,yx,y))
Let
Let SS
x,y
x,y
be the proposition that a stench is
be the proposition that a stench is
detected in square (detected in square (x,yx,y))
A system with a total of 64 propositional symbolsA system with a total of 64 propositional symbols
1,11,
1,11,
1,11,
1,21,
4,34,
4,44,
1,
1,
1,
1,
1,
1,
4,
4,
4,
4,
Wumpus
Wumpus Axioms (II)Axioms (II)
2,22,
1,21,
3,23,
2,32,
2,12,
neighboring cellneighboring cell
2,22,
1,21,
3,23,
2,32,
2,12,
pit
pit
WumpusWumpus Logic (II)Logic (II)
1,21,
Simplification
Simplification (
1,21,
2,12,
1,21,
2,12,
¬¬(P(P DeMorgansDeMorgans ))
1,21,
v Pv P
2,12,
2,12,
((¬¬PP SimplificationSimplification
1,21,
2,12,
1,21,
v Pv P
2,12,
ModusModus ))
Tollens
Tollens
1,11,
1,11,
1,21,
v P
v P
2,12,
PrecedentPrecedent RuleRule ConsequentConsequent
Conjunctive Normal Form
Conjunctive Normal Form
Converting to CNF
Converting to CNF
Replace
Replace α
α ⇔⇔ ββ with (
with ( α
α ⇒⇒ ββ )^(
β
β ⇒⇒ αα )
2.2. ReplaceReplace αα ⇒⇒ ββ with (with (¬¬ αα vv ββ))
3.3. MoveMove ¬¬ “inward“inward””
1.1. ReplaceReplace ¬¬((¬ α¬α) with) with αα
2.2. ReplaceReplace ¬¬((αα ^^ ββ) with () with (¬¬ αα vv ¬ β¬β))
Replace
Replace ¬
¬ (
( α
α v
v β
β ) with (
) with ( ¬
¬ αα ^
^ ¬
¬ ββ )
)
4.4. Replace (Replace (αα v (v (ββ ^^ γγ)) with ()) with (αα vv ββ)^()^(αα vv γγ))
Converting to CNF (II)Converting to CNF (II)
While converting expressions, note that
While converting expressions, note that
(( α
α v
v β
β ) v
) v γ
γ ) is equivalent to
) is equivalent to (( α
α v
v β
β v
v γ
γ )
)
Why does this algorithm work?Why does this algorithm work?
Because ¬
¬ is always directly attached to simply
is always directly attached to simply
propositionspropositions
can be distributed over to makecan be distributed over to make CNFsCNFs
Converting to CNF (Example)Converting to CNF (Example)
Example (cont.)
Example (cont.)
Now, apply resolution toNow, apply resolution to
(
( ¬
¬ A
A v B) ^ (v B) ^ ( ¬
¬ B v A) ^ (
B v A) ^ ( ¬
¬ A v C) ^ (B)
A v C) ^ (B) ^ (^ ( ¬
¬ C)
C)
Repeat:Repeat:
(
( ¬
¬ B v A) ^
B v A) ^ (( ¬
¬ A)
A) ├
├ (
( ¬
¬ B
B )
)
Repeat:Repeat:
((¬¬ BB ) ^ (B)) ^ (B) ├├ {} : contradiction!{} : contradiction!
Example (III)
Example (III)
((¬¬ AA v B) ^ (v B) ^ (¬¬ B v A)B v A) ├├ (B) ^ ((B) ^ (¬¬ B)B)
What can resolution do?
What can resolution do?
enumerating all possible sentences andenumerating all possible sentences and
verifying each with resolution.
verifying each with resolution.