CS 224 Lab 7 - Prolog Searches
Objectives:
Assignment:
Describe from your experiments above the rules for unification that involves a structured term (i.e. a pattern with arguments)
|
Assignment: Take a look at the relation num. Draw at least three levels of the search tree that would result in the query num(X). (This is of course an infinite search tree so you can’t draw it all.) |
|
Assignment: Explain why the prolog code above will have the desired result of a conditional. |
|
Assignment: Section 20.6 in the text describes "The Lighter Side of Prolog" with an example of a little text-based adventure game. Read this section which describes the predicates assert and retract. Copy the file game.pl from ~jillz/cs224 and complete exercise 6 on p447. Enjoy! |