Docsity

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

Toggle sidebar
bg1
Name
email
6.034 Final Examination
December 15, 2010
Circle your TA and principle recitation instructor so that we can more easily identify
with whom you have studied:
Martin Couturier Kenny Donahue Gleb Kuznetsov
Kendra Pugh Mark Seifter Yuan Shen
Robert Berwick Randall Davis Lisa Fisher
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 and with attendance after OCW video goes on line. Your
answers have no effect on your grade.
Lectures Recitations Megas Tutorials
Percent attended
Quiz Score Grader
Q1
Q2
Q3
Q4
Q5
There are 48 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
pf2e
pf2f
pf30
pf31

Partial preview of the text

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

Name

email

6.034 Final Examination

December 15, 2010

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

with whom you have studied:

Martin Couturier Kenny Donahue Gleb Kuznetsov

Kendra Pugh Mark Seifter Yuan Shen

Robert Berwick Randall Davis Lisa Fisher

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 and with attendance after OCW video goes on line. Your

answers have no effect on your grade.

Lectures Recitations Megas Tutorials Percent attended

Quiz Score Grader Q Q Q Q Q

There are 48 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, Rule Systems (50 points)

Kenny has designed two suits for the Soldier Design Competition, and he and Martin like to grapple in the prototypes on Kresge Oval.

  • Kendra insists the suits qualify as “deadly weapons” and Kenny should give them to her for safekeeping.
  • Kenny and Martin insist that they are examples of an “enhanced prosthesis” and that they should be able to keep them The TAs decide to use Rule-Based Systems to resolve their dispute.

Rules:

P0 IF (AND ('(?x) is a Crazy Physicist', '(?x) is an Engineer') THEN ('(?x) builds a Weaponized Suit') )

P1 IF ('(?y)'s (?x) is Cardinal Red' THEN ('(?y)'s (?x) is not US Govt. Property') )

