Recursive Formula

Let c[i,j] be the length of the LCS of tex2html_wrap_inline239 and tex2html_wrap_inline295 (prefixes).

displaymath297


next up previous
Next: Algorithm Up: LONGEST COMMON SUBSEQUENCE Previous: Optimal Substructure Theorem