Question: write a python program to Solve the 8 - puzzle using the Hill Climbing algorithm. Heuristics: The hill climbing algorithm should be implemented with the
write a python program to Solve the puzzle using the Hill Climbing algorithm.
Heuristics: The hill climbing algorithm should be implemented with the following heuristics:
hn number of tiles displaced from their destined position.
hn sum of the Manhattan distance of each tile from the goal position.
Input: Both the implementations should only take the following configuration as input B represents the Blank space
B
Output: The following configuration represents the goal state
B
Test the program with the given two heuristics.
Report the number of steps explored in the process. show in code
The code should properly execute.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
