Study work for Optimization chapter of Programming Collective Intelligence book.