"An introduction to the analysis of algorithms" - читать интересную книгу автора (Robert Sedgewick, Philippe Flajolet)