Artificial Intelligence, Q1, M Fall 21
QUESTION I. Consider a sliding-tile puzzle with three tiles and a blank and are given a problem with the following initial and final states where an "x" represents a blank spot. Assume that you always try moving the blank first right, then left, then up, and then down.
Initial:
x
1
2
3
Goal:
2
3
x
a. How many possible states are there, either reachable or unreachable, from the given start state?
b. Draw the complete search space reachable from the given start state as a graph, making sure that a given state occurs only once.
c. If we treated the search space as a tree, what would the result of a breadth-first search be? Of a depth-first search?
d. If we treat the search space as a graph, what would the result of a breadth-first search be? Of a depth-first search?
e. Suppose we use a hill climbing search algorithm on this problem with an evaluation function that counts the number of misplaced tiles. Would this lead to a solution?