Question: You are at the beach with two empty, unmarked plastic buckets. One bucket is red and the other is green. The red bucket holds a
You are at the beach with two empty, unmarked plastic buckets. One bucket is red and the other is green. The red bucket holds a maximum of four pounds of sand, and the green a maximum of three pounds. How can we get exactly 2 pounds of sand in the red bucket? 1. Define the problem as state space search (initial state, goal states, and operators). The operators must be rigorously defined. You should never end up with an amount of sand in a bucket that is not precisely known. For example, if a bucket is full with sand, emptying half of the bucket is not a legal action because it relies on an estimation of where the half-mark is. 2. Draw the complete state space (its a graph, and not a tree; graphs have cycles). You must explicitly declare the size of the state space (total number of states and total number of arcs). 3. Find all solutions having the shortest sequence of operators. 4. What is the shortest sequence of operators required to reach the goal state where both buckets have 2 pounds of sand each?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
