"The art of computer programming. Volume 4A, Combinatorial algorithms, Part 1" - читать интересную книгу автора (Donald Ervin Knuth )