All the stuff I've done working with the book [**Introduction to Algorithms** (third edition) by _Cormen_, _Leieserson_,  _Rivest_ and _Stein_](http://www.amazon.com/dp/0262033844/ref=cm_sw_r_tw_dp_v3outb0PVC589X6W).