Chapter 3: Problem 34
Let us consider two sequences of characters \(S_{1}\) and \(S_{2}\). For example, we could have \(S_{1}-\) \(\mathrm{A} \$ \mathrm{CMA}^{*} \mathrm{MN}\) and \(S_{2}=\mathrm{AXMC} 4 \mathrm{ANB}\). Assuming that a subsequence of a sequence can be constructed by deleting any number of characters from any positions, use the dynamic programming approach to create an algorithm that finds the Iongest common subsequence of \(S_{1}\) and \(S_{2}\). This algorithm returns the maximum-length common subsequence of each sequence.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.