logo

Crowdly

The Vaccuum World contains two rooms: A  and  B , and an intelligent agent, the...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The Vaccuum World contains two rooms: A and B, and an intelligent agent, the vaccuum cleaner. The task of the agent is to keep the rooms clean.

tolmuimejamaailm

The agent's actions:

ActionCostEffect
Right1Moves right (to room B)
Left1Moves left (to room A)
Vacuum1Room becomes clean
NoOp0-

At each step the agent receives sensor data as input: 1.) room, A or B 2.) the state, clean or dirty. After that the agent performs one action. The agent's program:

def decide_action(room, status):

if status == "dirty": return "Vacuum"

elif room == "A": return "Right"

else: return "Left"

Suppose the agent works n=10 steps from the state given in the picture above. We evaluate the performance of the agent as follows:

What is the performance of the agent after 10 steps?

More questions like this

Want instant access to all verified answers on moodle.taltech.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome