GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing mathworld.wolfram.com — Greedy Algorithm -- from Wolfram MathWorld Greedy AlgorithmA greedy algorithm is an algorithm that makes a locally best feasible choice at each step without backtracking. Such choices need not give a globally optimal result.
For a set of
where
where
The greedy procedure continues by setting
for
A separate backtracking search can find a representation by decrementing the nonzero
For example, McNugget numbers are numbers which are representable using only
If every positive integer
A greedy algorithm can also be used to break down a fraction
where See alsoCoin Problem, Complete Sequence, Egyptian Fraction, Frobenius Equation, Frobenius Number, Greedy Matching, Integer Relation, Knapsack Problem, Levine-O'Sullivan Greedy Algorithm, McNugget Number, Nearest Neighbor Algorithm, Reverse Greedy Algorithm, Square Number, Subset Sum Problem, Sylvester's SequenceExplore with Wolfram|AlphaMore things to try: ReferencesReferenced on Wolfram|AlphaGreedy AlgorithmCite this as:Weisstein, Eric W. "Greedy Algorithm." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GreedyAlgorithm.html Subject classifications | ||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |