While reviewing dynamic programming greedy backtracking, memoized results are wrong for some prefixes. Which action fixes it, and which check proves it worked?
Answer options
- A. Compare states with different histories
- B. Cache results by complete state
- C. Prove the local choice preserves optimality
- D. Include every future-relevant variable