AIMA Artificial Intelligence a modern approch

AIMA-exercises is an open-source community of students, instructors and developers. Anyone can add an exercise, suggest answers to existing questions, or simply help us improve the platform. We accept contributions on this github repository.

Exercise 2.12 [vacuum-motion-penalty-exercise]

Consider a modified version of the vacuum environment in Exercise vacuum-start-exercise, in which the agent is penalized one point for each movement.

  1. Can a simple reflex agent be perfectly rational for this environment? Explain.

  2. What about a reflex agent with state? Design such an agent.

  3. How do your answers to 1 and 2 change if the agent’s percepts give it the clean/dirty status of every square in the environment?

View Answer