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 MCQs Dynamic Programming

ECAP538 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 General method Easy

    What is the main idea behind dynamic programming?

  2. Question 2 of 60 General method Easy

    Which property means that a problem contains repeatedly occurring subproblems?

  3. Question 3 of 60 General method Easy

    Which property allows an optimal solution to be constructed from optimal solutions to smaller subproblems?

  4. Question 4 of 60 General method Easy

    What is memoization in dynamic programming?

  5. Question 5 of 60 General method Easy

    What is tabulation in dynamic programming?

  6. Question 6 of 60 General method Easy

    Why does dynamic programming commonly use a table?

  7. Question 7 of 60 General method Easy

    Which statement describes Bellman's principle of optimality?

  8. Question 8 of 60 Chained matrix multiplication Easy

    What is optimized in the chained matrix multiplication problem?

  9. Question 9 of 60 Chained matrix multiplication Easy

    What can change when a matrix chain is parenthesized differently?

  10. Question 10 of 60 Chained matrix multiplication Easy

    How many matrix multiplication operations are required to multiply a chain of matrices?

  11. Question 11 of 60 Chained matrix multiplication Easy

    What is the cost of multiplying a matrix by a matrix using the standard method?

  12. Question 12 of 60 Chained matrix multiplication Easy

    What is the scalar multiplication cost of multiplying a matrix by a matrix?

  13. Question 13 of 60 Chained matrix multiplication Easy

    In matrix-chain dynamic programming, what does the base case equal?

  14. Question 14 of 60 Chained matrix multiplication Easy

    What is the usual time complexity of the dynamic programming algorithm for matrix-chain multiplication?

  15. Question 15 of 60 Optimal storage on tapes Easy

    What is the main objective of optimal storage on tapes?

  16. Question 16 of 60 Optimal storage on tapes Easy

    For files with equal retrieval probabilities, how should files be ordered on one tape?

  17. Question 17 of 60 Optimal storage on tapes Easy

    Which file should be placed first when file lengths are , , and units and access probabilities are equal?

  18. Question 18 of 60 Optimal storage on tapes Easy

    If files of lengths , , and are stored in that order, what is the retrieval time of the third file?

  19. Question 19 of 60 Optimal storage on tapes Easy

    For files of lengths , , and stored in that order, what is the mean retrieval time?

  20. Question 20 of 60 Optimal storage on tapes Easy

    Why are shorter files generally placed before longer files on a tape?

  21. Question 21 of 60 General method Medium

    Which combination of properties most directly justifies solving a problem using dynamic programming?

  22. Question 22 of 60 General method Medium

    A memoized algorithm computes with base cases and . How many distinct states are evaluated when computing ?

  23. Question 23 of 60 General method Medium

    For the 0/1 knapsack problem, let be the maximum value using the first items with capacity . If item has weight and value , which recurrence is correct?

  24. Question 24 of 60 General method Medium

    What is the length of the longest common subsequence of and ?

  25. Question 25 of 60 General method Medium

    In a DAG shortest-path dynamic program, denotes the shortest distance from source to vertex . Which recurrence applies when vertices are processed in topological order?

  26. Question 26 of 60 General method Medium

    A two-dimensional DP recurrence uses only the previous row and already computed entries of the current row. Which optimization is generally valid?

  27. Question 27 of 60 Chained matrix multiplication Medium

    Matrices , , and have dimensions , , and . What is the minimum number of scalar multiplications needed to compute ?

  28. Question 28 of 60 Chained matrix multiplication Medium

    For matrices with dimension sequence , which parenthesization has minimum multiplication cost?

  29. Question 29 of 60 Chained matrix multiplication Medium

    Let matrix have dimensions . In the matrix-chain recurrence, what is the multiplication cost when the chain is split after ?

  30. Question 30 of 60 Chained matrix multiplication Medium

    How many complete parenthesizations are possible for a chain of five matrices?

  31. Question 31 of 60 Chained matrix multiplication Medium

    What are the standard time and auxiliary table-space complexities of dynamic programming for a chain of matrices?

  32. Question 32 of 60 Chained matrix multiplication Medium

    Besides the minimum-cost table, what information should be stored to reconstruct an optimal matrix-chain parenthesization?

  33. Question 33 of 60 Chained matrix multiplication Medium

    Matrices , , and have dimensions , , and . How many fewer scalar multiplications does use than ?

  34. Question 34 of 60 Chained matrix multiplication Medium

    Why are matrix-chain DP table entries usually filled in increasing order of chain length?

  35. Question 35 of 60 Optimal storage on tapes Medium

    Four files have lengths , , , and . Assuming equal retrieval probabilities and one tape, what order minimizes mean retrieval time?

  36. Question 36 of 60 Optimal storage on tapes Medium

    Files of lengths , , and are stored in that order on one tape. What is their mean retrieval time if each file is equally likely to be requested?

  37. Question 37 of 60 Optimal storage on tapes Medium

    For unequal access probabilities, file has length and probability . Which ordering rule minimizes expected retrieval time on one tape?

  38. Question 38 of 60 Optimal storage on tapes Medium

    File has length and access probability ; file has length and probability . What is the optimal order and expected retrieval time?

  39. Question 39 of 60 Optimal storage on tapes Medium

    Files , , and have values , , and . Which order minimizes expected retrieval time?

  40. Question 40 of 60 Optimal storage on tapes Medium

    Files of lengths , , , and are placed on two tapes as and , with each pair stored in the shown order. Assuming equal access probabilities, what is the mean retrieval time?

  41. Question 41 of 60 General method Hard

    A dynamic program merges multiple partial solutions into the same state. Which condition is essential for this state compression to preserve optimality?

  42. Question 42 of 60 General method Hard

    A top-down memoized DP is evaluated on an acyclic state graph. Exactly states are reachable from the initial state, and their transition lists contain edges in total. Each transition takes constant time. What is the tight running-time bound?

  43. Question 43 of 60 General method Hard

    The standard 0/1 knapsack DP runs in time, where is an integer capacity encoded in binary. Which classification is most accurate?

  44. Question 44 of 60 General method Hard

    A DP with states uses rolling arrays to reduce value-table memory to . The complete optimal decision sequence must later be produced without asymptotically increasing the running time. Which modification provides the general guarantee?

  45. Question 45 of 60 General method Hard

    In a resource-constrained minimization DP, labels at the same logical state are pairs of accumulated cost and resource consumption. Under the usual monotonicity assumption that having less remaining resource cannot improve future feasibility, when can label safely be discarded?

  46. Question 46 of 60 General method Hard

    Consider the finite-horizon recurrence with known values . Which evaluation order is valid even if the underlying state-transition graph contains cycles?

  47. Question 47 of 60 Chained matrix multiplication Hard

    Matrices have dimensions , , , and , respectively. What is the minimum number of scalar multiplications?

  48. Question 48 of 60 Chained matrix multiplication Hard

    For a chain of matrices, how many split points are examined in total by the standard bottom-up matrix-chain DP?

  49. Question 49 of 60 Chained matrix multiplication Hard

    A matrix-chain split table contains , , , and . Which parenthesization does it encode?

  50. Question 50 of 60 Chained matrix multiplication Hard

    Let have dimensions . If an optimal solution for splits after , what scalar-multiplication term must be added to the two subproblem costs?

  51. Question 51 of 60 Chained matrix multiplication Hard

    How many complete parenthesizations exist for a chain of matrices?

  52. Question 52 of 60 Chained matrix multiplication Hard

    For dimensions , a greedy algorithm repeatedly multiplies the adjacent pair with the smallest immediate cost. What costs do the greedy and optimal solutions obtain, respectively?

  53. Question 53 of 60 Chained matrix multiplication Hard

    Suppose each matrix in a chain may optionally be transposed before multiplication, provided the resulting products are dimensionally compatible. Why is the standard interval state generally insufficient?

  54. Question 54 of 60 Chained matrix multiplication Hard

    All four matrices in a chain are square matrices of dimension , and ordinary multiplication is used. How many parenthesizations achieve the minimum scalar-multiplication cost?

  55. Question 55 of 60 Optimal storage on tapes Hard

    Four files have pairs , , , and . For one sequential tape, which order minimizes expected retrieval time, and what is that expectation?

  56. Question 56 of 60 Optimal storage on tapes Hard

    Seven equally likely files have lengths and are stored optimally across three identical tapes. Retrieval starts at the beginning of the selected tape. What is the minimum mean retrieval time?

  57. Question 57 of 60 Optimal storage on tapes Hard

    On a single tape, adjacent files and have positive lengths and access probabilities . Under what condition is placing before no worse than placing before ?

  58. Question 58 of 60 Optimal storage on tapes Hard

    For equally likely files and identical tapes, which construction yields an optimal arrangement under the standard sequential-retrieval model?

  59. Question 59 of 60 Optimal storage on tapes Hard

    When access probabilities differ and files may be assigned to multiple tapes, which statement is correct?

  60. Question 60 of 60 Optimal storage on tapes Hard

    A single tape contains several positive-length files. File has access probability , while every other file has positive access probability. What must hold in every optimal ordering if all lengths are positive?

That's unit 4

Answer a few questions and your score shows up here.