Step 1: Understanding the Greedy Algorithm
- A greedy algorithm makes a locally optimal choice at each step with the hope of finding the global optimum.
- The decision is never reconsidered or reversed.
- Greedy algorithms work well when:
1. The problem has an optimal substructure.
2. A greedy choice property exists, meaning a local decision leads to a global optimum.
Step 2: Evaluating the Options
- (A) Incorrect: Greedy algorithms do not reverse previous decisions.
- (B) Incorrect: The greedy algorithm does not evaluate all solutions, but makes locally optimal choices.
- (C) Incorrect: Combining sub-problems to form a solution is dynamic programming (not greedy).
- (D) Correct: The greedy approach selects the best available option at each step, which fits the definition.