Data Structures & AlgorithmsVery hardICPC regional · interval DP

Problem: Which statement about the Knuth optimization for interval DP is correct when its monotonicity conditions hold?

  1. A. It reduces O(n^3) interval DP to O(n^2) by bounding the optimal split point between neighbouring intervals
  2. B. It needs O(n!) time
  3. C. It only applies to graphs with negative cycles
  4. D. It replaces DP with greedy selection

Correct answer: A. It reduces O(n^3) interval DP to O(n^2) by bounding the optimal split point between neighbouring intervals

Monotone optimal split points let each interval search only a narrow range, which totals O(n^2).

More Coding Interview Problems questions

Exams that ask this topic