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 8-puzzle using the Hill Climbing algorithm.
Heuristics: The hill climbing algorithm should be implemented with the following heuristics:
h2(n)= number of tiles displaced from their destined position.
h3(n)= 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)
5
1
4
B
6
2
7
3
8
Output: The following configuration represents the goal state
8
7
6
5
B
4
3
2
1
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!