Cormen,Thomas H.,Charles E.Leiserson,Ronald L.Rivest,and Clifford Stein,Introduction to Algorithms,Second Edition.McGraw-Hill,2001.
Knuth,Donald E.,The Art of Computer Programming,Volumes 1-3,Boxed Set Second Edition.Addison-Wesley Professional,1998.