



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!




YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:
The exam will begin on the next page. Please, do not turn the page until told.
This page summarizes the points available for each question so you can plan your time.
2. (12 pts total, 1 pt each) AGENT CONCEPTS. For each of the following terms on the left, write in the letter corresponding to the best answer or the correct definition on the right. The first one is done for you, as an example. . A. Agent A Perceives environment by sensors, acts by actuators Percept B Maps any given percept sequence to an action Percept Sequence C Agent that acts to maximize its expected performance measure Environment D Sensors give the complete state of environment at each time Sensor E Evaluates any given sequence of environment states for utility Rational Agent F Next state of environment is fixed by current state and action Actuator G Complete history of everything agent has perceived Deterministic Environment H Environment can change while agent is deliberating Dynamic Environment I Process of removing detail from a representation Performance Measure J Agent’s perceptual inputs at any given instant Agent Function K Any mechanism that allows an agent to acquire a percept Abstraction L Any mechanism that allows an agent to execute an action Fully Observable M Context around an agent; provides percepts and accepts actions 3. (20 pts total, 1 pt each) PATH-FINDING SEARCH CONCEPTS. For each of the following terms on the left, write in the letter corresponding to the best answer or the correct definition on the right. .. Informed Search A All states reachable from the initial state by a sequence of actions Search Node B Guaranteed to find a solution if one is accessible Uninformed Search C Never over-estimates cost of cheapest path to a goal state Path D Maximum number of successors of any node Optimal Search E Set of all leaf nodes available for expansion at any given time Complete Search F Estimates cost of cheapest path from current state to goal state Expand a state G Sequence of states connected by a sequence of actions State Space H Represents a state in the state space Actions I Guaranteed to find lowest cost among all solutions Search Strategy J A node with no current children in the search tree Greedy Best-first Search K How a search algorithm chooses which node to expand next Transition Model L For n’ a successor of n from action a, h(n) ≤ cost(n, a, n’) + h(n’) Admissible Heuristic M Represents an action in the state space A* Search N Apply each legal action to state, generating a new set of states Heuristic Function O The choices available to an agent at a search node Link between nodes P Returns the state that results from doing action a in state s Leaf node Q Strategies with no additional information beyond problem definition Branching Factor R Uses problem-specific knowledge beyond the definition of problem Consistent Heuristic S Tries to expand the node believed to be closest to the goal Frontier T Tries to minimize the total estimated solution cost
6. (20 pts total, -1 for each wrong answer, but not negative) SEARCH EVALUATION CRITERIA. Fill in the values of the four evaluation criteria. Assume a tree search where b is the finite branching factor; d is the depth to the shallowest goal node; m is the maximum depth of the search tree; l is the depth limit; step costs are greater than some positive ε, but not necessarily identical; path cost is a monotonically increasing function of path length (only); and in Bidirectional search both directions use breadth-first search. [Hint: These conditions have been chosen to match Figure 3.21, page 91 (3rd^ ed.).] Criterion Complete? Time complexity Space complexity Optimal? Breadth-First Uniform-Cost Depth-First Depth-Limited Iterative Deepening Bidirectional (if applicable) 7. (8 pts total, 1 pt each) THE SLIDING-TILE PUZZLE consists of three black tiles (B), three white tiles (W), and an empty space (blank). The 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: (1) A tile may move into an adjacent empty location. This has a cost of 1. (2) A tile may hop over one or two other tiles into the empty location. This has a cost equal to the number of tiles jumped over.
7a. What is the branching factor?
7b. Does the search space have loops (cycles)? (Y=yes, N=no)
7c. Is breadth-first search optimal? (“Y" = yes, “N" = no)
7d. Is uniform-cost search optimal? (“Y" = yes, “N" = no)
7e. Consider a heuristic function h 1 (n) = the number of black tiles to the left of the left- most white tile. Is this heuristic admissible? (“Y" = yes, “N" = no)
7f. Consider a heuristic function h 2 (n) = the number of black tiles to the left of the right- most white tile. Is this heuristic admissible? (“Y" = yes, “N" = no)
7g. Consider a heuristic function h 3 (n) = the 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)
7h. Consider a heuristic function h 4 (n) = h 3 (n) / 2. Is this heuristic admissible? (“Y" = yes, “N" = no)
8. (15 pts total, 3 pts each) CONSTRAINT SATISFACTION PROBLEMS. This problem asks about the Australia Coloring Problem. Each region must be colored one of Red (R), Green (G), or Blue (B). Neighboring regions must be a different color.
8a. (3pts total, -1 for each wrong answer, but not negative) FORWARD CHECKING. Cross out all values that would be eliminated by Forward Checking, after variable Q has just been assigned value R as shown: WA NT Q NSW V SA T R G B R G B R R G B R G B R G B R G B
8b. (3pts total, -1 for each wrong answer, but not negative) ARC CONSISTENCY. Cross out all values that would be eliminated by Arc Consistency (AC-3 in your book). WA NT Q NSW V SA T R R G B R G B R G B R G B G R G B
8c. (3pts total, -1 for each wrong answer, but not negative) MINIMUM-REMAINING- VALUES HEURISTIC. Consider the assignment below. WA and NT are already assigned. List all unassigned variables that might be selected by the Minimum- Remaining-Values (MRV) Heuristic:..
WA NT Q NSW V SA T R G R G B R G R G B R G R G B
8d. (3pts total, -1 for each wrong answer, but not negative) DEGREE HEURISTIC. Consider the assignment below. (It is the same assignment as in problem 8c above.) WA and NT are already assigned. List all unassigned variables that might be selected by the Degree Heuristic:..
WA NT Q NSW V SA T R G R G B R G R G B R G R G B
8e. (3pts total) MIN-CONFLICTS HEURISTIC. Consider the assignment below. SA has been selected to be assigned a new value What new value would be chosen below for SA by the Min-Conflicts Heuristic?..
WA NT Q NSW V SA T R G B R G? B
Australia Coloring Problem Constraint Graph
WA
NT
Q
SA
T
NSW W
V