









































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!










































6.034 Final Examination
December 15, 2010
Lectures Recitations Megas Tutorials Percent attended
Quiz Score Grader Q Q Q Q Q
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.
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
CIRCLE any and all rules that match in the first iteration of forward chaining
P 0 P 1 P 2 P 3 P 4
What assertion(s) are added or deleted from the database, as a consequence of this iteration?
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?
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?
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?
Perform the search you wrote down in A1 (with an Extended List). Draw the search tree and give the final path.
Tree:
Path:
Now you are interested in finding a path and the associated distance. Try a Beam Search with a width
“preconceptions” heuristic distances indicated in parentheses at each node.
Tree:
Path, if any:
Extended nodes in order extended:
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.)
explain why not.
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)
Perform Alpha Beta search on the following tree.
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.
Perform alpha-beta search, using initial values of alpha = 5 and beta = 8.
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:________________________________________________
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.
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
How many times did the algorithm need to backtrack?
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
L
L
R
L (MWF)
L (TR)
L
R