Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The square puzzle problem is defined as follows: On a 3x3 square, each of 8 tiles is labeled with an integer in 1..8; the same

The square puzzle problem is defined as follows:

On a 3x3 square, each of 8 tiles is labeled with an integer in 1..8; the same integer cannot be used twice. The 9th tile is empty. All tiles can slide, one at a time, up, down, left, or right, swapping their position with the empty tile. Given an initial tile placing, slide tiles appropriately to achieve a given final placing.

See below for an initial state and a final (goal) state:

1 2 3
7 4
6 8 5

--> to

1 2 3
8 4
7 6 5

Pick a representation scheme and show the initial and goal states in that scheme.

Define the state transition operators.

Define one cost function g(n) and at least two heuristic functions h1(n) and h2(n). Briefly compare the two heuristic functions and comment on their admissibility. Which one would you, eventually, prefer?

Apply Best-First-Search with both heuristics and briefly comment on it.

Apply A* with both heuristics and briefly comment on it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions