✅ 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.
The agent's actions:
| Action | Cost | Effect |
|---|---|---|
| Right | 1 | Moves right (to room B) |
| Left | 1 | Moves left (to room A) |
| Vacuum | 1 | Room becomes clean |
| NoOp | 0 | - |
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?