Computers and Technology
Computers and Technology, 07.06.2021 02:20, jro20

Question: Vaccum World Agent In This Part Of The Assignment You Will Be Writing A Model-Based Reflex Agent For The Vacuum Cleaner World. Implement In Python A Performance-Measuring Environment Simulator For The Vacuum-Cleaner World. Your Implementation Should Be Modular So That The Sensors, Actuators, And Environment Characteristics (Size, Shape, Dirt Placement, Vaccum World Agent

In this part of the assignment you will be writing a model-based reflex agent for the vacuum cleaner world. Implement in Python a performance-measuring environment simulator for the vacuum-cleaner world. Your implementation should be modular so that the sensors, actuators, and environment characteristics (size, shape, dirt placement, etc.) can be changed easily.

Continuum Vacuum World

Consider that the geography of the environment is not just two squares but a grid. The agent can go Up and Down as well as L and R. Consider also that the dirtiness of a grid square is not binary but is a continuum; thus the value is between 0 and 1. The objective is to pick up the maximum amount of dirt it can, within some time constraint, which is specified in terms of the number of moves. Your input includes a grid in the text file environ. txt, with a format like:

GRID: 8 5

DIRT:

0 0.5 0.8 0.1 0.1

0.1 0 0.5 0.5 0.5

0.3 0.5 0.4 0.3 0.2

0.3 0.1 0.7 0.8 0.2

0 0 0.2 0.8 0.3

0 0 0 0.5 0.1

0 0 0 0.5 0.1

0 0 0 0.2 0

MOVES: 30

INITIAL: 35

The grid starts from (1,1) so the robot is initially on the last square of row 3 (value is 0.2).Note that the performance measure in the book allows a 1000 moves, but we have far fewer moves here. "Suck" (S) empties all the dirt in a square, but constitutes a separate move from R, L, U, D. You have to implement your robot in Python.

The input interface must read this text file from the program line: vacuum_agent < environ. txt

At each step it should print out the move it makes and its performance score (e. g. S 0.2). Every 5 steps, it should print out a grid, with a "[ ]" on the square where the robot is now. Thus, with the above input, if the robot has done S U S L S, the output would be:

S 0.2

U 0.2

S 0.7

L 0.7

S 1.2

0 0.5 0.8 0.1 0.1

0.1 0 0.5 [0] 0

0.3 0.5 0.4 0.3 0

0.3 0.1 0.7 0.8 0.2

0 0 0.2 0.8 0.3

0 0 0 0.5 0.1

0 0 0 0.5 0.1

0 0 0 0.2 0

Please don't use any other interactions, so we can take a dump of all your output with: vacuum_agent < environ. txt > output. txt

Performance Measure: Cleaning a dirty square = value of dirt for that square

To-do List 1. Write a reflex program as in the ordinary vacuumWorld - it has no memory, no state and can only sense the present square. It can sense the value of dirt present in and also if any of the boundary edges are walls.

2. Consider that your robot can see the four neighbouring squares, and use a greedy algorithm to decide which square to go to. It should move randomly when choices are equal.

3. Consider that the robot has a knowledge of its grid square (state) and also has a memory (squares visited earlier and their values etc). It can see the four neighbouring squares. Design the best-performing robot. Also provide a comparison table showing how your robots A, B and C perform.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:40, coryowens44
For this assignment you have to write a c program that will take an infix expression as input and display the postfix expression of the input. after converting to the postfix expression, the program should evaluate the expression from the postfix and display the result. what should you submit? write all the code in a single file and upload the .c file. compliance with rules: ucf golden rules apply towards this assignment and submission. assignment rules mentioned in syllabus, are also applied in this submission. the ta and instructor can call any students for explaining any part of the code in order to better assess your authorship and for further clarification if needed. problem: we as humans write math expression in infix notation, e. g. 5 + 2 (the operators are written in-between the operands). in computer's language, however, it is preferred to have the operators on the right side of the operands, ie. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix write a program that takes an "infix" expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % ( example infix expression: (7-3)/(2+2) postfix expression: 7 3 2 2 result: rubric: 1) if code does not compile in eustis server: 0. 2) checking the balance of the parenthesis: 2 points 3) incorrect postfix expression per test case: -2 points 4) correct postfix but incorrect evaluation per test case: -i points 5) handling single digit inputs: maximum 11 points 6) handling two-digit inputs: 100 percent (if pass all test cases)
Answers: 3
image
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, puppylove899
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a. an advanced knowledge of physics and math b. an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, Esmail
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
Do you know the correct answer?
Question: Vaccum World Agent In This Part Of The Assignment You Will Be Writing A Model-Based Reflex...

Questions in other subjects:

Konu
Chemistry, 11.09.2020 14:01
Konu
Social Studies, 11.09.2020 14:01
Konu
Mathematics, 11.09.2020 14:01
Konu
Mathematics, 11.09.2020 14:01
Konu
Geography, 11.09.2020 14:01
Konu
Mathematics, 11.09.2020 14:01
Konu
Mathematics, 11.09.2020 14:01
Konu
Mathematics, 11.09.2020 14:01
Konu
Chemistry, 11.09.2020 14:01
Konu
Mathematics, 11.09.2020 14:01