flâneur — a map of the web's best reading

Greedy algorithm - Wikipedia

en.wikipedia.org · 2,324 words · saved by 1 readers

A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage.[1] In many problems, a greedy strategy does not produce an optimal solution, but a greedy heuristic can yield locally optimal solutions that approximate a globally optimal solution in a reasonable amount of time.

Greedy algorithm - Wikipedia Jump to content From Wikipedia, the free encyclopedia Sequence of locally optimal choices A greedy algorithm is an algorithm which, at each step, makes the choice that is locally optimal, and subsequently does not reconsider past choices. Greedy algorithms are often used to solve combinatorial optimization problems. If an optimization problem only depends on the partial solution of solving it for one subproblem, we can solve this problem by "greedily" considering only the locally optimal subproblem. In this sense, a greedy algorithm is a special case of a dynamic p

Explore this link on the map →

related reading