Gate CS-2011 Question Paper With Solutions

Q. 25 An algorithm to find the length of the longest monotonically increasing sequence
of numbers in an array A60:n – 1@ is given below.
Let Li denote the length of the longest monotonically increasing sequence starting
at index i in the array.
Gate CS-2011 Question Paper With Solutions

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.

Answer: (A)

Explanation:

Gate CS-2011 Question Paper With Solutions

Learn More:   Gate EC-2015 - 2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here