previous up next
Go backward to Factorial Function
Go up to Top
Go forward to Simultaneous Definitions
RISC-Linz logo

Double Recursion

g = lambda n. n equals zero -> one
    [] (g(n minus one) plus
        g(n minus one)) minus one

graph(F0(_|_)) = {}
graph(F1(_|_)) = {(zero, one)}
graph(F1(_|_)) = {(zero, one), (one, one)}
graph(F2(_|_)) = {(zero, one), (one, one), (two, one)}
...
graph(Fi+1(_|_)) = {(zero, one), ..., (i, one)}

fix F = lambda n. one

Stepwise construction of graph yields insight!


Author: Wolfgang Schreiner
Last Modification: November 5, 1997

previous up next