While reviewing dynamic programming greedy backtracking, a constraint puzzle has many invalid branches. 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