Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Please note the modification of the grid-world configuration (now it is 3 by 3), and the initial state setting (ONLY the top 3 squares

1. Please note the modification of the grid-world configuration (now it is 3 by 3), and the initial state setting (ONLY the top 3 squares are dirty, and the agent location is in the center of the grid-world) from the distributed hard-copy.

Part (A)

In Python, write (or adapt from open-source implementation) a computer program to implement the A* algorithm for the vacuum cleaning agents problem for an optimal sequence of actions. Run the program for the 3 by 3 grid world with top 3 squares dirty, and agent in the center square (second row and second column) as the initial state. Print out the sequence of actions and the associated sequence of states in one optimal path returned by the program. Also print out the optimal paths cost.

Part (B)

Run your A* algorithm for the same problem, using the alternative heuristic function h. Again, print out the sequence of actions and the associated sequence of states in one optimal path returned by the program. Also print out the optimal paths cost.

Moreover, print out the number of nodes generated by using h2 and by using h in your program runs.

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

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions