Longest Common Subsequence

Posted by tsudot on Stack Overflow See other posts from Stack Overflow or by tsudot
Published on 2010-06-09T05:53:32Z Indexed on 2010/06/09 6:12 UTC
Read the original article Hit count: 222

Consider 2 sequences X[1..m] and Y[1..n]. The memoization algorithm would compute the LCS in time O(m*n). Is there any better algorithm to find out LCS wrt time? I guess memoization done diagonally can give us O(min(m,n)) time complexity.

© Stack Overflow or respective owner

Related posts about time-complexity

Related posts about dynamic-programming