Answered step by step
Verified Expert Solution
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#
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
Each index referred to as a cell of the matrix is valued as dirty or clean 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 if the cell status is either it will not enter the cell. The vacuum will
stop working if the whole room is cleaned, ie the status of all the cells is either The vacuum
may start cleaning the room from the first cell 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 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. eg cell where it's three neighbors are dirty.
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