CS 540-1 Final Exam: Artificial Intelligence, Exams of Artificial Intelligence

The final exam for the cs 540-1: introduction to artificial intelligence course. The exam covers various topics in artificial intelligence, including planning, neural networks, decision trees, knowledge representation, and miscellaneous questions. The exam includes multiple-choice questions, problems that require drawing diagrams, and problems that require writing out the steps of algorithms. The document also includes instructions for the exam, such as the time limit, the number of pages, and the rules for filling out the exam.

Typology: Exams

2012/2013

Uploaded on 04/08/2013

savitri_85
savitri_85 🇮🇳

4

(5)

70 documents

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 540-1: Introduction to Artificial Intelligence
Final Exam: 2:45-4:45pm, December 16, 1994
Room B239, Van Vleck
CLOSED BOOK
(one page of notes allowed)
Write your answers on these pages and show your work. If you feel that a question is not fully
specified, state any assumptions that 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
problems on ten pages.
Name ________________________________________________
Student ID ________________________________________________
Problem Score Max Score
1 _____ 10
2 _____ 35
3 _____ 15
4 _____ 20
5 _____ 15
6 _____ 40
7 _____ 15
Total _____ 150
(over)
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download CS 540-1 Final Exam: Artificial Intelligence and more Exams Artificial Intelligence in PDF only on Docsity!

CS 540-1: Introduction to Artificial Intelligence

Final Exam: 2:45-4:45pm, December 16, 1994

Room B239, Van Vleck

CLOSED BOOK

(one page of notes allowed)

Write your answers on these pages and show your work. If you feel that a question is not fully specified, state any assumptions that 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 problems on ten pages.

Name ________________________________________________

Student ID ________________________________________________

Problem Score Max Score

1 _____ 10

2 _____ 35

3 _____ 15

4 _____ 20

5 _____ 15

6 _____ 40

7 _____ 15

Total _____ 150

PROBLEM 1 - Planning (10 points)

Consider the following STRIPS operators:

Operator 1 Operator 3 preconditions: AC preconditions: B add list: BD add list: D delete list: C delete list: C Operator 2 Operator 4 preconditions: AD preconditions: AC add list: E add list: B delete list: A delete list: E

Assume the task is to construct a plan that correctly converts the initial state ABC into the final state DE

Show the initial state and its immediate descendants (i.e., neighbors) in the search space when:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

you are using standard state-based search to solve the problem

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

you are using the STRIPS algorithm (goal-directed planning)

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

you are using the TWEAK algorithm (non-linear planning) [you do not have to answer this precisely; simply illustrate the gist of TWEAK]

Part C. Now consider using the delta rule to train a perceptron on this data; this time you should consider training the threshold. Assume that the weight and the threshold are both initially -0.1, and let d =0.1. Draw the perceptron at the times requested below.

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

before training

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

after training on the first example above (explain the changes, if any)

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

after training on the second example above (explain the changes, if any)

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Part D. Which search-control strategy does backpropagation use (e.g., depth-first search, beam search, best-first search, etc.)? What about ID3? Explain your answers.

PROBLEM 3 - Decision Trees (15 points)

Consider learning a decision tree that you could use to judge whether or not you will like a given restaurant. Assume you have chosen to use the following three features to describe restaurants, with the possible values shown.

Price{Low, Med, High} Type{Hamburgers, Pizza, Fish, Vegetarian}

Assume Quinlan’s ID3 algorithm is given the following set of classified training examples. Calculate the decision tree that ID3 would produce. Show all your work. (You may use the abbreviations that are used to describe the examples.)

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

P = L T = H + P = L T = V + P = M T = F - P = M T = V + P = H T = P - hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

lg is the base 2 log

lg(a*b) = lg(a) + lg(b) lg(a/b) = lg(a) - lg(b)

lg(1) = 0 lg(2) = 1 lg(3) = 1. lg(4) = 2 lg(5) = 2.

PROBLEM 5 - Resolution Theorem Proving (15 points)

Consider the following statements.

Every man has his eyes checked by the doctor.

No man checks his own eyes.

Everyone is either a man or a woman.

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Part A. Represent the English sentences above in FOPC.

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Part B. Represent the above FOPC in clausal form.

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Part C. Using resolution, show that the doctor is a woman.

PROBLEM 6 - Miscellaneous Questions (40 points)

Answer the following true (T) or false (F). Provide brief justifications of your answers.

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Breadth-first search is guaranteed to find the optimal solution.

Ans: _____ Just:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Hill climbing and beam search, when the beam width is set to one, will always produce the same answer.

Ans: _____ Just:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

The horizon effect does not impact hill-climbing algorithms.

Ans: _____ Just:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

The qualification problem is an important issue in planning.

Ans: _____ Just:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

Using negation by failure is one way to address the frame problem.

Ans: _____ Just:

PROBLEM 7 - Common Lisp (15 points)

Assume you have started a fresh Lisp. What would the following Lisp expressions return? (If you think a Lisp error would result, write ERROR.) hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

(append ’(1 2 3) (cons 1 nil))

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

(* 4 (+ 5 3) (* (+ 2 4) 2))

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

(list (append ’(1 2) (rest (cons (first ’(3)) ’((4)))) ))

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

(defun mystery (x y) "A mystery function." (cond ((null x) y) (t (append (mystery (rest x) y) (list (first x)))))) MYSTERY (mystery ’(1 2) ’(a b))

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

(setf x ’(1 2 3)) (1 2 3) (setf (second x) ’new) NEW x

The end - have a good vacation!