Book,

Introduction to Algorithms

, , , and .
The MIT Press, 2 edition, (2001)