




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!





1. (10 pts total, -2 pts for each error, but not negative) MINI-MAX SEARCH IN GAME TREES. 2. (10 pts total, -2 for each error, but not negative) ALPHA-BETA PRUNING. 3. (10 pts total, 2 pts each) CONSTRAINT SATISFACTION PROBLEMS. 4. (10 pts total, 2 pts each) State-Space Search.
6. (5 pts total, -2 pts each wrong answer, but not negative) Task environment. 7. (20 pts total, 1 pt each) SEARCH PROPERTIES. 8. (10 pts total, -1 each error, but not negative) State Space Search. 9. (10 pts total, -2 each error, but not negative) Optimality of A Search.*
3. (10 pts total, 2 pts each) CONSTRAINT SATISFACTION PROBLEMS. This problem asks about the Map Coloring Problem. Each region must be colored one of Red (R), Green (G), or Blue (B).
Neighboring regions must be a different color. The map (left) and constraint graph (right) are below.
3a. (2 pts total, -1 for each error, but not negative) FORWARD CHECKING. Consider the partial assignment below. Variable B has been assigned value R as shown. Cross out all values that would be eliminated by Forward Checking (FC) after the assignment to variable B.
3b. (2 pts total, -1 for each error, but not negative) ARC CONSISTENCY. Consider the partial assignment below. Variables A and B have been assigned values as shown. Cross out all other values that would be eliminated by Arc Consistency (AC, also called AC-3 in your book).
3c. (2 pts total, -1 for each error, but not negative) MINIMUM-REMAINING-VALUES HEURISTIC. Consider the partial assignment below. Variable A is already assigned value R, and Arc Consistency is already done. List all unassigned variables that might possibly be selected by the Minimum-Remaining- Values (MRV) Heuristic:.
3d. (2 pts total, -1 for each error, but not negative) DEGREE HEURISTIC. Consider the partial assignment below. (It is the same assignment as in problem 3c above.) List all unassigned variables that might possibly be selected by the Degree Heuristic:.
3e. (2 pts total) MIN-CONFLICTS HEURISTIC. Consider the complete but inconsistent assignment below. E has just now been selected to be assigned a new value. List all new values that might be chosen below for E by the Min-Conflicts Heuristic?.
AA AB
AD AE
C
F
A
E F
B C
D
4. (10 pts total, 2 pts each) State-Space Search. Execute Tree Search through this graph (i.e., do not remember visited nodes, so repeated nodes are possible). It is not a tree, but pretend you don’t know that. Step costs are given next to each arc, and heuristic values are given next to each node (as h=x). The successors of each node are indicated by the arrows out of that node. (Note: C is a successor of itself). For each search strategy below, indicate the order in which nodes are expanded (i.e., to expand a node means that its children are generated), ending with the goal node that is returned as the result from the search. If the search gets stuck in a loop, show the repeating sequence and then “ …. ”
4.a. (2 pts, -1 for each wrong answer, but not negative) UNIFORM COST SEARCH.
4.b. (2 pts, -1 for each wrong answer, but not negative) GREEDY (BEST-FIRST) SEARCH.
4.c (2 pts, -1 for each wrong answer, but not negative) ITERATED DEEPENING SEARCH.
4.d. (2 pts, -1 for each wrong answer, but not negative) A SEARCH.*
4.e. (2 pts, -1 for each wrong answer, but not negative) OPTIMALITY.
Did Uniform Cost Search find the optimal goal? Why or why not?
Did A* Search find the optimal goal? Why or why not?
S
A B
D E F
G1 G2 G
h=13^ C
8. (10 pts total, -1 each error, but not negative) State Space Search. This is a classic brain-teaser puzzle:
9. (10 pts total, -2 each error, but not negative) Optimality of A Search.* You know that A* tree search with an admissible heuristic is an optimal search strategy. Recall that:
g(n) = true path cost so far h(n) = estimated optimal cost from n to goal ≤ true optimal cost f(n) = g(n) + h(n) = estimated total optimal path cost ≤ true total optimal cost
The following is a proof that A* tree search (queue sorted by f(n) ) is optimal if the heuristic is admissible. The lines of the proof are labeled A through G. Unfortunately, they have been mixed up (permuted).
Let ng be the first goal node popped off the queue. Let no be any other node still on the queue. We wish to prove that the path through no can never be extended to a path to any goal node that costs less than the path to ng that we just found.
A: true total cost of path to ng B: ≤ f(no) // because queue is sorted by f and ng came off queue first C: ≤ g(no) + true optimal cost to goal from no // because h is admissible D: = f(ng) // by definition of f, with h(ng) = 0 because ng is a goal node E: = g(no) + h(no) // by definition of f F: = g(ng) // because ng represents a complete path G: = true total optimal path cost through no
Fill in the blanks with the letters B, C, D, E, F ,and G to prove that the true total cost of the path to ng is less than or equal to the true total optimal path cost through no. The first and last letters, A and G, have been done for you as an example.