Feeding a greedy algorithm

The idea of a greedy algorithm (for optimization) is that [...]