While reviewing dynamic programming greedy backtracking, memoized results are wrong for some prefixes. Which action best addresses the problem?
Answer options
- A. Cache results by complete state
- B. Prove the local choice preserves optimality
- C. Prune and revert invalid choices
- D. Include every future-relevant variable