Question: What is the key difference between greedy algorithms and dynamic programming?
Options:
Correct Answer: Dynamic programming considers all possible solutions
Solution:
The key difference is that dynamic programming considers all possible solutions, while greedy algorithms make local optimal choices.