Mathematical logic | Theoretical computer science | Recursion

Recursive definition

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!. 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, n = 2, n = 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 of natural numbers is: 1. * 1 is in N. 2. * If an element n is in N then n + 1 is in N. 3. * N is the intersection of all sets satisfying (1) and (2). There are many sets that satisfy (1) and (2) – for example, the set {1, 1.649, 2, 2.649, 3, 3.649, ...} satisfies the definition. However, condition (3) specifies the set of natural numbers by removing the sets with extraneous members. Note that this definition assumes that N is contained in a larger set (such as the set of real numbers) — in which the operation + is defined. Properties of recursively defined functions and sets can often be proved by an induction principle that follows the recursive definition. For example, the definition of the natural numbers presented here directly implies the principle of mathematical induction for natural numbers: if a property holds of the natural number 0 (or 1), and the property holds of n+1 whenever it holds of n, then the property holds of all natural numbers (Aczel 1977:742). (Wikipedia).

Recursive definition
Video thumbnail

SYN_018 - Linguistic Micro-Lectures: Recursion

In this short micro-lecture, Victoria Galarneau, one of Prof. Handke's students, discusses the term 'recursion', a central notion in syntax.

From playlist Micro-Lectures - Syntax

Video thumbnail

Applying the recursive formula to a sequence to determine the first five terms

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Video thumbnail

How to use the recursive formula to evaluate the first five terms

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Video thumbnail

How to determine the first five terms for a recursive sequence

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Video thumbnail

Applying the recursive formula to a geometric sequence

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Video thumbnail

Using the recursive formula to find the first four terms of a sequence

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Video thumbnail

Recursive Factorial Function

Introduction to recursion.

From playlist Computer Science

Video thumbnail

How to find the first four terms of a recursive formula

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Video thumbnail

Discrete Math - 5.3.1 Revisiting Recursive Definitions

In this video we revisit recursive definitions to prepare for proofs by structural induction. Textbook: Rosen, Discrete Mathematics and Its Applications, 7e Playlist: https://www.youtube.com/playlist?list=PLl-gb0E4MII28GykmtuBXNUNoej-vY5Rz

From playlist Discrete Math I (Entire Course)

Video thumbnail

Foundations - Seminar 14 - Gödel's incompleteness theorem Part 6

Billy Price and Will Troiani present a series of seminars on foundations of mathematics. In this seminar Will Troiani continues with the proof of Gödel's incompleteness theorem. You can join this seminar from anywhere, on any device, at https://www.metauni.org. This video was filmed in D

From playlist Foundations seminar

Video thumbnail

1.10.7 Recursive Functions: Video

MIT 6.042J Mathematics for Computer Science, Spring 2015 View the complete course: http://ocw.mit.edu/6-042JS15 Instructor: Albert R. Meyer License: Creative Commons BY-NC-SA More information at http://ocw.mit.edu/terms More courses at http://ocw.mit.edu

From playlist MIT 6.042J Mathematics for Computer Science, Spring 2015

Video thumbnail

C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 6 of 13

We've kicked off C9 Lectures with a journey into the world of Functional Programming with functional language purist and high priest of the lambda calculus, Dr. Erik Meijer (you can thank Erik for many of the functional constructs that have shown up in languages like C# and VB.NET. When yo

From playlist Haskell - Functional Programming Fundamentals (Dr. Erik Meijer )

Video thumbnail

Discrete Math II - 8.1.1 Applications of Recurrence Relations

The focus of this video (and the next several videos) is solving recurrence relations. In this video, we review the definition of recurrence relations and look at both iteration and back-substitution in solving applications of recurrence relations. If you'd like further explanation on th

From playlist Discrete Math II/Combinatorics (entire course)

Video thumbnail

Foundations - Seminar 10 - Gödel's incompleteness theorem Part 2

Billy Price and Will Troiani present a series of seminars on foundations of mathematics. In this seminar Will Troiani continues with the proof of Gödel's incompleteness theorem, providing some background on general recursive functions. You can join this seminar from anywhere, on any devic

From playlist Foundations seminar

Video thumbnail

Foundations - Seminar 11 - Gödel's incompleteness theorem Part 3

Billy Price and Will Troiani present a series of seminars on foundations of mathematics. In this seminar Will Troiani continues with the proof of Gödel's incompleteness theorem, discussing Gödel's beta function and the role of the Chinese Remainder theorem in the incompleteness theorem. Y

From playlist Foundations seminar

Video thumbnail

Finding Number Patterns: Sample Problems

This video contains solutions to sample problems involving finding closed and recursive formulas for number sequences.

From playlist Discrete Mathematics

Video thumbnail

A Beginner's Guide to Recursion

Recursion has an intimidating reputation for being the advanced skill of coding sorcerers. But in this tutorial we look behind the curtain of this formidable technique to discover the simple ideas under it. Through live coding demos in the interactive shell, we'll answer the following que

From playlist Software Development

Video thumbnail

Learn how to find the first five terms of a sequence using the recursive formula

👉 Learn all about recursive sequences. Recursive form is a way of expressing sequences apart from the explicit form. In the recursive form of defining sequences, each term of a sequence is expressed in terms of the preceding term unlike in the explicit form where each term is expressed in

From playlist Sequences

Related pages

Fibonacci number | Exponentiation | Recursive data type | Structural induction | Factorial | Well-formed formula | Definition | Infinite regress | Well-order | Multiplication | Element (mathematics) | Natural number | Mathematics | Addition | Function (mathematics) | Integer | Set (mathematics) | Proposition | Mathematical induction | Even number | Prime number | Logical connective | Cantor set | Recursion