A recursive definition is one that defines something in terms of itself, albeit in a useful way. For that to work, the definition in any given case must be well founded, avoiding an infinite regress. Sometimes inductive definition is used as a synonym.
The difference between a circular definition and a recursive definition is that a recursive definition must have base cases, cases that satisfy the definition without being defined in terms of the definition itself, and all other cases comprising the definition must be "smaller" (closer to those base cases that terminate the recursion).
An example: the prime numbers can be defined as consisting of:
In contrast, a circular definition has no base cases and defines itself in terms of itself, rather than a version of itself closer to a base case. This leads to a vicious circle. Thus, the quip of "Recursive definition: see Recursive definition" is inaccurate: this is a circular definition.
It is chiefly in logic or computer programming that recursive definitions are found. For example, a "well formed formula" (WFF) can be defined as:
The value of such a recursive definition is that it can be used to determine whether any particular string of symbols is "well formed".
The computer language LISP has a similar definition, and some fans of LISP have playfully constructed acronyms which are recursive but with an infinite regress. Hackers seem to find this a source of immense amusement. For example,
Definition | Mathematical logic | Theoretical computer science
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Recursive definition".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world