Ackerman Function with ANSI C compilator
I need to solve an Ackerman using the ANSI C.
The function is:
F(0,0,y)=y
F(0,x,y)=F(0,x-1,y)+1 per x diverso da 0
F(1,0,y)=0
F(z,0,y)=1 per z diverso da 0,1
F(z,x,y)=F(z-1,F(z,x-1,y),y) per x,z diversi da 0
other define:
A(0,j)= j+1 j>0
A(i,0)= A(i-1,1) i>0
A(i,j)= A(i+1),A(i,j-1) i,j>0
Could you help me??
THANKS!!!
|