Open Source
recurs.txt
Associated article: Considering Recursion
Tags: Open Source Parallel Design
Published source code accompanying the article by Arch D. Robison in which he examines some of the problems with recursion, including entangled control flow, which hurts readability, reuse, and optimization.
Considering Recursion
by Arch D. Robison
Listing One
//-----------------------------------
// Non-recursive version.
//-----------------------------------
....
for (int i=0; i<n; i++)
for (int j=0; j<n; j++)
a[i][j] += b[i]*c[j];
....
//-----------------------------------
// Recursive #1 (classical tail call)
//-----------------------------------
void ...


