Recursion (computer science): Difference between revisions

Content deleted Content added
Reverting edit(s) by Concre63 (talk) to rev. 977333353 by 1997kB: non-constructive (RW 15)
Recursion versus iteration: The two pseudocode examples here weren't equivalent. I've corrected the iterative one to match the recursive one. It was looping one too many times, and in the wrong order.
Line 674:
function iterative(n)
x = x<sub>base</sub>
for i = nbase+1 downtoto basen
x = f(i, x)
return x