





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. (5 pts total, -2 for each error, but not negative) TASK ENVIRONMENT. [ 1 student (3%) missed one or more points on this question. ] 2. (10 pts total, -2 for each error, but not negative) OPTIMALITY OF A SEARCH.* [3 students (9%) missed one or more points on this question. ] 3. (15 pts total, 3 pts each) CONSTRAINT SATISFACTION PROBLEMS. [10 students (29%) missed one or more points on this question, mostly on 3.d. ] 4. (10 pts total, 1 pt each) State-Space Search. [26 students (76%) missed one or more points on this question. ] 5. (15 pts total, -2 for each error, but not negative) MINIMAX WITH ALPHA-BETA PRUNING. [9 students (26%) missed one or more points on this question. ] 6. (10 pts total, -2 each wrong answer, but not negative) STATE SPACE SEARCH PROPERTIES. [18 students (53%) missed one or more points on this question. Greedy best first is not complete. ] 7. (5 pts total, -2 pts each error, but not negative) LOCAL SEARCH PROPERTIES. [17 students (50%) missed one or more points on this question. ] 8. (5 pts total, -1 for each wrong answer, but not negative) GENETIC ALGORITHMS. [6 students (18%) missed one or more points on this question. ] 9. (10 pts total, 1 pt each) Puzzle-Solving. [ 10 students (29%) missed one or more points on this question. ]
[ 11 students (32%) missed one or more points on this question. ]
3. (15 pts total, 3 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.
3.a. (3 pts) FORWARD CHECKING. Consider the partial assignment below. Variable E has been assigned value R as shown. Cross out all values that would be eliminated by Forward Checking (FC) after the assignment to variable E.
3.b. (3 pts) 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).
3.c. (3 pts) 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: B, C, D.
3.d. (3 pts) 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: E.
3.e. (3 pts) 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? R, G.
A
F
E
C
B
D
See Section 6.3.2.
See Section 6.2.2.
See Section 6.3.1.
See Section 6.4.
4. (10 pts total, 1 pt each) State-Space Search. Execute Tree Search through this graph (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: D is a successor of itself). As usual, successors are returned in left-to-right order (The successors of S are A,B; of B are D,C). The start node is S and the goal node is G. For each search strategy below, indicate (1) the order in which nodes are expanded, and (2) the path to the goal that was found, if any. Write โNoneโ for the path if the goal was not found. The first one is done for you, as an example.
4.a. DEPTH-FIRST SEARCH: 4.a.(1) Order of expansion: S A B D D D D ... 4.a.(2) Path to goal found: None 4.b. BREADTH-FIRST SEARCH:
4.b.(1) Order of expansion: S A B B D C G [Also OK: S A B B D C D C D G; goaltest after pop]
4.b.(2) Path to goal found: S B C G 4.c. ITERATIVE DEEPENING SEARCH:
4.c.(1) Order of expansion: S S A B S A B B D C S A B D C B D D C G
4.c.(2) Path to goal found: S B C G 4.d. UNIFORM COST SEARCH:
4.d.(1) Order of expansion: S A B B D D C C D G
4.d.(2) Path to goal found: S A B C G 4.e. GREEDY BEST FIRST SEARCH:
4.e.(1) Order of expansion: S B C G
4.e.(2) Path to goal found: S B C G 4.f. A SEARCH:*
4.f.(1) Order of expansion: S A B C G
4.f.(2) Path to goal found: S A B C G
S
A B
D G
7. (5 pts total, -2 pts each error, but not negative) LOCAL SEARCH PROPERTIES. Label the following statements as True (T) or False (F).
7.a. T Local search algorithms generally operate only on one (or a few) current node(s).
7.b. F Local search algorithms generally are used to find the globally optimal solution.
7.c. T In tabu search recently visited states are temporarily excluded from being visited again.
7.d. F Simulated annealing is more likely to accept a bad move late in the search than earlier.
7.e. T Local beam search retains the k best successors of the k states in the previous step.
7.f. T Hill-climbing moves to the best successor of the current state.
8. (5 pts total, -1 for each wrong answer, but not negative) GENETIC ALGORITHMS. You are performing genetic algorithm search for the 8-queens problem. Perform cross-over on these pairs of chromosomes at the indicated division points.
8.a.
or
8.b.
3 2 7 5 2 4 1 1 2 4 4 1 5 1 2 4
or
2 4 4 1 5 4 1 1 3 2 7 5 2 1 2 4
9. (10 pts total, 1 pt each) Puzzle-Solving. The sliding-tile puzzle has three black tiles (B), three white tiles (W), and an empty space (blank). The initial starting state is:
The goal is to have all the white tiles to the left of all the black tiles. The position of the blank is not important.
The puzzle has two legal moves with associated costs:
(1) A tile may move into an adjacent empty location. This has a cost of 1.
(2) A tile may jump over one or two other tiles into the empty location. This has a cost equal to the number of tiles jumped over (1 or 2).
9.a. What is the branching factor? 6
9.b. Does the search space have loops (cycles)? (Y=yes, N=no) Y
9.c. Is breadth-first search optimal? (โY" = yes, โN" = no)
9.d. Is uniform-cost search optimal? (โY" = yes, โN" = no) Y
9.e. Is iterated-deepening search optimal? (โY" = yes, โN" = no)
9.f. Consider a heuristic function h1(n) = number of black tiles to the left of the left-most white tile.
Is this heuristic admissible? (โY" = yes, โN" = no) Y
9.g. Consider a heuristic function h2(n) = number of black tiles to the left of the right-most white tile.
Is this heuristic admissible? (โY" = yes, โN" = no) Y
9.h. Consider a heuristic function h3(n) = number of black tiles to the left of the right-most white tile plus the number of white tiles to the right of the left-most black tile.
Is this heuristic admissible? (โY" = yes, โN" = no) N
9.i. Consider a heuristic function h4(n) = h3(n) / 2.
Is this heuristic admissible? (โY" = yes, โN" = no) Y
9.j. Will A* search with an admissible heuristic find the optimal solution?
(โY" = yes, โN" = no) Y
B B B W W W See Chapter 3.
Cancelled. Everyone gets it right.
Cancelled. Everyone gets it right.