Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question5: [8 points) This sliding puzzle game is played on an M*N grid, consisting of numbered squares (1..(M*N-2)), with two squares missing. The goal of

image text in transcribed

Question5: [8 points) This sliding puzzle game is played on an M*N grid, consisting of numbered squares (1..(M*N-2)), with two squares missing. The goal of the game is to move from a given initial state of the grid to a given goal state, using the smallest possible number of moves. In each move, one numbered square can slide to the place of an empty space (and in turn reveal another empty space of its old position). | >12 43 4 3 2 || 4 | 3 5 | 6 | 7 || 5 | 6 | 7 Three valid states. States (b) and (c) can both be reached from state (a) with one move. (1). Define a state, the state space of the problem and the rules for moving from state to state (2). Propose a heuristic function to choose the next best state (a) Is the function admissible? (b) Is the function consistent? (c) Will your heuristic function lead to an optimal solution, if it's used with A*? Question5: [8 points) This sliding puzzle game is played on an M*N grid, consisting of numbered squares (1..(M*N-2)), with two squares missing. The goal of the game is to move from a given initial state of the grid to a given goal state, using the smallest possible number of moves. In each move, one numbered square can slide to the place of an empty space (and in turn reveal another empty space of its old position). | >12 43 4 3 2 || 4 | 3 5 | 6 | 7 || 5 | 6 | 7 Three valid states. States (b) and (c) can both be reached from state (a) with one move. (1). Define a state, the state space of the problem and the rules for moving from state to state (2). Propose a heuristic function to choose the next best state (a) Is the function admissible? (b) Is the function consistent? (c) Will your heuristic function lead to an optimal solution, if it's used with A*

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions