Wednesday 3 June 2020

UGC NET Computer Science December 2019 | Question 126

Question 126
Consider the following statements :
(a) The running time of dynamic programming algorithm is always θ(ρ) where ρ is number of subproblems.
(b) When a recurrence relation has cyclic dependency, it is impossible to use that recurrence relation (unmodified) in a correct dynamic program.
(c) For a dynamic programming algorithm, computing all values in a bottom-up fashion is asymptotically faster than using recursion and memorization.
(d) If a problem X can be reduced to a known NP-hard problem. then X must be NP-hard
Which of the statement(s) is (are) true?
  1. 1. Only (b) and (a)
  2. 2. Only (b)
  3. 3. Only (b) and (c)
  4. 4. Only (b) and (d)
Answer : 2. Only (b)

Explanation Question 126
  1. The running time of a dynamic program is the number of subproblems times the time per subproblem. This would only be true if the time per subproblem is O(1). False
  2. Cyclic dependency is a relation between two or more modules which either directly or indirectly depend on each other to function properly. Such modules are also known as mutually recursive. So, we can’t get correct solution when we are using dynamic programming. True
  3. A bottom up implementation must go through all of the sub-problems and spend the time per subproblem for each. Using recursion and memoization only spends time on the subproblems that it needs. In fact, the reverse may be true: using recursion and memoization may be asymptotically faster then a bottom-up implementation. False
  4. If a problem X can be reduced to a known NP-hard problem, then X must be NP-Complete. False
Hence, statement b is the only true.

So, option 2 is correct answer

PreviousNext
UGC NET CS December 2019 - Question 125UGC NET CS December 2019 - Question 127

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts