Skip to content

UGC NET CS 2019Data Structures and Algorithms › Design TechniquesVerified

UGC NET CS 2019 PYQ: Consider the following statements: The running time of dynamic programming algorithm is always…

Consider the following statements:

  1. The running time of dynamic programming algorithm is always $\theta(\rho)$ where $\rho$ is number of subproblems
  2. When a recurrence relation has a cyclic dependency, it is impossible to use that recurrence relation (unmodified) in a correct dynamic program.
  3. For a dynamic programming algorithm, computing all values in a bottom-up fashion is asymptotically faster than using recursion and memorization
  4. If a problem $X$ can be reduced to a known $\text{NP}$-hard problem, then $X$ must be $\text{NP}$-hard

Which of the statement(s) is (are) true?

  1. A
    Only (ii) and (i)
  2. B
    Only (ii)
    Correct answer
  3. C
    Only (ii) and (iii)
  4. D
    Only (ii) and (iv)

Answer

(B) Only (ii)

Approach

Evaluate each statement against standard dynamic programming facts.

Reviewed by UGC IQ Editorial Team.