Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 1.05 KB

File metadata and controls

12 lines (11 loc) · 1.05 KB

Greedy Algorithm

Greedy algorithms are a simple, intuitive class of algorithms that can be used to find the optimal solution to some optimization problems. They are called greedy because at each step they make the choice that seems best at that moment. This means that greedy algorithms do not guarantee to return the globally optimal solution, but instead make locally optimal choices in the hope of finding a global optimum. Greedy algorithms are used for optimization problems. An optimization problem can be solved using Greedy if the problem has the following property: at every step, we can make a choice that looks best at the moment, and we get the optimal solution to the complete problem.

Popular Greedy Algorithms