An algorithm to find the length of the longest monotonically increasing…
GATE · 2011 · CS · Computer Science & IT
An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array is given below.Let , denote the length of the longest monotonically increasing sequence starting at index in the array.Initialize .For all such that Finally, the length of the longest monotonically increasing sequence is .Which of the following statements is TRUE?
- A.
The algorithm uses dynamic programming paradigm
- B.
The algorithm has a linear complexity and uses branch and bound paradigm
- C.
The algorithm has a non-linear polynomial complexity and uses branch and bound paradigm
- D.
The algorithm uses divide and conquer paradigm
Attempted by 68 students.
Sign up free to check your answer
Sign up freeLoading lesson…