PlanetPhysics/Recursive Function 2

From testwiki
Jump to navigation Jump to search

Intuitively, a [[../RecursiveFunction/|recursive function]] may be defined as an integer-valued [[../Bijective/|function]] of one or more integer variables which may be computed by a definite [[../RecursiveFunction/|algorithm]]. In order to produce a rigorous definition, one may proceed long at least two approaches; one may define the notion of algorithm rigorously in order to complete the intuitive definition given above or one may proceed inductively, first declaring certain functions to be recursive and then specifying definite procedures by which one may construct any other recursive function starting from the initial set. In this entry, we shall concentrate on the latter approach, only making a few brief remarks regarding the former approach towards the end.

  1. The constant function c:++ defined by c(x)=1 for all x+ is a recursive function.
  2. The addition function +:+2+ and the multiplication function ×:+2+ are recursive function.
  3. The projection functions Imn:+n+ with 1mn defined as Imn(x1,,xn)=xm are recursive functions.
  4. {\it (Closure under [[../Cod/|composition]])} If f:+n+ is a recursive function and gi:+m+ with i=1,n are recursive functions, then h:+n+, defined by h(x1,,xn)=f(g1(x1,,xm),,gn(x1,,xm)) is a recursive function.
  5. {\it (Closure under primitive recursion)}If f:+n+ and g:+n+2+ are recursive function, then h:+n+1+, defined by the recursion

h(n+1,x1,,xk)=g(h(n,x1,,xk),n,x1,,xk) with the initial condition h(0,x1,,xk)=f(x1,,xk) is a recursive function.

  1. {\it (Closure under minimization)} If f:+n+1+ is a recursive function then g:+n+ is a recursive function, where g is defined to equal y if there exists a y+ such that
 #
  • f(0,x1,,xn),f(1,x1,,xn),,f(y,x1,,xn) are all defined, #
  • f(z,x1,,xn)=0 when 1z<y, and #
  • f(y,x1,,xn)=0, otherwise g(x1,,xn) is undefined.

Template:CourseCat