Identify an absorbing terminal state

Keep each reward, discount and value next to its number. · 175 words

In a fully observable task, the agent can observe the current state of the environment. A terminal state is an end state where the task is complete. An absorbing state is one that, once entered, cannot be left: every possible transition returns to it. Imagine a delivery robot. State L means the robot is at locker L, and state D means delivery is complete. Entering D gives reward 10 and ends the episode. Every action in D also leads back to D with reward 0, so D is both terminal and absorbing.

The distinction appears in a transition diagram, where arrows show state changes. From an ordinary state, an arrow may lead elsewhere; from an absorbing state, every arrow points back to it. For example, in a museum treasure hunt, state T means the treasure has already been found. The visitor remains in T and cannot discover another room, and the episode can stop after entry. A terminal state may instead end immediately without modeled self-loops. Thus, terminal describes completion, while absorbing specifies inescapable transitions.

Check your recall

State D gives reward 10 on entry and has only D-to-D transitions with reward 0 afterward. Is D terminal, absorbing, or both, and what is the total reward for entering D and taking two more zero-reward actions?

Check your answer

D is both terminal and absorbing. The total reward is 10 + 0 + 0 = 10, because the repeated self-transitions add no reward.

Sources and credits

Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.