



























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!




























Quiz number Maximum Score Grader
1 100
2 100
3 100
4 100
5 100
Before swimming in an unknown river, you want to figure out which animals are dangerous. You have a set of rules and assertions, given below.
Rules:
Assertions:
Part B: Backwards Chaining (20 points)
Make the following assumptions about backwards chaining:
● When working on a hypothesis, the backward chainer tries to find a matching assertion in the dataset. If no matching assertion is found, the backward chainer tries to find a rule with a matching consequent. In case none are found, then the backward chainer assumes the hypothesis is false. ● The backward chainer never alters the dataset, so it can derive the same result multiple times. ● Rules are tried in the order they appear. ● Antecedents are tried in the order they appear.
Evaluate the hypothesis 'Spike is dangerous' using backwards chaining. Draw a goal tree in the space below.
Is Spike dangerous?
Part A
Your 6.034 Tas have invented a new game based on baseball called Blurnsball. As many people know, baseball is incredibly boring, so to jazz it up, they included several rules variants, including a variant for running the bases. In Blurnsball, it is legal to run across the pitcher's mound and to the opposite side (thus making it legal to run from 1st^ base to the pitcher's mound to 3rd^ base or from 2nd^ base to the pitcher's mound to home). They have hired you as a consultant to use 6.034 Search techniques in order to analyze the new rules variant. See the graph below for a diagram of the new set-up.
Part A1 (10 points)
The TAs are impatient and demand that you perform a hill-climbing search using the heuristic distances to the goal, provided in parentheses in the diagram.
Part B
Alex has been chatting online for weeks with his new online girlfriend, Eliza. Stephanie and Maria are skeptical of this “Eliza” and insist that Alex meet with her in person, so when Alex asks Eliza out, Stephanie and Maria decide to come along to make sure the girlfriend is legit. They have to travel along the following streets, from S to G, and Alex wants to make sure he's on time to meet Eliza, so he insists that they take the shortest path.
Part B1 (10 points)
Using Branch and Bound with an Extended List, what is the final path from S to G? Be sure to show your goal tree for partial credit.
What nodes are in your extended list?
You are playing a new Sim game called Obamaquest, the Legend of the Lost International Credibility. In this game, you play a charismatic incoming president who must make a choice on various issues in order to save your country. After each of your turns, the outgoing president will attempt to perform the most meddlesome acts possible to make it less likely that you will succeed. You realize quickly that you can model this game using a simple Game Tree from 6.034, as shown below.
Static values are shown underneath leaf nodes. Ignore the numbers in parentheses for now.
Max
Min
Min
Max
Max
Part A (15 points)
First, you decide to perform a simple minimax algorithm on the tree.
Which direction will the maximizer choose to go at node A?
What is the minimax value of node A?
Which static evaluations did you perform? (write the nodes you statically evaluated, in order).
Part B (25 points)
Minimax was taking too many static evaluations, so you use alpha-beta instead.
This time what direction will the maximizer choose to go at node A?
Which static evaluations did you perform? (write the nodes you statically evaluated, in order).
Four 6.034 TAs ( Mark, Mike, Rob, Sam ) are trying to write eight questions for a final exam (somewhat like this one):
Some questions are harder to write than others, so they should be distributed about equally. And some problems are so similar to others that for variety, we don't want those written by the same TA. This leads to some constraints:
● TA(Constraints) != TA(Rules) ● TA(Boosting) != TA(ID-Trees) ● TA(Boosting) != TA(SVMs) ● TA(SVMs) != TA(Optimal Search) ● TA(SVMs) != TA(Games) ● TA(SVMs) != TA(Rules) ● TA(SVMs) != TA(Neural Nets) ● TA(Neural Nets) != TA(Games)
Also, there are some demands that have to be honored. ● Mike insists on doing Boosting ● Mike will not do Constraints ● Mark insists on doing Games ● Only Rob and Mike are willing to do SVMs.
Part A (10 points)
Draw lines between variables with a != constraint, and use the TAs' demands to reduce domains by crossing out names. Continue to reduce domains using the constraints while possible.
Part B (20 points)
Starting with your domains reduced in Part A, find a solution using depth-first search only, using no constraint propagation , checking constraints at assignments only. Consider TAs in alphabetical order:
Mark, Mike, Rob, Sam. Please feel free to abbreviate unambiguously. Draw your search
tree on the next page.
Part C (15 points)
You consider two more advanced constraint propagation algorithms that ● propagate choices to neighbors only ● propagate choices to neighbors and continue through any domains reduced to size one
Do these algorithms find the same result as the DFS? Which domains do these algorithms reduce during the course of their runs? Circle the answers.
Neighbors only
Same result as DFS? YES NO Domains reduced: C O G R I N S B
Neighbors and any domain reduced to size one
Same result as DFS? YES NO Domains reduced: C O G R I N S B
Part D (5 points)
One TA thinks the assignments made in this problem are unfair. Suggest a way to ensure the test questions are more evenly distributed across the four TAs.
Part A: Nearest Neighbors
On the following graph, draw the decision boundaries produced by 1-Nearest Neighbor. Ignore the letters A and B.
Suppose you created the following ID Tree.
Draw the decision boundaries produced by that ID Tree on the graph below.
Part A (21 points)
Consider the following neural net. Note that all the neurons have sigmoid units, s^ ^ z^ =^ − z and 1 e
the performance function is P =−^ 2
(^1) s 3 − d^
2
Note that the input to the net is i and the outputs of the sigmoid units are s 1, s 2, and^ s 3.
In terms of i , w 1, w 2, w 3, i , s 1, s 2, s 3, and d^ calculate the following partial derivatives:
∂ w 3
∂ w 2
∂ w 1
Part B (24 points)
Consider the following neural net. There are 100 neurons. All neurons have sigmoid units, (^1 ) s z = (^) − z and the performance function is P =− s 100 − d ^2 1 e 2