...
/Algorithm Design: Greedy Algorithms
Algorithm Design: Greedy Algorithms
Learn about greedy algorithm design with the help of examples.
We'll cover the following...
Greedy algorithms
Many algorithms are iterative procedures that choose among a number of alternatives at each iteration. For example, a cashier can view the Change Problem as a series of decisions they have to make: which coin (among denominations) to return first, which to return second, and so on. Some of these alternatives might lead to correct solutions, while others might not.
Press + to interact
Change example
Greedy algorithms choose the most attractive alternative at each iteration—for example, the ...