Greedy Method
The greedy problem solving approach is the approach of picking the most locally optimal choice in each step. This design pattern often doesn’t produce the globally optimal solution to a problem but yields a reasonably quick solution that is close enough to the globally optimal answer.