P2 IF (OR (AND ('(?y) is an Engineer', '(?y)'s (?x) is Really Heavy'), '(?y)'s (?x) is stolen by the Air Force') THEN ('(?y)'s (?x) is a Deadly Weapon') )

P3 IF (OR ('(?y) is not evil', '(?y) is a Roboticist') THEN ('(?y)'s suit research is not Evil') )

P4 IF (AND ('(?y)'s (?x) research is not Evil', '(?y)'s (?x) is not US Govt. Property') THEN ('(?y)'s (?x) is an Enhanced Prosthesis') )

Assertions:

A0: (Kenny is a Roboticist)

A1: (Martin is an Engineer)

A2: (Kenny's suit is Cardinal Red)

A3: (Martin's suit is Really Heavy)

Draw Goal Tree Here for Partial Credit

Part B: Forward Chaining (20 points)

Let's say, instead, our assertions list looked like this:

A0: Gleb is an Engineer A1: Gleb's laptop is Really Heavy A2: Gleb's suit is Really Heavy

B1 (4 points)

CIRCLE any and all rules that match in the first iteration of forward chaining

P 0 P 1 P 2 P 3 P 4

B2 (4 points)

What assertion(s) are added or deleted from the database, as a consequence of this iteration?

B3 (4 points)

CIRCLE any and all rules that match in the second iteration of forward chaining

P 0 P 1 P 2 P 3 P 4

B4 (4 points) What assertion(s) are added or deleted from the database, as a consequence of this iteration?

B5 (4 points)

You take the same assertions as at the beginning of problem B, above, and re-order them:

A0: Gleb is an Engineer A1: Gleb's suit is Really Heavy A2: Gleb's laptop is Really Heavy

Now, you start over, and run forward chaining from the beginning, until no new assertions are added to or deleted from the database. Is Gleb's laptop a Deadly Weapon?

A1 (3 points)

Assume you want to retire after doing the least number of different jobs. Of all the basic search algorithms you learned about(that is, excluding branch and bound and A*) which one should you apply

to the graph in order to find a path, with the least search effort , that has the minimum number of nodes from M to R?

A2 Basic Search Chosen Above (7 points)

Perform the search you wrote down in A1 (with an Extended List). Draw the search tree and give the final path.

Tree:

Path:

A3 Beam Search with w=2 (15 points)

Now you are interested in finding a path and the associated distance. Try a Beam Search with a width

w=2 , with an extended list. As before, you are looking for a path from M to R. Use the

“preconceptions” heuristic distances indicated in parentheses at each node.

Tree:

Path, if any:

Extended nodes in order extended:

B2 Thinking about Search (9 points)

Concisely explain why Branch and Bound with Extended List yields a different result than Beam Search in this problem.

What can we say about the path found by Branch and Bound with Extended List? (We're looking for a fairly strong statement here.)

Is there an algorithm that guarantees the same answer as Branch and Bound for the graph in this

problem , but can find the answer with fewer extended paths. If Yes, what is that algorithm? If No,

explain why not.

B3 Permissible Heuristics (6 points)

Suppose you are asked to find the shortest path from H to G in the graphs below. For both of the graphs explain why the heuristic values shown are not valid for A*. Note the differences in the graphs at nodes F and E.

Reason(s):

Reason(s):

Part B: Alpha Beta (35 points)

B1: Straight-forward Alpha Beta(15 points)

Perform Alpha Beta search on the following tree.

  • Indicate pruning by striking through the appropriate edge(s).
  • Mark your steps for partial credit.
  • Fill in the number of static evaluations. - List the leaf nodes in the order that they are statically evaluated.

Indicate in Next Move which of B or C you would go to from A and in Moving Towards which node in the bottom row you are heading toward.

# of evaluations:______ List:______________________________________

Next Move: __________ Moving towards: _____________

B2: Preset Alpha-Beta (15 points)

Perform alpha-beta search, using initial values of alpha = 5 and beta = 8.

  • Indicate pruning by striking through the appropriate edge(s).
  • Mark your steps for partial credit.
  • Fill in the number of static evaluations.
  • List the leaf nodes in the order that they are statically evaluated.

Indicate in Next Move which of B or C you would go to from A and in Moving Towards which node in the bottom row you are heading toward.

# of evaluations:____ List:________________________________________________

Next Move: __________ Moving towards: _____________

B3: Alpha-Beta Properties (5 points)

If you were able to maximally prune a tree while performing Alpha-Beta search, approaximately how many static evaluations would you end up doing for a tree of depth d and branching factor b?

Part A: Picking a Representation (8 points)

In order to fill in this schedule, you decide to set it up as a CSP using meeting times as variables and courses as the values of in the domains. After filling in the domain table, this is what you see:

Variable Domain 10M L8, L 11M L3, L8, L 12M L3, L18, L 1M 2M 3M L 10T R3, L 11T 12T R 1T 2T R 3T

What is wrong with the way that this problem is set up and why?

Part B: Applying Constraints (42 points)

You decide to switch to a new representation that uses the courses as variables and the times as values.

B1 (5 points)

The initial domains are given below. Cross out the values that are incompatible with Constraint (3).

Variable Domain

L8 10M^ 11M^ 12M^ 1M^ 2M^ 3M

L3 11M^ 12M

R3 10T^ 11T^ 12T^ 1T

L21 (MWF) 10M^ 11M

L21 (TR) 10T^ 11T

L18 12M^ 1M

R18 11T^ 1T^ 2T

B3 (5 Points)

How many times did the algorithm need to backtrack?

B4 (10 Points)

It occurs to you that you may be able to accelerate the process of finding a solution if you were to perform domain reduction with propagation through singletons before running the DFS. Fill in your updated domain table with the results of your computations.

Variable Domain

L

L

R

L21 (MWF)

L21 (TR)

L

R

B5 (6 Points)

Run DFS with constraint checking only on your updated domain table:

L

L

R

L (MWF)

L (TR)

L

R