Question: The Longest Decreasing Subsequence problem is defined as follows: Given a sequence of n real numbers A[1]A[n], determine a subsequence (not necessarily contiguous) of maximum

The Longest Decreasing Subsequence problem is defined as follows: Given a sequence of n real numbers A[1]A[n], determine a subsequence (not necessarily contiguous) of maximum length in which the values in the subsequence form a strictly decreasing sequence. Example: The length of the longest decreasing Subsequence in [1,2,19,5,4,7,51,2,22,13,15,36] is 5 . a- Give the pseudo-code of a Dynamic programming algorithm that solves the Longest Decreasing Subsequence problem. b- What is the time complexity of your algorithm? Prove it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
