Recursion: Difference between revisions

Content deleted Content added
No edit summary
Functional recursion: rm unsourced and dubious claim (any recursion can be converted to iteration + stack)
Line 111:
===Functional recursion===
A [[function (mathematics)|function]] may be recursively defined in terms of itself. A familiar example is the [[Fibonacci number]] sequence: ''F''(''n'') = ''F''(''n'' − 1) + ''F''(''n'' − 2). For such a definition to be useful, it must be reducible to non-recursively defined values: in this case ''F''(0) = 0 and ''F''(1) = 1.
 
A famous recursive function is the [[Ackermann function]], which, unlike the Fibonacci sequence, cannot be expressed without recursion.{{Citation needed|date=October 2019}}
 
===Proofs involving recursive definitions===