1.
Prepare state space graph for the following puzzle problem, where only move left, move right, move up and move down actions are allowed. On the so constructed state space, label the states as A, B, C, ......Z and use the greedy best to test whether it finds the goal or not. Initial state and goal state are shown below. Assume the path cost from one step to another as 1 and heuristic function, f(n), as a number of misplaced cells.
$\text{Initial State:} \; \begin{array}{|c|c|}\hline 1 & 2 \\ \hline \end{array} \qquad \text{Goal State:} \; \begin{array}{|c|c|}\hline & 1 \\ \hline 2 & \\ \hline \end{array}$
[10]