Docsity

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

Toggle sidebar
bg1
6.034 Final Examination
December 15, 2008
Name
EMail
Quiz number Maximum Score Grader
1 100
2 100
3 100
4 100
5 100
There are 33 pages in this final, including this one.
Additional pages of 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

Partial preview of the text

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

6.034 Final Examination

December 15, 2008

Name

EMail

Quiz number Maximum Score Grader

1 100

2 100

3 100

4 100

5 100

There are 33 pages in this final, including this one.

Additional pages of 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, Question 1, Rules (50 points)

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:

P0: IF( '(?x) is a mammal',

THEN( '(?x) is not a crocodile' ) )

P1: IF( AND( '(?x) is not a crocodile',

'(?x) lives underwater' ),

THEN( '(?x) is a manatee'

P2: IF( AND( '(?x) is a mammal',

'(?x) lives underwater' ),

THEN( '(?x) is a hippo' ) )

P3: IF( OR( '(?x) is a crocodile',

'(?x) is a hippo' ),

THEN( '(?x) is dangerous' ) )

P4: IF( '(?x) is not a crocodile',

THEN( '(?x) is safe' ) )

Assertions:

A0: ('Spike is a mammal')

A1: ('Fido is a mammal')

A2: ('Fido lives underwater')

A3: ('Rover is a crocodile')

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?

Quiz 1, Question 2, Search (50 points)

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.

Break all ties in lexicographic order, treating the path from start to finish as a

character string. Thus, S-B1-B2-B3 comes before S-B1-P13-B3.

B 2

B 1

B 3

(15) P^13

P2G

G S

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.

S

A

B C

D

E

G

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?

Quiz 2, Question 1, Games (50 points)

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

A

B C^ D

Min

Max

Max

E

F

G

H

I

J

K L M

S T U W X Y Z

O P Q

N R

V

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).

Quiz 2, Question 2, Constraints (50 points)

Four 6.034 TAs ( Mark, Mike, Rob, Sam ) are trying to write eight questions for a final exam (somewhat like this one):

  1. C onstraints
  2. O ptimal Search
  3. G ames
  4. R ules
  5. I D-Trees
  6. N eural Nets
  7. S VMs
  8. B oosting

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.

Quiz 3, Question 1, NNand ID trees (50 points)

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.

Quiz 3, Question 2, Neural Nets (50 points)

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:

∂ P

∂ w 3

∂ P

∂ w 2

∂ P

∂ w 1

Part B (24 points)

Consider the following neural net. There are 100 neurons. All neurons have sigmoid units, (^1 ) sz = (^) − z and the performance function is P =−  s 100 − d ^2 1 e 2