CS 540-1: Introduction To Artificial Intelligence: Exam 2: 7:15-9:15pm, November 20, 1995
CS 540-1: Introduction To Artificial Intelligence: Exam 2: 7:15-9:15pm, November 20, 1995
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 seven
(7) problems on eight (8) pages.
Name ________________________________________________
Student ID ________________________________________________
1 _____ 18
2 _____ 15
3 _____ 10
4 _____ 15
5 _____ 14
6 _____ 14
7 _____ 14
(over)
CS 540-1 2 Name ____________________
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
iii) Every player on [the sports teams] the Packers and the Brewers is rich.
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
iv) Every living thing likes Thanksgiving, except for the turkeys.
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
v) Unless it is a blizzard, Mary has some mode of transportation for getting to school.
[note: use situation calculus to represent this sentence]
(over)
CS 540-1 3 Name ____________________
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
ii) Bridge players who know all ∀ x,r [ { plays(x, Bridge) ∧ ruleOfBridge(r)
the rules are successful. ∧ knows(x, r) } ⇒ successful(x) ]
(over)
CS 540-1 4 Name ____________________
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
∃ x ∀ y ∃ z [ P(x,y,z) ⇔ P(z,y,x) ]
(over)
CS 540-1 5 Name ____________________
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
ii) Given the following Working Memory (WM), what are the valid variable-binding sets for the
production rule listed below?
WM: { P(0,0), P(1,2), P(2,1), Q(0,0), Q(0,1), Q(1,2), R(0,0,0), R(0,0,1), R(0,1,2), R(1,2,2) }
If negation by failure were used, would the above rule match the above WM more, fewer, or
the same number of times? Explain your answer.
(over)
CS 540-1 6 Name ____________________
# WFF Justification
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
1 P(1) given
2 W(1) ∧ W(2) ∧ W(3) given
3 ∀ x [P(x) ⇒ ¬R(x)] given
4 ∀ x [Q(x) ∨ R(x)] given
5 ∀ x [ {Q(x) ∧ W(x)} ⇒ Z(x)] given
6
(over)
CS 540-1 7 Name ____________________
(1) Student 1 said that the University should construct more on-campus parking.
Student(S1) ∧ [ BuildsParkingLots(Univ) ⇒ ListenedTo(Univ, S1) ]
(2) Student 2 said that the University should not build more parking lots.
Student(S2) ∧ [ ¬BuildsParkingLots(Univ) ⇒ ListenedTo(Univ, S2) ]
Use resolution theorem proving to show that Student 3’s statement is false.
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
(over)
CS 540-1 8 Name ____________________
Illustrate the operation of this production system by filling out the table below.
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
(The End!)