Docsity

Artificial Intelligence Final exam - Fall 2009, Exams of Artificial Intelligence

Toggle sidebar
bg1
Name
email
6.034 Final Examination
December 16, 2009
Circle your TA and principle recitation instructor so that we can more easily identify
with whom you have studied:
Erica Cooper Matthew Peairs Mark Seifter
Yuan Shen Jeremy Smith Olga Wichrowska
Robert Berwick Randall Davis Gregory Martin
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
Q1
Q2
Q3
Q4
Q5
There are 38 pages in this final examination, including this one. In addition, tear-
off sheets are provided at the end with duplicate drawings and data. As always,
open book, open notes, open just about everything.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d

Partial preview of the text

Download Artificial Intelligence Final exam - Fall 2009 and more Exams Artificial Intelligence in PDF only on Docsity!

Name

email

6.034 Final Examination

December 16, 2009

Circle your TA and principle recitation instructor so that we can more easily identify

with whom you have studied:

Erica Cooper Matthew Peairs Mark Seifter

Yuan Shen Jeremy Smith Olga Wichrowska

Robert Berwick Randall Davis Gregory Martin

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

There are 38 pages in this final examination, including this one. In addition, tear-

off sheets are provided at the end with duplicate drawings and data. As always,

open book, open notes, open just about everything.

Quiz 1, Problem 1, Rules (50 points)

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?

Quiz 1, Problem 2: Search (50 points)

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.

Note that node G is not the goal node in this problem.

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 ]

MAX

MIN

MAX

MIN

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:

Part A (12 points)

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:

Part B (12 points)

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.

Part D (14 points)

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?

Yuan:

Olga:

Quiz 3, Problem 1:

KNN & ID-Trees (50 points)

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.

Part A: Nearest Neighbors (20 Points)

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

Y N N Y N

L Thwomp Y N N Y N

M Boo Y N N Y N

N Koopa Troopa

Y N N Y Y

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.