Assignment 4

Assignment 4
CS 256
due December 8, 1998
150 points

For this assignment, assume that a knowledge base is represented as a list of assertions, each of which is a relational expression. Each relational expression is represented as a list whose CAR is the relation name and whose CDR is a list of arguments. The relations need not be binary. You may assume that each relation is of a fixed arity less than 10.

Assume that the relation of set membership is called instance_of and that the subset relation is called a_kind_of. Assume that the universal set is called thing and that the set of all relations is called relation. Construct functions to

One or more sample knowledge bases and a function to serve as a test program will appear in the file a4.dat.