Sign in

“Greed is good,” Michael Douglas exclaims in front of a room full of stockholders in the 1980s classic Wall Street. Greed has the upper hand… Greed is effective.”

the greedy algorithm is the most simple, ingenious, and easy to implement algorithm used in optimizing problems is the Greedy Algorithm.It is based on the idea that even if we continue to make the locally optimal choice in and subproblem, we would ultimately converge at the best solution for the true problem.

How to decide which choice is optimal?

Presume you get an objective function that needs to be optimised (enhanced or reduced) at a given phase.The Greedy algorithm…

Riya Saxena

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store