No history yet

Final Exam

 

1.What are the two fundamental properties a problem must exhibit to be efficiently solvable using dynamic programming?

 

2.How does dynamic programming primarily differ from a standard divide and conquer approach?

 

3.The top-down approach to dynamic programming, also known as memoization, is most similar to which other technique?

 

4.Which of the following statements best describes the bottom-up (tabulation) approach to DP?

 

5.In the context of the 0/1 Knapsack problem, what does the state dp[i][w] typically represent?

 

6.True or False: The space complexity of a tabulation-based solution can sometimes be optimized to be better than its time complexity.

 

7.Bitmasking with dynamic programming is most effective for problems that involve:

 

8.In which of the following domains is dynamic programming frequently used for sequence alignment, such as comparing DNA or protein sequences?

 

9.State compression in dynamic programming is a technique used primarily to:

 

10.What is a significant limitation or trade-off when using dynamic programming?

 

11.Consider an unweighted graph. Which problem is a better fit for dynamic programming rather than a standard graph traversal algorithm like Breadth-First Search (BFS)?

 

12.When comparing the top-down (memoization) and bottom-up (tabulation) approaches, which statement is generally true?

All done? Get your grade