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:
- The running time of dynamic programming algorithm is always $\theta(\rho)$ where $\rho$ is number of subproblems
- When a recurrence relation has a cyclic dependency, it is impossible to use that recurrence relation (unmodified) in a correct dynamic program.
- For a dynamic programming algorithm, computing all values in a bottom-up fashion is asymptotically faster than using recursion and memorization
- 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?
- AOnly (ii) and (i)
- BOnly (ii)Correct answer
- COnly (ii) and (iii)
- DOnly (ii) and (iv)
Answer
(B) Only (ii)
Approach
Evaluate each statement against standard dynamic programming facts.
Reviewed by UGC IQ Editorial Team.