Recursive definition

Defining the elements in a set in terms of other elements in the set

In mathematics and computer science, a recursive definition, or inductive definition, is used to define the elements in a set in terms of other elements in the set (Aczel 1977:740ff). Some examples of recursively definable objects include factorials, natural numbers, Fibonacci numbers, and the Cantor ternary set.

Nº Q2466486 ★

Common · Knowledge

Recursive definition

Defining the elements in a set in terms of other elements in the set

In mathematics and computer science, a recursive definition, or inductive definition, is used to define the elements in a set in terms of other elements in the set (Aczel 1977:740ff). Some examples of recursively definable objects include factorials, natural numbers, Fibonacci numbers, and the Cantor ternary set.

From Wikipedia

In mathematics and computer science, a recursive definition, or inductive definition, is used to define the elements in a set in terms of other elements in the set (Aczel 1977:740ff). Some examples of recursively definable objects include factorials, natural numbers, Fibonacci numbers, and the Cantor ternary set. A recursive definition of a function defines values of the function for some inputs in terms of the values of the same function for other (usually smaller) inputs. For example, the factorial function n! is defined by the rules 0 ! = 1. ( n + 1 ) ! = ( n + 1 ) ⋅ n ! . {\displaystyle {\begin{aligned}&0!=1.\\&(n+1)!=(n+1)\cdot n!.\end{aligned}}} This definition is valid for each natural number n, because the recursion eventually reaches the base case of 0. The definition may also be thought of as giving a procedure for computing the value of the function n!, starting from n = 0 and proceeding onwards with n = 1, 2, 3 etc. The recursion theorem states that such a definition indeed defines a function that is unique. The proof uses mathematical induction. An inductive definition of a set describes the elements in a set in terms of other elements in the set. For example, one definition of the set ⁠ N {\displaystyle \mathbb {N} } ⁠ of natural numbers is: 0 is in ⁠ N . {\displaystyle \mathbb {N} .} ⁠ If an element n is in ⁠ N {\displaystyle \mathbb {N} } ⁠ then n + 1 is in ⁠ N . {\displaystyle \mathbb {N} .} ⁠ ⁠ N {\displaystyle \mathbb {N} } ⁠ is the smallest set satisfying (1) and (2). There are many sets that satisfy (1) and (2) – for example, the set {0, 1, 1.649, 2, 2.649, 3, 3.649, …} satisfies the definition. However, condition...

Text: Wikipédia, CC BY-SA 4.0. · Image: Original: Chas_zzz_brown,Shibboleth Vector: The original upl... (CC BY-SA 3.0) ·

Related cards

Open

…

Confirmation