Question: A recursive function is defined by a finite set of rules that specify the function in terms of variables, nonnegative integer constants, increment ( '

A recursive function is defined by a finite set of rules that specify the function in terms of variables,
nonnegative integer constants, increment ('+1'), the function itself, or an expression built from these by
composition of functions. As an example, consider Ackermann's function defined as A(n)= An
(n) for n >=1,
where Ak(n) is determined by
Ak(1)=2 for k >=1
A1(n)= A1(n1)+2 for n >=2
Ak(n)= Ak1(Ak(n1)) for k >=2
(a) Calculate A(1), A(2), A(3), A(4).
(b) Prove that
Ak(2)=4 for k >=1,
A1(n)=2n for n >=1,
A2(n)=2n
for n >=1,
A3(n)=2A
3
(n1) for n >=2.
(c) Define the inverse of Ackermann's function as
\alpha (n)= min{m: A(m)>= n}.
Show that \alpha (n)<=3 for n <=16, that \alpha (n)<=4 for n at most a "tower" of 655362's, and that \alpha (n)->\infty as n
->\infty .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!