Artificial
Intelligence

Fall 2011
course
navigation

Sep 29

Finish discussion of search methods:

chapter 7

Start material in chap 7 : knowledge representation
The text uses a wumpus world example, which we will look at some lisp (or python) code for.
Wumpus world:
All this is to motivate a discussion of deduction, i.e. logic.
logic concepts:
propositional logic : symbols are sentences
We want to develop an automated procedure so that given a set of true sentences about the world, we can automatically generate new ones. Moreover, given a specific one to test, we can programmatically find out if the other ones imply it or not.
The idea is to have the software figure out things like : there's a stench over there, and a pit over there. Does that mean that the wumpus is over here?
The details of how the automated reasoning work gets a bit involved. You should read chap 7, and we'll go over the details next week.
For now a few hints:
Resolution takes things like
(A or B or C) and (D or E or not C)
and produces
(A or B or D or E)
by removing the matching (C), (not C) and collapsing the two "or" groups into one.
(Exercise : explain why is this valid?)
If the resolution procedure gets down to
(Z) and (not Z)
then resolution produces () which is false, and the original thing we added (not A) must be true.
So the procedure is:
1. Start with knowledge base in conjunctive normal form, i.e. (A or B or D) and (not B or F) and ... 2. We want to see if some sentence D is logically implied. 3. So we add (not D) to get something like (A or B or D) and (not B or F) and ... and (not D) 4. Then we go into a loop: Search (hello!) for matching opposites (... x ...) ... ( ... not x ... ) and remove them. 5. If the search produces the empty set, then D is proved. If a complete search doesn't, then we can't tell about D.
The text looks at a number of variations on these idea, including
Chapter 7 ends with an example of the wumpus world that uses all this to make decisions.
http://cs.marlboro.edu/ courses/ fall2011/ai/ notes/ Sep_29
last modified Thursday September 29 2011 2:27 am EDT