Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
Define Longest Common Subsequence in your own words.
Think about patterns in sequences.
What is dynamic programming?
Consider how problems can be simplified.
What is the time complexity of finding LCS using dynamic programming?
Remember how we build the solution.
True or False: LCS can include characters that are not adjacent in given sequences.
Think about the definition of a subsequence.
Suppose you have string A: 'ABCBDAB' and string B: 'BDCAB'. Calculate the LCS, and provide the DP table.
Start with filling the first two rows based on matches and mismatches.
Discuss how LCS can be extended to more than two sequences. What complexities arise?
Consider expanding the dimension of the DP table for more sequences.
4 more questions in this section. Enroll free to practise them all.
Enroll free