8-Puzzle Problem
8-Puzzle Problem
DFS (Explore the leftmost child node recursively until you reach a leaf node or a goal state)
• Depth-first search on state-space tree.
• h(X): The number of misplaced tiles (tiles that are not in their goal
position).