Introduction to artificial intelligence. From UCI AI course by Lathrop. Chapter 1 and 2.