Anonymous user
Category:Recursion: Difference between revisions
m
Using Loops link now, word jumbling
m (Put sentences in a more logical order, concisified) |
m (Using Loops link now, word jumbling) |
||
Line 1:
'''Recursion''' is the idea that a function can come to an answer by repeatedly calling itself with new arguments until a "base case" or "end condition" is met. One good example is a factorial function. The base case for factorial is "0!" (some people like to use 1 or 2, but
A pseudocode function to demonstrate recursion would look something like this:
Line 10:
More than one end condition is allowed. More than one recursion condition is allowed.
Many recursion problems can be solved with an iterative method, or using a [[
Below is a list of examples of recursion in computing.
|