Unit 4: Dynamic Programming - Subjective Questions

ECAP538 • Practice Questions with Detailed Answers

20 questions

1

Define dynamic programming. What properties must a problem possess for dynamic programming to be applicable?

2

Explain the general method used to design a dynamic programming algorithm.

3

Distinguish dynamic programming from divide-and-conquer and greedy methods.

4

State and explain Bellman's principle of optimality with reference to dynamic programming.

5

Compare top-down memoization and bottom-up tabulation in dynamic programming.

6

How are the time and space complexities of a dynamic programming algorithm determined?

7

What is the matrix-chain multiplication problem? Why does parenthesization affect its cost but not its final result?

8

Derive the dynamic programming recurrence for matrix-chain multiplication.

9

Describe the bottom-up algorithm for solving the matrix-chain multiplication problem.

10

Find the optimal parenthesization and minimum multiplication cost for matrices with dimensions , , and .

11

Explain how the optimal parenthesization is reconstructed from the split table in matrix-chain multiplication.

12

Analyze the time and space complexity of the matrix-chain multiplication dynamic programming algorithm.

13

Prove that matrix-chain multiplication has optimal substructure.

14

Define the optimal storage on tapes problem and state its objective.

15

Derive the mean retrieval time formula for a set of equally likely files stored on a single tape.

16

Prove using an exchange argument that files with equal access probabilities should be stored in nondecreasing order of length.

17

Determine the optimal single-tape storage order and mean retrieval time for files of lengths , , , and units.

18

How does the optimal tape-storage order change when files have unequal access probabilities?

19

Explain the optimal storage strategy when equally likely files are distributed over multiple tapes.

20

Compare the optimization structures of matrix-chain multiplication and optimal storage on tapes.