Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ALGORITHM & COMPLEXITY The 8-puzzle is a sliding puzzle made up of a frame of numbered square tiles arranged in a random order with one

ALGORITHM & COMPLEXITY

The 8-puzzle is a sliding puzzle made up of a frame of numbered square tiles arranged in a random order with one tile missing. The n-puzzle, is a famous problem that can be solved using Brute Force algorithms. Figure 1 show the 8-puzzle which have both start and goal states.

image text in transcribed

Based on the diagram in Figure 1 and moving rules in Figure 2, answer the following questions

1. By using Breadth First Search,

a. Produce the solution using State Space Tree.

b. Develop the code using matrix representation approach. You must find the solution from reliable and legit resources (websites, books, papers, journals, etc) and state minimum 5 of them.

c. Calculate the time complexity for 1(b).

2. By using Best First Search,

a. Produce the solution using State Space Tree

b. Develop the code using matrix representation approach. You must find the solution from reliable and legit resources (websites, books, papers, journals, etc) and state minimum 5 of them.

c. Calculate the time complexity for 2(b).

3. Do the complexity analysis by comparing the outcome of question 1(c) and 2(c).

Moving rules: Move empty space (blank) up, move blank to the right, move blank down and move blank to the left

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

Students also viewed these Databases questions