
CPSC 5185 Introduction to Artificial Intelligence
Homework Set 2 Due Thursday, September 29, 2005
1. This problem asks you to examine an instance of the 8–puzzle (see page 65 of the text)
and to draw a search tree for the solution. Here is the problem instance.
a) How many moves are legal for the first move?
b) How many numbers are “out of place” in the sense that they must be moved to
attain the goal state?
c) Draw the complete search tree, down to a level at which a solution is found.
Note that this can be done in two moves, so that the tree has the root and two
levels. Please try to be neat.
ANSWER:
a) There are four legal moves for the blank in the center. See the search tree below.
b) The “1” and “4” are out of place and others are in place. Two numbers out of place.
c) Here is the search tree, complete to the first level.