Answer to Question #146947 in Python for hoor

Question #146947
After having successfully completed the AI course, you get a job in another town (as an AI expert of course), and you have to move out of your apartment. You have already packed all your belongings in nine moving boxes, scattered around the apartment, now all you have left to do is to move these boxes into the moving truck, which is parked just outside of the apartment. The boxes are too big to carry, so you have to push them between the rooms. The following graph shows the four rooms in the apartment, the truck, how many boxes are initially in which rooms, and how the rooms are connected:

On each turn, you can either move or push a box into an adjacent location, in any direction: north, south, east, west. When this story begins, you have just parked the truck.
Implement the given scenario & Formulate this problem as a search problem, i.e.:
• Design suitable representation of the search states?
• Design a method of initial state
• Set goal state
• Calculate path cost at each step.
1
Expert's answer
2020-11-26T08:28:28-0500
  1. move "\\implies" hall box (1 box) into truck
  2. move "\\implies" living room (1 box) "\\implies" hall box & move bedroom (1 box) "\\implies" living room box
  3. move "\\implies" hall box (1 box) "\\implies" truck box
  4. move "\\implies" kitchen box (1 box) "\\implies" bedroom


Repeat thees 4 steps until boxes reached an track:


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS