




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
Main points of this exam paper are: Bobby Fischer, First-Order Predicate, Reasonable Constants, Knowledge Representation, Hierarchy, Binary Resolution, Resolution Proof
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Write your answers on these pages and show your work. If you feel that a question is not fully specified, state any assumptions you need to make in order to solve the problem. You may use the backs of these sheets for scratch work.
Write your name on this and all other pages of this exam. Make sure your exam contains four problems on eight pages.
Name ________________________________________________
Student ID ________________________________________________
Problem Score Max Score
1 _____ 35
2 _____ 20
3 _____ 30
4 _____ 15
Total _____ 100
a) Give one (1) predicate calculus representation for each of these English sentences. If you feel a sentence is ambiguous, provide a more detailed sentence that better captures the version represented by your FOPC. Choose reasonable constants, predicates and functions - the predicate dogs-chase-cats is not an acceptable answer to the first question.
i) Dogs chase cats.
ii) Some computers are cheap.
iii) Every book is valuable.
iv) Some chess pieces move diagonally, or my name isn’t Bobby Fischer.
v) All pianists and conductors know a piece written by Mozart.
a) Draw a simple ISA hierarchy that (partially) represents the classes offered at the University of Wisconsin - Madison. Do not, of course, draw the entire hierarchy, but do meet the following constraints:
g your hierarchy must be at least three (3) levels deep, g your hierarchy must contain at least one (1) inheritable property g your hierarchy must contain at least one (1) overridden default
b) Represent the following in conceptual dependency.
i) Ali punched Frazier.
ii) Bill told Sue that Mary told John to visit Sue.
b) Show how putting FOPC wff’s in clausal form and then doing binary resolution can produce the same new wff as the following natural deduction inference rules produce. You can show this by producing one concrete example, using P’s and Q’s, for each case; you do not have to show this for the general case.
i) modus tolens
ii) and elimination
Write a car-cdr recursive Common Lisp function (contained-in? item sexpr). This function should return non-nil (i.e., ‘‘true’’) if item is anywhere in sexpr. For example,
(contained-in? 3 ’(1 2 3 4 5)) t ;;; actually, anything other than NIL is an acceptable result
(contained-in? ’(a b) ’(a b (c d) (a) (b))) nil
(contained-in? ’(a b) ’(1 2 ((((a b) c))) 6)) t
(contained-in? ’(a b) ’(a b)) t
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
(defun contained-in? (item sexpr)
"Is ITEM contained anywhere in SEXPR?"