Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 4 subjective questions Dynamic Programming

ECAP538 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

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

  2. Question 2 of 20

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

  3. Question 3 of 20

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

  4. Question 4 of 20

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

  5. Question 5 of 20

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

  6. Question 6 of 20

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

  7. Question 7 of 20

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

  8. Question 8 of 20

    Derive the dynamic programming recurrence for matrix-chain multiplication.

  9. Question 9 of 20

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

  10. Question 10 of 20

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

  11. Question 11 of 20

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

  12. Question 12 of 20

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

  13. Question 13 of 20

    Prove that matrix-chain multiplication has optimal substructure.

  14. Question 14 of 20

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

  15. Question 15 of 20

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

  16. Question 16 of 20

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

  17. Question 17 of 20

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

  18. Question 18 of 20

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

  19. Question 19 of 20

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

  20. Question 20 of 20

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

That's unit 4

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.