| |
| | Algorithm - Wikipedia, the free encyclopedia |
 | | Informally, the concept of an algorithm is often illustrated by the example of a recipe, although many algorithms are much more complex; algorithms often have steps that repeat (iterate) or require decisions (such as logic or comparison). |
 | | However, algorithms are also implemented by other means, such as in a biological neural network (for example, the human brain implementing arithmetic or an insect relocating food), in electric circuits, or in a mechanical device. |
 | | A greedy algorithm is similar to a dynamic programming algorithm, but the difference is that solutions to the subproblems do not have to be known at each stage; instead a "greedy" choice can be made of what looks best for the moment. |
| en.wikipedia.org /wiki/Algorithm (6970 words) |
|