



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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 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
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.
Goal state reached: _____ States expanded: ____________________________________
Goal state reached: _____ States expanded: ____________________________________
Goal state reached: _____ States expanded: ____________________________________
Goal state reached: _____ States expanded: ____________________________________
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
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?
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)