Given two sequences X and Y, we want to find Z i.e., the longest common subsequence (LCS) of both X and Y. Because we know that subsequences of interest are of length >= a and <= b,="" we="" threshold="" the="" lcs="" definition="" to="" |z|="" in="" [a,="" b]="" (where="" |z|="" is="" the="" sequence="">=>
In python state the recursive formula for this problem. Implement the algorithm with bottom-up approach dynamic programming and backtracking. Create an iterative function that prints the longest common subsequence(LCS).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here