






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
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
1 / 10
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 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
Consider the following STRIPS operators:
Operator 1 Operator 3 preconditions: A ∧ C preconditions: B add list: B ∧ D add list: D delete list: C delete list: C Operator 2 Operator 4 preconditions: A ∧ D preconditions: A ∧ C 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 A ∧ B ∧ C into the final state D ∧ E
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.
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.
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.
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:
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!