"Introduction to algorithms" - читать интересную книгу автора (Thomas H Cormen, Charles E Leiserson, Ronald L Rivest, Clifford Stein)