For each of the following problems, the input consists of two arrays X[1 .. k] and Y [1 .. n] where

For each of the following problems, the input consists of two arrays X[1 .. k] and Y [1 .. n] where k ? n.Describe a recursive backtracking algorithm to find the smallest number of symbols that can be removed from Y so that X is no longer a subsequence. Equivalently, your algorithm should find the longest subsequence of Y that is not a supersequence of X. For example, after removing removing two symbols from the string PENPINEAPPLEAPPLEPEN, the string PPAP is no longer a subsequence. You can refer longest increasing subsequence algorithm : http://jeffe.cs.illinois.edu/teaching/algorithms/book/02-backtracking.pdf

Don't use plagiarized sources. Get Your Custom Essay on
For each of the following problems, the input consists of two arrays X[1 .. k] and Y [1 .. n] where
For $10/Page 0nly
Order Essay
Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper