While reviewing dynamic programming greedy backtracking, a recursive solution recalculates the same states. Which action fixes it, and which check proves it worked?
Answer options
- A. Prove the local choice preserves optimality
- B. Prune and revert invalid choices
- C. Cache results by complete state
- D. Count each state evaluation once