| |
| | Recursion - Wikipedia, the free encyclopedia |
 | | Recursion, in mathematics and computer science, is a method of defining functions in which the function being defined may be used within its own definition. |
 | | So a recursive meal might be potato skins, baby greens salad, chicken parmesan, and for dessert, a four course meal, consisting of crab cakes, Caesar salad, for an entrée, a four course meal, and chocolate cake for dessert, so on until each of the meals within the meals is completed. |
 | | The function calls itself recursively on a smaller version of the input (n - 1) and multiplies the result of the recursive call by n, until reaching the base case, analogously to the mathematical definition of factorial. |
| en.wikipedia.org /wiki/Recursive_algorithm (1828 words) |
|