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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started