Please write a java program that uses an a search algorithm


Question: Please write a Java program that uses an A* search algorithm to solve the Pancake Problem.

INFORMED SEARCH - The Pancake Problem

A messy cook has a disordered stack of 5 differently-sized pancakes [size from 1 to 5] and a spatula that can be inserted at any point in the stack and used to flip all pancakes above it. The goal is for the cook to have them in the "correct" order for the customer, that is, the large on the bottom up to the smallest on top ([5, 4, 3, 2, 1]).

1. Define the problem as a searching problem.

2. Define a possible cost function (backward cost).

3. Define a possible heuristic function (forward cost).

4. Implement an A* algorithm in your language of preference.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Please write a java program that uses an a search algorithm
Reference No:- TGS02735489

Expected delivery within 24 Hours