Docsity

Hill Climbing - Artificial Intelligence - Exam, Exams of Artificial Intelligence

Toggle sidebar
bg1
CS 540-1: Introduction to Artificial Intelligence
Exam 1: 7:15-9:15pm, March 2, 1998
CLOSED BOOK
(one page of notes and a calculator allowed)
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 six
problems on seven pages.
Name ________________________________________________
Student ID ________________________________________________
Problem Score Max Score
1 _____ 20
2 _____ 10
3 _____ 10
4 _____ 10
5 _____ 40
6 _____ 10
Total _____ 100
(over)
pf3
pf4
pf5

Partial preview of the text

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

CS 540-1: Introduction to Artificial Intelligence

Exam 1: 7:15-9:15pm, March 2, 1998

CLOSED BOOK

(one page of notes and a calculator allowed)

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

Name ________________________________________________

Student ID ________________________________________________

Problem Score Max Score

1 _____ 20

2 _____ 10

3 _____ 10

4 _____ 10

5 _____ 40

6 _____ 10

Total _____ 100

PROBLEM 1 - Basic Search Strategies (20 points)

Assume you have the following search graph, where S is the start node and G1 and G2 are goal nodes. Arcs are labeled with the cost of traversing them and the estimated cost to a goal is reported inside nodes.

D 0 2

3

C 5

A

S 10

5

B

E

G 0

3

1

(^6 )

7

1

5

9

8

6

2

4

(^2) X Y

Estimated cost to nearest goal is X Cost of traversing this arc is Y

KEY

4

G

For each of the search strategies listed below, indicate which goal state is reached (if any) and list, in order, the states expanded. (Recall that a state is expanded when it is removed from the OPEN list.) When all else is equal, nodes should be expanded in alphabetical order.

Depth-First

Goal state reached: _____ States expanded: ____________________________________

Iterative Deepening

Goal state reached: _____ States expanded: ____________________________________

Hill Climbing (using the h function only)

Goal state reached: _____ States expanded: ____________________________________

A*

Goal state reached: _____ States expanded: ____________________________________

PROBLEM 4 - Miscellaneous Short Answers (10 points)

Provide brief answers to the following questions.

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

A. Why are pruning sets used in decision-tree algorithms?

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

B. If a solution exists, is depth-first search guaranteed to find it?

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

C. Can iterative deepening ever expand fewer total nodes than breadth-first search does?

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

PROBLEM 5 - Decision Trees (40 points)

Assume you are given the following three features with the possible values shown.

F1 โˆˆ {A, B} F2 โˆˆ {C, D} F3 โˆˆ {E, G, H}

Consider the following training examples.

F1 = A F2 = C F3 = H category = + F1 = A F2 = D F3 = G category = + F1 = A F2 = C F3 = G category = - F1 = A F2 = D F3 = G category = + F1 = B F2 = D F3 = H category = - F1 = B F2 = D F3 = H category = - F1 = B F2 = C F3 = H category = + F1 = B F2 = C F3 = G category = -

A. What score would the information gain formula assign to each of the three features? (Note: I(x,y)=I(y,x), I(1,0)=0, I(0.5, 0.5)=1, I(0.75, 0.25)=0.81, I(0.875, 0.125)=0.54) Be sure to show all your work.

B. Which feature would be chosen as the root? _________ (Break any ties in favor of F1 over F2 over F3 , and โ€™+โ€™ over โ€™-โ€™.)

C. Show the remaining steps, if any, that the decision-tree learning algorithm would perform using the above examples. Again, be sure to show all your work (use the back of this or the previous sheet if necessary).

(Continuation of Problem 5E.) After expanding the start node, what would your OPEN list contain when using the above training examples?

Problem 6 - Information Theory and Expected Values (10 points)

Assume you have a training set for a given task that contains three different output categories, where three-quarters of the examples are in category A , and one-eighth are in each of categories B and C. What is the expected amount of information needed in order to label a future example for this task? Explain the derivation of any formulae you use. (You neednโ€™t provide a numerical answer; it is fine to provide an expression containing some log โ€™s in it.)

How do we expect to get this needed information?

(the end)