Introduction to Algorithms (MIT press (2001)

by C E Leiserson, R L Rivest, C Stein, T H Cormen