"An O(ND) diffrerence algorithm and its variations" - читать интересную книгу автора (Myers E.W.)