Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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.
(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 1 2 12 4 3 2 1 a b 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started