SP07 cs188 Lecture 8 - Logical Agents 1
SP07 cs188 Lecture 8 - Logical Agents 1
SP07 cs188 Lecture 8 - Logical Agents 1
Spring 2007
§ Environment
§ 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
3 Boolean choices ⇒ 8
possible models
start: ¬ P1,1
¬ B1,1
B2,1
§ Model checking
§ truth table enumeration (always exponential in n)
§ improved backtracking, e.g., Davis--Putnam-Logemann-Loveland
(DPLL)
§ heuristic search in model space (sound but incomplete)
e.g., min-conflicts-like hill-climbing algorithms
You need to
know these !
m = number of clauses
n = number of symbols
¬P1,1
¬W 1,1
Bx,y ⇔ (Px,y+1 ∨ Px,y-1 ∨ Px+1,y ∨ Px-1,y)
Sx,y ⇔ (W x,y+1 ∨ W x,y-1 ∨ W x+1,y ∨ W x-1,y)
W1,1 ∨ W 1,2 ∨ … ∨ W 4,4
¬W 1,1 ∨ ¬W 1,2
¬W 1,1 ∨ ¬W 1,3
…