✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
(1) dirty(X,Y) → do(clean)
(2) ¬wall(front) → do(forward)
(3) wall(front) ∧ ¬wall(left) → do(turn(left))
(4) wall(front) ∧ wall(left) → nil
The agent is standing on a dirty cell, with a wall in front of it and no wall on its left. Which action does it perform?