recursion

Method calling itself

Recursion is the process of defining or solving something in terms of itself.

In computing and mathematics, a recursive function calls itself to break complex problems into simpler versions of the same problem: The function uses recursion to traverse the tree.

The concept appears in art (a picture containing a smaller picture of itself), language (a sentence embedded within a sentence), and humor: To understand recursion, you must first understand recursion.

self-reference

ouroboros

Self-consuming serpent emblem

infinite regress · matryoshka · Russian doll · self-replicating · bootstrap · turtles all the way down · circular definition

algorithm

base case

Recursion's stopping condition

factorial · Fibonacci · quicksort · mergesort · fixed point

fractal

self-similarity

Identical at every magnification

  • iterationRepeated procedural pass
  • branchingSplitting into separate directions
  • fernSpore-spreading vascular plant

coastline

linguistics

Chomsky

mathematics

induction

Formal admission process

ordinal

Categories
Opposites
computational method

recursioniteration

Repeated procedural pass

looping · unrolling · breadth-first

structural pattern

recursionlinearity

Straight-path property

flatness · base case · uniformity

Phrases
Family

recursive, recursions, recursively, recursiveness

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Rated G