Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (12 points) Imagine a problem where there are n numbered blocks on top of a table. Blocks can be stacked on top of each

image text in transcribed

3. (12 points) Imagine a problem where there are n numbered blocks on top of a table. Blocks can be stacked on top of each other. There are also k discreet locations on the table. The goal is to stack the blocks such that they are ordered from the smallest to the largest on any of the locations. The starting block positions can be random. An example for n = 4 and k = 3 is given below. . a, b and c denote the locations 1,2,3 and 4 denote the blocks 3 4 4 3 2 1 12 a b c An example starting state. This can be random. An example goal state. The important thing is the block order and the location You can only move one block at a time. You cannot move a block if there is another block on top of it. If you were to formulate this as a search problem (make sure to provide a general formulation and not something specific to the above example): (a) (4 points) What would be your state representation? What would be your goal test for this representation? (b) (8 points) What algorithm would you chose to solve this problem? If any, what heuristic would you use and why? Would this heuristic favor solution efficiency or computational efficiency? 3. (12 points) Imagine a problem where there are n numbered blocks on top of a table. Blocks can be stacked on top of each other. There are also k discreet locations on the table. The goal is to stack the blocks such that they are ordered from the smallest to the largest on any of the locations. The starting block positions can be random. An example for n = 4 and k = 3 is given below. . a, b and c denote the locations 1,2,3 and 4 denote the blocks 3 4 4 3 2 1 12 a b c An example starting state. This can be random. An example goal state. The important thing is the block order and the location You can only move one block at a time. You cannot move a block if there is another block on top of it. If you were to formulate this as a search problem (make sure to provide a general formulation and not something specific to the above example): (a) (4 points) What would be your state representation? What would be your goal test for this representation? (b) (8 points) What algorithm would you chose to solve this problem? If any, what heuristic would you use and why? Would this heuristic favor solution efficiency or computational efficiency

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

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

How would you describe your typical day at work?

Answered: 1 week ago