CPE%20480%20Midterm%20F03-1

CPE 480 Midterm% - CPE/CSC 480 ARTIFICIAL INTELLIGENCE M I D T E R M PA R T 2 SECTION 1 FA L L 2 0 0 3 P ROF F RAN Z J K URF ESS C AL P OLY C OM P

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CPE/CSC 480 ARTIFICIAL INTELLIGENCE M I D T E R M PA R T 2 SECTION 1 FA L L 2 0 0 3 P ROF. F RAN Z J. K URF ESS C AL P OLY, C OM P UTER S CIE NCE D EPARTM E NT This is the second Fall 2003 midterm exam for the CPE/CSC 480 class. You may use textbooks, course notes, or other material, but you must formulate the text for your answers yourself. The use of calculators or computers is allowed for viewing documents or for numerical calculations, but not for the execution of algorithms or programs to compute solutions for exam questions. The exam time is 60 minutes. Student Name: Signature: Date: CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 PART 1: M ULTIP LE C HOI CE Q UES TIONS Mark the answer you think is correct. Unless otherwise noted, there is only one correct answer. Each question is worth 3 points. a) The IDA* algorithm is a variation of A* with the following properties? the nodes within a given contour are explored in a depth-first manner, and the contour is expanded step by step in addition to the current path, it stores the information about the best alternative to explore in case the current path doesn't lead to the goal it drops the least promising nodes from the fringe (search queue) when it runs out of memory it utilizes contours to reduce the number of nodes to explore b) What is the most important difference between local and conventional (uninformed and informed) search methods? the search algorithm investigates only nodes that are reachable from the current node a solution has to be found, but the actual path to the solution is irrelevant it works better in continuous environments the analogy to landscapes with hills and valleys is more appealing than the one with trees c) What is the best characterization of mutation in genetic algorithms? an individual's state description is modified randomly the state description of the parents is split at the crossover point, and they exchange parts useful components within individuals are preserved across generations the duplication of a randomly selected individual d) What constitutes a state in a constraint satisfaction problem? the set of all variables used in the specification of the problem the set of all variables together with their respective potential values an assignment of values to some or all variables an assignment of values to all variables e) What is the contingency problem in the context of game-playing programs? a degree of uncertainty, introduced by the presence of an opponent or by chance elements the outcome of a move may not be visible due to search limitations the need for arbitration (e.g. by a referee) in some types of games the elimination of branches that will never be explored F RANZ J. K URFE SS P AGE 2 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 PART 2: S HORT Q UES TIONS In this part of the exam, you should answer the questions in one paragraph per aspect. a) What is the importance of using contours for the A* search method? [5 points] F RANZ J. K URFE SS P AGE 3 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 b) What happens in the minimax algorithm if MIN doesn't' select the best move (from MIN's perspective), but a subotpimal one? 5 points F RANZ J. K URFE SS P AGE 4 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 PART 3: M AZE S EARCH In this scenario, an agent is trying to traverse a maze from the starting point S to the goal point G. At each step, the agent can move in one of the four compass directions; each move, independent of the direction, costs the agent one cost unit. The agent always considers alternative moves clockwise, i.e. in the following order: 1. 2. 3. 4. Move North Move East Move South Move West In the following parts, you need to apply different search algorithms to solve this navigation problem. Number the squares in the order the agents visits the squares, starting with 0 at the starting point. In those algorithms that use it, calculate the path cost on the basis of one cost unit per move. The heuristics to use in the respective algorithms is the difference between the horizontal position of the current node and the goal node, plus the difference in the vertical position of the current node [xn,yn] and the goal node [xg,yg], adjusted by a small value to break symmetries: h([x,y]) = (|xg - xn|) + 0.99(|yg - yn|) So, for the starting point, node [1,8], the heuristics with respect to the goal, node [5,3], is (5-1) + 0.99*(8-3) = 4 + 4.95 = 8.95. For the following algorithms, you need to do the following tasks Mark the sequence in which the nodes are visited in the maze. Draw the corresponding search tree. Fill in the table with the information about the search trace. You can perform the algorithms in an off-line manner. This means that you can "jump" from the current node to the next node in the queue, without backtracking through already visited nodes. You can also assume that nodes already in the queue or previously visited will not be examined again, thus avoiding cycles. F RANZ J. K URFE SS P AGE 5 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 a) Traverse the maze from the starting point S to the goal G according to the Greedy Best-First Search method. Calculate the value of the heuristic for each accessible tile in the maze and write it in the tile, mark the path selected by the agent, and record the respective information in the table below. [10 points] 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 G S F RANZ J. K URFE SS P AGE 6 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 Please note that not all columns may be required for a particular search method, and that the size of the table may not reflect the actual length of the trace. The fringe should be ordered in such a way that the next node to be visited is at the beginning of the queue (in the leftmost position). Mark the newly added nodes in each step(e.g. by underlining or circling them), and for each node indicate the value that is used as the ordering criterion in the fringe. Current P a t h H e u Step F-Cost Fringe (Queue) N o d e C o s t ristic S 0 8.95 8.95 ([2,8],7.95) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 F RANZ J. K URFE SS P AGE 7 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 b) Traverse the maze from the starting point S to the goal G according to the A* Search method. For this algorithm, calculate the value of the f-cost for each accessible tile in the maze and write it in the tile, mark the path selected by the agent, and record the respective information in the table below. [10 points] 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 G S F RANZ J. K URFE SS P AGE 8 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 Please use the same conventions as in the previous part of this task. Current P a t h H e u Step F-Cost Fringe (Queue) N o d e C o s t ristic S 0 8.95 8.95 ([2,8],8.95) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 F RANZ J. K URFE SS P AGE 9 9/15/04 CPE 480 A RTIF ICIAL I NTEL LIGENCE M IDTE RM F03 c) Are local search algorithms suitable for such a maze traversal problem with the given heuristic? [5 points] Yes No Explain your answer. Total Points: F RANZ J. K URFE SS P AGE 10 9/15/04 ...
View Full Document

This note was uploaded on 04/02/2008 for the course CPE 480 taught by Professor Clark during the Fall '07 term at Cal Poly.

Ask a homework question - tutors are online