Jump to content

Primitive recursive

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 82.166.54.98 (talk) at 09:05, 28 August 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Definition: A total function which can be written using only nested conditional (if-then-else) statements and fixed iteration (for) loops.

Note: Ackermann's function is computable, but is not primitive recursive. Primitive recursion functions always terminate. More powerful languages have some functions which cannot be proved to either terminate or run forever.