





































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!






































Indicate the approximate percent of the lectures, mega recitations, recitations, and tutorials you have attended so that we can better gauge their correlation with quiz and final performance. Your answers have no effect on your grade.
Lectures Recitations Megas Tutorials Percent attended
Quiz Score Grader Q Q Q Q Q
The administration, worried about the social habits of its students, agrees to finance cross-school- mixers. The 034 TA's decide to fly to England and mix with the students at Hogwarts School of Witchcraft and Wizardry. A merry old time ensues, but the morning after, due to an accidental confundo charm (and perhaps also a large consumption of butterbeer), no one can remember the events that transpired. The 034 staff, in an attempt to show off the power of Muggle logic, promise they can piece together the important events with a rule based system.
Using their keen sense of logic, Matt, Erica, and Mark are able to piece together the following rules:
RULES: R0 : IF (?X) goes to MIT, THEN (?X) is a muggle, (?X) consumed butterbeer
R1: IF (?X) made math jokes AND (?X) consumed butterbeer THEN (?X) was transfigured into a porcupine
R2: IF (?Y) fancies (?X) AND (?X) fancies (?Y) AND (?Y) is a muggle THEN (?X) snogged (?Y)
R3: IF (?X) fancies (?Y) AND (?X) made math jokes, THEN (?Y) fancies (?X)
R4: IF (?X) made math jokes THEN (?X) goes to MIT
You start with the following list of assertions which is all you have to go on.
ASSERTIONS: A0: Olga made math jokes A1: Yuan goes to MIT A2: Jeremy made math jokes A3: Hermione consumed butterbeer A4: Jeremy fancies Hermione
Part B: Backward Chaining (26 points)
Ron Weasley claims that Hermione snogged Jeremy. Use backward chaining to determine if this event occurred. Draw the goal tree for this statement. Partial credit will be given for partial completion of the goal tree.
Hermione snogged Jeremy
Is the claim that Hermione snogged Jeremy true?
Aliens have invaded the MIT campus, thinking that the Stata Center was their mothership. Despite their realization that it was not, they went ahead with their invasion plan anyway. Advanced alien technology has disabled use of phones and internet, so you and your friends decide to go across the river to Boston to get help and to tell everyone whatโs going on. You decide to use the secret underground network of tunnels underneath the campus to get from your starting location at S , to the subway station at T.
You have the above graph of the underground tunnels. The edges are labeled with distances, and the nodes are labeled with a heuristic estimate to your destination at T. When performing search, ties are broken by choosing the node that is alphabetically first.
Part B: Beam Search (15 Points)
B1: Next, you try to pick your route using Beam Search with a beam width of 2, using an extended list. In the event of a tie, use the alphabetical order of the final node on the contending partial paths. Draw your search tree:
Also, show your extended list at the time your search terminates:
B2: What is the route found using beam search?
Part C: Branch and Bound (20 Points)
C1: Lastly, you try to plan your route using Branch and Bound using the path lengths indicated on the graph and also using an extended list. Draw your search tree and extended list below:
Also, show your extended list at the time your search terminates:
C2: What is the route found using branch and bound?
C3: If you repeat the search using the A algorithm with the heuristic values indicated on the graph,* will you find the same route? Include a brief explanation of why or why not.
C: Trace the steps of Alpha beta pruning on the same tree above. Note that alpha, betas are updated before pruning occurs, if in doubt consult the reference implementation given on the tear-off sheet. List the leaf nodes in the order that they are statically evaluated. (10 pts)
What are the final Alpha Beta values at node E (4pts) Alpha = Beta =
A
B C D
G I
J [ 3 ]
F [ 1 ]
Q [ 15 ]
K
E
P [ 3 ]
H [ 5 ]
N [ 10 ]
O [ 4 ]
T [ 1 ]
R [ 6 ]
M
L [ 24 ]
S [ 2 ]
What are the final Alpha Beta values at node A (4pts) Alpha = Beta =
D: For a full binary tree (branching factor = 2) of depth 3 (4 layers of nodes including the layer with the root node, 8 nodes in the bottom layer), with the root node being a MAX node, what is the fraction of leaf nodes that are statically evaluated under alpha beta pruning under conditions of maximum pruning? (11 pts)
Use the space below to show your work:
E: For a given depth, d, does the fraction requested in part D increase, decrease, or stay the same with increasing b. Circle your answer (7 pts)
Increase
Decrease
Stay the same
Explain:
You decide to begin by designating Dome #10 as I ndustrial. Using forward checking (no propagation beyond the neighbors of the just-assigned variable), show how the domains of the city's domes are reduced by crossing out the appropriate letters in the map below:
Next, show how the domains are reduced if you designate Dome #10 as I ndustrial, and then propagate constraints using forward checking and propagation through singleton domains.
Yuan says that you are right to pick a dome type for Dome #10 first, but Olga advises you to start with Dome #2 instead. What is the reasoning behind each of these suggestions?
The Mario Bros. have hired you to help them identify potential dangers during their frequent expeditions to explore strange new worlds, battle evil monsters, and attempt to rescue some princesses.
You decide to use Nearest Neighbors to classify new creatures that Mario might encounter, based on their positions on a map. In the map, friendly creatures are marked with a square, and enemies are marked with monster icons.
A1 (12 points): On the following graph, draw the decision boundaries produced by 1-nearest- neighbors.
Part B: ID-Trees (30 Points)
It turns out that enemies move around the world, so a simple K-Nearest-Neighbors on their location won't do a very good job of protecting Mario. Instead, you decide to use an Identification Tree, based on some characteristics of the creatures in this world, to classify creatures as Enemies (Enemy=Y) and Friends (Enemy=N). The other 5 characteristics you note are in the table below.
Character Enemy? Talks? Boss? Annoying? Killable with Jump?
A Yoshi N N N N N
B Tree N N N N N
C Luigi N N N N N
D Toad N Y N N N
E Peach N Y N Y N
F Bowser Y N Y N N
G Bob-omb Y N N N Y
H Goomba Y N N N Y
I Piranha Y N N Y N
J Dry Bones Y N N Y N
K Chain Chomp
L Thwomp Y N N Y N
M Boo Y N N Y N
N Koopa Troopa
B1 (8 points): What is the disorder of the test "Boss = Y"? Leave your answer in terms of fractions, real numbers, and logarithms.
B2 (7 points): What is the disorder of the test "Annoying = Y"? Leave your answer in terms of fractions, real numbers, and logarithms.
B3 (15 points): Draw the disorder minimizing identification tree Mario can use to correctly decide whether any of the above examples is an enemy (Enemy=Y) or friend (Enemy=N). Use the letters provided next to characters' names to show how the characters are separated by each decision.
Hint: neither Boss nor Annoying are the first test.