Summary of chapter 4 of the book Reinforcement Learning: An Introduction, by Andrew Barto and Richard S. Sutton. Code can be found on github: https://github.com/nums11/rl