Reinforcement Learning: An Introduction http://www.cs.ualberta.ca/~sutton/book/ebook/the-book.html