Resolution - Artificial Intelligence - Exam, Exams of Artificial Intelligence

Main points of this exam paper are: Resolution, Board Evaluator, Predicate Calculus, Most General Unifier, Clause Form, Resolution Theorem Prover, First-Order Predicate

Typology: Exams

2012/2013

Uploaded on 04/08/2013

lakshanya
lakshanya 🇮🇳

4.4

(25)

98 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 540-1 -- Introduction to Artificial Intelligence
Exam 2 - November 4, 1992
CLOSED BOOK
90 minutes
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 eight
problems on eight pages.
Name ________________________________________________
Student ID ________________________________________________
Problem Score Max Score
1 _____ 5
2 _____ 10
3 _____ 12
4 _____ 28
5 _____ 15
6 _____ 10
7 _____ 15
8 _____ 5
Total _____ 100
(over)
pf3
pf4
pf5
pf8

Partial preview of the text

Download Resolution - Artificial Intelligence - Exam and more Exams Artificial Intelligence in PDF only on Docsity!

CS 540-1 -- Introduction to Artificial Intelligence

Exam 2 - November 4, 1992

CLOSED BOOK

90 minutes

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 eight problems on eight pages.

Name ________________________________________________

Student ID ________________________________________________

Problem Score Max Score

1 _____ 5

2 _____ 10

3 _____ 12

4 _____ 28

5 _____ 15

6 _____ 10

7 _____ 15

8 _____ 5

Total _____ 100

PROBLEM 1 - Alpha-Beta Pruning (5 points)

Consider the game tree shown below. We wish to use alpha-beta pruning to determine the best play for the minimizer. The numbers below the leaves of this tree indicate the scores that will be produced by the static board evaluator if it is called. Circle all the leave nodes that must be evaluated during the alpha-beta procedure and circle the arc representing the minimizer’s best move. Above the root node, write the score the minimizer can expect to achieve.

minimizer

7 -30 -1 63 0 -11 -5 -99 99

maximizer

PROBLEM 2 - Predicate Calculus (10 points)

Give one predicate calculus representation for each of these English sentences. Choose reasonable constants, predicates and functions - the predicate marys-mother-is-married-to- marys-father is not an acceptable answer to the first question.

a) Mary’s father is married to Mary’s mother.

b) No human enjoys golf.

c) All professors except historians write programs.

d) Some professor that is not a historian writes programs.

PROBLEM 4 - Clause Form and Resolution (28 points)

a) Convert the following wff ’s to clause form. Write the clauses on the lines provided.

(ab)c

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

¬ [xy Q(x,y) ]

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

xyz [ P(x,y,z)R(z,y,x) ]

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

yxz [ P(x,y,z)R(z,y,x) ]

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

b) Assume you wish to use resolution to prove the goal

x [ P(x,A)Q(A,x) ]

from the existing axioms in a resolution theorem prover. Convert the goal into the form necessary to attempt this. That is, write the clause(s) that need to be created from the goal and added to the theorem prover’s existing collection of clauses. (Note: just write the new clauses, do not resolve with the clauses of part a.)

c) Consider the following statements:

If an exam is easy, some students are happy.

If an exam contains a question on resolution, no students are happy.

If an exam contains a question on resolution, the exam is not easy.

Convert these sentences to first-order predicate calculus, and then use resolution to show that the third one follows from the first two. (Number your clauses. When you deduce a new clause, indicate which existing clauses were resolved to produce the new clause. I.e., "comment" your proof.)

d) Briefly explain what it means for a theorem prover to be complete.

b) Assume you were only allowed to RETRACT "control knowledge" - goals and subgoals. I.e., you could only assert additional facts about the blocks, but never delete existing ones. Briefly describe the major problem this would cause for writing productions rules for the "blocks world."

PROBLEM 6 - Certainty Factors (10 points)

Assume you are provided the following certainty-factor (CF) rules:

Rule 1: IF one’s team is losing THEN one shouts CERTAINTY FACTOR = -0.

Rule 2: IF one is at crowded place THEN one shouts CERTAINTY FACTOR = 0.

a) Assume you are in a crowded bar watching your team lose. With what certainty can one conclude that you are shouting?

b) Assume you believe, with CF=0.9, that Wilma is in a crowded restaurant. According to the certainty-factor method, with what CF do you believe she is shouting?

c) Assume you believe, with CF=0.8, that John shouts and you believe, with CF=0.6, that Mary shouts. With what CF do you believe John shouts or Mary shouts?

PROBLEM 7 - Backward Chaining and Prolog (15 points)

a) Consider the following Prolog rulebase.

p(a). p(b). r(1). r(2). m(a,b). n(2,1). n(b,a). f(b,b). f(1,1). m(X,Y) :- p(Y), r(X). g(X,Y) :- m(X,Z), n(W,Y), f(Z,Y). g(X,a) :- p(X), r(X). g(X,X) :- f(X,X), r(X).

For each of the following requests, determine how many ways Prolog can deduce an answer to the query. Hint: none of the answers are above 10. (If you wish to get partial credit for incorrect answers, also show the bindings of each proof for the variables in the query. Use the back of page 7 if necessary.)

i) ?- n(1,2). Number of Proofs: ________________________________________

ii) ?- m(C,D). Number of Proofs: ________________________________________

iii) ?- g(E,F). Number of Proofs: ________________________________________

b) Write a Prolog program for same-family(X,Y) , which determines if X and Y have a common ancestor. You may only assume that the predicate parent is defined.

PROBLEM 8 - Problem-Reduction Search (5 points)

John is an AI student who has the goal of learning Lisp. Give an problem-reduction (i.e., AND/OR) tree showing how to accomplish this goal. Be sure to include at least two AND nodes and at least two OR nodes.