The greedy method is an algorithm design technique in which a solution is built step by step by making, at each step, the choice that is locally optimal, and by not reconsidering past choices. It is often used to solve combinatorial optimization problems. Where a problem depends only on the partial solution for one subproblem, it can be solved by considering only the locally optimal subproblem, which makes a greedy algorithm a special case of a dynamic programming algorithm in which only one partial solution is maintained. In many cases a greedy algorithm does not produce an exact solution, but it can yield solutions that approximate an exact solution in a reasonable amount of time. Algorithms recorded in this atlas are grouped here when their design technique is greedy.
Facts
Core PrincipleAlways take the best immediate, or local, solution while finding an answer. 1 Connections
In Field
Technique Used By
Source IBM: What is a decision tree?
Source Arpaci-Dusseau Books: Operating Systems: Three Easy Pieces, Hard Disk Drives chapter
Sources
1. NIST DADS: greedy algorithm
DefinitionQuote, Definition
always takes the best immediate, or local, solution while finding an answer
View the Source Wikipedia: Greedy algorithm
Wikipedia, lead sectionQuote, Wikipedia, lead section
A greedy algorithm is an algorithm which, at each step, makes the choice that is locally optimal, and subsequently does not reconsider past choices.
View the Source Arpaci-Dusseau Books: Operating Systems: Three Easy Pieces, Hard Disk Drives chapter
Arpaci-Dusseau BooksTechnique Used By: Shortest seek first, Section 37.5 Disk Scheduling, opening paragraph, before SSTFQuote, Technique Used By: Shortest seek first, Section 37.5 Disk Scheduling, opening paragraph, before SSTF
and thus (greedily) pick the one that will take the least time to service first
View the Source IBM: What is a decision tree?
IBMTechnique Used By: Decision tree learning, Section on how decision tree learning worksQuote, Technique Used By: Decision tree learning, Section on how decision tree learning works
Decision tree learning employs a divide and conquer strategy by conducting a greedy search to identify the optimal split points within a tree.
View the Source Wikipedia: Greedy algorithm
In Group: Algorithm Design Strategies, LeadQuote, In Group: Algorithm Design Strategies, Lead
A greedy algorithm is an algorithm which, at each step, makes the choice that is locally optimal, and subsequently does not reconsider past choices.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.