Science Fair Projects Ideas - Recursive function

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Recursive function

In mathematical logic and computer science, the recursive functions are a class of functions from natural numbers to natural numbers which are "computable" in some intuitive sense. In fact, in computability theory it is shown that the recursive functions are precisely the functions that can be computed by Turing machines. Recursive functions are related to primitive recursive functions, and their inductive definition (below) builds upon that of the primitive recursive functions. However, not every recursive function is a primitive recursive function — the most famous example is the Ackermann function.

Other equivalent function classes are the λ-recursive functions and the functions that can be computed by Markov algorithms.

Definition

Take as axioms the axioms of the primitive recursive functions, but extend the definitions so as to allow for partial functions. Add one further operator, the unbounded search operator, defined as follows:

If f(x,z1,z2,...,zn) is a partial function on the natural numbers with n+1 arguments x, z1,...,zn, then the function μx f is the partial function with arguments z1,...,zn that returns the least x such that f(0,z1,z2,...,zn), f(1,z1,z2,...,zn), ..., f(x,z1,z2,...,zn) are all defined and f(x,z1,z2,...,zn) = 0, if such an x exists; if no such x exists, then μx f is not defined for the particular arguments z1,...,zn.

It is easy to see that this least search axiom (along with the simple primitive recursion axioms) implies the bounded search axiom of primitive recursion.

The set of partial recursive functions is defined as the smallest set of partial functions of any arity from natural numbers to natural numbers which contains the zero, successor, and projection functions, and which is closed under composition, primitive recursion, and unbounded search.

The set of total recursive functions is the subset of partial recursive functions which are total.

In the equivalence of models of computability the parallel is drawn between Turing machines which do not terminate for certain inputs and an undefined result for that input in the corresponding partial recursive function. The unbounded search operator is not definable by the rules of primitive recursion as those do not provide a mechanism for "infinite loops" (undefined values).

It is interesting to note that if the application of the unbounded search operator in the definition above is limited strictly to regular functions (functions which are guaranteed to be total when the unbounded search operator is applied to them), the resulting set (historically called the general recursive functions) is the same as the set of recursive functions -- in other words, the requirement for partial functions can be partially obviated.

03-10-2013 05:06:04
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice