Greedy Choice Property
When searching for a possible solution to a problem, we usually consider various solutions, which we call the solution space.
When trying to find the best solution to a problem, we're usually interested in a global optimum, that is, the optimal solution from the whole set of possible solutions.
However, the solution space can exhibit other optimums. Namely, we can have local optimums, which are optimal solutions in a small neighborhood of possible solutions.
The greedy choice property states that from a local optimum we can reach a global optimum, without having to reconsider decisions that have already been made.
In the activity selection problem for Peter, we applied the greedy choice by always choosing the activity ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access