Of several responses made to the same situation, those which are accompanied or closely followed by satisfaction to the animal will, other things being equal, be more firmly connected with the situation, so that, when it recurs, they will be more likely to recur.

Edward L. Thorndike, Animal Intelligence (1911)

An optimal policy has the property that whatever the initial state and initial decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision.

Richard Bellman, Dynamic Programming (1957)
Frontispiece. The gridworld of Sutton and Barto’s Example 3.5 solved: every action from AA jumps to A′A' with reward +10+10, every action from BB jumps to B′B' with reward +5+5, bumping into the border costs −1-1, and γ=0.9\gamma = 0.9. Each cell shows the optimal value v∗(s)v_*(s), computed by value iteration in the Wolfram Language, and arrows for all the actions greedy with respect to it — the optimal policies.A five-by-five grid of shaded cells, each showing its optimal value and arrows for the optimal actions; the darkest cell, A, has value 24.4 and arrows in all four directions

Richard S. Sutton and Andrew G. Barto

Reinforcement Learning: An Introduction

MIT Press