Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TASKS Task# 0 1 Consider an Interactive Cognitive Environment ( ICE ) in which autonomous robot is performing cleaning task in the big room that

TASKS
Task#01
Consider an Interactive Cognitive Environment (ICE) in which autonomous robot is performing
cleaning task in the big room that appears to be a matrix of N**
M. Each index referred to as a cell of the matrix is valued as dirty "D" or clean "C". The cells
which are occupied by the stuff in the room are blocked and valued "B". The vacuum can move
in all four directions (up, down, left, right), and if the cell status is D, it will clean the cell and
change the status to "C", if the cell status is either C, it will not enter the cell. The vacuum will
stop working if the whole room is cleaned, i.e., the status of all the cells is either C. The vacuum
may start cleaning the room from the first cell (0,0) or any random location. You will trace the
path of the vacuum and display at each step of the program. * Represent the location of the
vacuum cleaner. Develop a Python code of the above described scenario of the autonomous
robot.
If the vacuum is in a location where all its neighbors (up, down, left and right) are clean (with
status C) it will move in any one of the directions and keep searching the Dirt (D). It will stop
execution if it does not sense any dirt after 10 movements.
If the vacuum is in a location where one more neighbor (up, down, left and right) is dirty it will
move in any one of the directions and will return to the location when it cleans all the dirty cells
of its neighbors. e.g., cell (0,3) where it's three neighbors are dirty.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

6. Discuss the steps involved in conducting a task analysis.

Answered: 1 week ago

Question

8. Explain competency models and the process used to develop them.

Answered: 1 week ago