New tabulation and sparse dynamic programming based techniques for sequence similarity problems
arXiv:1312.2217
Abstract
Calculating the length of a longest common subsequence (LCS) of two strings and of length and is a classic research topic, with many worst-case oriented results known. We present two algorithms for LCS length calculation with respectively and time complexity, the latter working for , where is the number of matches in the dynamic programming matrix. We also describe conditions for a given problem sufficient to apply our techniques, with several concrete examples presented, namely the edit distance, LCTS and MerLCS problems.