What is a greedy algorithm?

What is a greedy algorithm?



An algorithm that picks the locally-optimal/best choice at the moment in the hope it will lead to a globally-optimal solution.


Learn More :