Question: Write a computer program that solves the 15-puzzle using A* search , using two separate heuristic functions (number of displaced tiles and Manhattan distance) .

Write a computer program that solves the 15-puzzle using A* search , using two separate heuristic functions (number of displaced tiles and Manhattan distance) . You do not need to write separate codes, you can write two separate functions for separate heuristic function in the same code.

This assignment requires Java or Python implementation, other programming languages are not accepted at this time. You need to measure computational time and memory used, and compare it with the computational time and memory usage of BFS and IDS depending on the depth of search.

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!