Lab 4: The agent's internal state vs. the true world

5DV248 Lecture 1 · The agent perceives only the dirt status of its current square. Left: the true world (fog hides what the agent cannot see). Right: the agent's belief map, maintained by its transition and sensor models. Compare them step by step.

True world (hidden from the agent)

Agent's internal state (belief)

Moves sometimes fail (10%): the transition model lies
UPDATE-STATE log (what enters the internal state each step)
The agent sweeps left-right using its believed position. When its belief says all squares are clean, it returns NoOp. Switch on "moves sometimes fail" and watch the belief diverge from the truth: the agent may declare victory over a dirty world (state drift).