Recursive definition

From Wikipedia, the free encyclopedia

(Redirected from Inductive definition)
Jump to: navigation, search

A recursive definition or inductive definition is one that defines something in terms of itself (that is, recursively), albeit in a useful way. For it to work, the definition in any given case must be well founded, avoiding an infinite regress.

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:

  • 2, the smallest prime;
  • each positive integer which is not evenly divisible by any of the primes smaller than itself.

The integer 2 is our base case; checking the primality of any larger integer X requires us to know the primality of every integer between X and 2, but each such integer is closer to our base case of 2 than X is.

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:

  1. a symbol which stands for a proposition - like p means "Fred is a lawyer."
  2. The negation symbol, followed by a WFF - like Np means "It is not true that Fred is a lawyer."
  3. Any of the four binary connectives (C, A, K, or E) followed by two WFFs. The symbol K means "both are true", so Kpq may mean "Fred is a lawyer and Mary likes music."

The value of such a recursive definition is that it can be used to determine whether any particular string of symbols is "well formed".

  • Kpq is well formed, because it's K followed by the atomic WFFs p and q.
  • NKpq is well formed, because it's N followed by Kpq, which is in turn a WFF.
  • KNpNq is K followed by Np and Nq; and Np is a WFF, etc.

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,

  • GNU means "G-unit (is) Not Unix" (or "GNU's Not Unix").
Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.