examples of greedy algorithms Example: greedy algorithm greedy algorithm: makes the optimal choice at each step