Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In lecture we defined the recurrence of the longest-increasing-subsequence(LIS) problem as: 0 LISLEC(i 1, j) LISLEC(i, j) = (i 1, j) 1 LISLEC(i1,i) i =
In lecture we defined the recurrence of the longest-increasing-subsequence(LIS) problem as: 0 LISLEC(i 1, j) LISLEC(i, j) = (i 1, j) 1 LISLEC(i1,i) i = 0 A[i] A[j] A[i] n LISLAB(i, j) = LISLAB(i 1, j) if i n and A[j] A[i] (2) LIS (i 1, j) L AB otherwise max 1 LISLAB(i 1,i) Is one of them wrong? If not, what's the difference? Your solution should be a simple, short, english description of each recurrence. No long proofs for correctness are necessary. This is to make sure you understand how to describe a function (and no, saying "LIS returns the longest increasing subsequence length." is not a sufficient description)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started