Recursion¶
Core Idea¶
Recursion defines a process or structure that refers back to itself, allowing complex forms to be built from repeated application of simpler rules or functions.
How would you explain it like I'm…
Smaller Copies Inside
Solving by Smaller Versions
Recursion
Tensions in Practice¶
Broad Use¶
-
Mathematics & Computer Science: Recursive functions call themselves (e.g., factorial, Fibonacci), and recursive data structures (e.g., trees) are built by nesting smaller instances.
-
Language & Grammar: Many linguistic rules are recursive, allowing phrases to embed within other phrases infinitely.
-
Biology: Fractal-like branching in systems (e.g., blood vessels, trees) can be viewed as recursive patterns.
-
Problem-Solving: "Divide and conquer" strategies often rely on breaking problems down into smaller, similar subproblems.
Clarity¶
Demonstrates that large or intricate structures can be generated from self-similar, repetitive rules—understanding the rule can yield insights into the entire form.
Manages Complexity¶
Recursion can simplify code or reasoning when layered repetition is easier to conceptualize than a single, large iterative approach.
Abstract Reasoning¶
Encourages a self-referential perspective—recognizing how a system can contain smaller copies of itself, each guided by the same blueprint.
Knowledge Transfer¶
-
Music Composition: Patterns that repeat or transpose at different scales (fugues, canons).
-
Art & Design: Recursive fractal art (e.g., M.C. Escher's work) uses repeated motifs to create complexity.
-
Other: Foundational in algorithm design, linguistics (sentence structures), and natural systems (tree growth).
Example¶
-
The Fibonacci sequence is famously recursive: each term is the sum of the previous two, producing a sequence found in natural patterns (spirals in shells, arrangement of flower petals).
-
A fractal, like the Mandelbrot set, uses self-referential rules to create complex, infinitely detailed patterns.
Relationships to Other Abstractions¶
Current abstraction Recursion Prime
Foundational — no parent edges in the catalog.
Children (47) — abstractions linked here by typed relations
-
ABACABA pattern Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the alphabet and stage ordering, initial word, recursion W_n equals W_{n-1} a_n W_{n-1}, finite or infinite limit, indexing, length formula, and claimed mapping to an application.
-
Anamorphism Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the functor, seed coalgebra, final coalgebra, and unique coalgebra-morphism equation are fixed, with productivity replacing an arbitrary terminating loop.
-
Apollonian network Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the graph is obtainable from the seed triangle by repeated degree-three insertion into existing triangular faces.
-
Backstepping Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the plant has the required recursive feedback structure and the constructed Lyapunov derivative proves the declared stability property.
-
Beth number Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the ordinal index, initial cardinal beth-zero, successor power-set recursion, limit supremum recursion, transfinite induction, monotonicity and cofinality, relation to continuum cardinalities and aleph sequence and dependence of equalities on GCH.
- Calkin–Wilf tree Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by every positive reduced rational occurs at exactly one vertex under the declared child rule.
- Cantor set Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the set follows the declared ternary construction or an explicitly homeomorphic characterization and retains compactness, perfection, and total disconnectedness.
- Chainstore paradox Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the incumbent chain store and sequence of potential entrants and markets, finite known horizon, entry and stay-out choices, fight or accommodate response, payoffs and information, stage-game dominance, backward-induction subgame-perfect equilibrium, proposed deterrence reputation and its lack of credibility, incomplete-information resolution and distinction from commitment games.
- Closed timelike curve Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the Lorentzian spacetime and metric, time orientation, parametrized worldline, timelike tangent condition, future direction, equality of initial and final event, causal and chronology properties, local versus global origin, representative spacetime solution and physical-versus-mathematical status.
- Constant-recursive sequence Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the scalar ring or field, sequence index and initial values, recurrence order, constant coefficients, homogeneous linear recurrence equation and start index, minimal recurrence, companion matrix, characteristic polynomial and closed-form and rational-generating-function equivalences.
- Context-free language reachability Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the endpoints are connected by some path and the ordered word formed from its edge labels is generated by the declared context-free grammar.
- Continued Fraction Domain-specific is a kind of Recursion
Continued Fraction is a strict kind of Recursion: each denominator contains the next nested fraction under a repeated construction rule.
- Counting hierarchy Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the encoded decision problems and polynomial-time machines, base level C0P equals P, PP majority acceptance, oracle access, recursive definition C(n+1)P equals PP to CnP, union CH, containments such as PH within low levels and CH within PSPACE, completeness and reduction conventions and unresolved collapse questions.
- Cullen number Domain-specific is a kind of Recursion
The family is an indexed integer construction with a derived recurrence.
- Droste effect Domain-specific is a kind of Recursion
The effect recursively embeds a representation within itself.
- Duality of structure Domain-specific is a kind of Recursion
Practices draw on structures whose continued existence those same practices reproduce.
- Eilenberg–Mazur swindle Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the category admits the required infinite construction and the invariant or equivalence respects its shift-and-absorption isomorphism.
- Euclid–Mullin sequence Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the initial term, cumulative-product-plus-one operation, and least-prime-factor choice are fixed and every generated prime is distinct from earlier terms.
- Finite subdivision rule Domain-specific is a kind of Recursion
**Recursion** (`prime:recursion`).
- Giry monad Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the category of measurable spaces, object map X to probability measures on X, evaluation-generated sigma-algebra, functorial pushforward, Dirac unit, multiplication by integration, monad unit and associativity laws, Kleisli morphisms and Markov-kernel composition, strength or commutativity qualifications and probability-versus-subprobability variants.
- Hales–Jewett theorem Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by for the declared alphabet and coloring count every coloring in dimensions at or above the threshold contains a monochromatic combinatorial line.
- Hyperharmonic number Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the base case, positive integer order, summation limits, and indexing convention agree with the recursive definition.
- Josephus problem Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the number of positions n, step size k, circular ordering and direction, initial counting position, inclusion convention, elimination and restart rule, zero- or one-based survivor recurrence, base case, closed form for special k and full elimination permutation.
- K-function Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the complex argument z, hyperfactorial values at positive integers, defining recurrence K(z+1)=z^z K(z), normalization such as K(1)=1, integral log-gamma representation, Hurwitz-zeta derivative representation, analytic continuation poles zeros and branch convention, relation to Barnes G-function and Glaisher–Kinkelin constant and asymptotics.
- Left Recursion Domain-specific is a kind of Recursion
a nonterminal’s definition depends directly or indirectly on itself.
- Leonardo number Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the initial values and plus-one recurrence are used consistently and indexing is stated before applying closed forms or smoothsort properties.
- Lindley equation Domain-specific is a kind of Recursion
Each waiting state is generated recursively from the prior state and a reflected increment.
- Locally catenative sequence Domain-specific is a kind of Recursion
Locally catenative sequence is a domain-specific kind of Recursion: A locally catenative sequence is a word sequence governed by a fixed recurrence in which each sufficiently late word is the concatenation, in fixed order, of specified earlier words.
- Lucky number Domain-specific is a kind of Recursion
What makes it its own entry: the domain-specific identity determined by the number remains after every deletion stage of the standard lucky-number sieve with the stated starting convention.
- Murnaghan–Nakayama rule Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the symmetric group degree, partition labeling the irreducible representation, partition of the conjugacy cycle type, Young diagram, removable rim hooks or border strips, strip size and height, sign convention, recursive sum and base case, zero cases and symmetric-function interpretation.
- Mutual recursion Domain-specific is a kind of Recursion
It is recursion distributed across multiple definitions.
- Panjer recursion Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the count distribution and Panjer parameters, independent identically distributed severities, discretization grid and probability masses, aggregate definition, initial probability, recurrence and truncation and numerical error.
- Q-difference polynomial Domain-specific is a kind of Recursion
The lowering equation recursively relates consecutive polynomial degrees.
- Reborrowing Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the source and intermediary languages and varieties, original form and meaning, first borrowing date and adaptation, changed form or sense, return-borrowing evidence and date, resulting doublet and alternative etymologies.
- Recurrence relation Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the index domain, dependent sequence, recurrence equation and order, coefficient and forcing conventions, initial or boundary conditions, validity range and existence and uniqueness.
- Recursive tree Domain-specific is a kind of Recursion
The tree is generated by recursively attaching later labels.
- RSVP cycles Domain-specific is a kind of Recursion
Outputs and evaluations feed the next resource and score configuration.
- Running total Domain-specific is a kind of Recursion
Each total is defined from the previous state and the next item.
- Schröder number Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the index n and large or little convention, admissible lattice steps and boundary constraint, path endpoint, counted equivalent structures, initial values, recurrence and generating function, asymptotic growth and normalization relation.
- Self-verifying theories Domain-specific is a kind of Recursion
The theory represents and reasons about its own proof structure.
- Spiral approach Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the learners and course, core concepts, revisit schedule, increasing complexity, linkage to prior encounters, assessment and evidence of retention or transfer.
- Term algebra Domain-specific is a kind of Recursion
It remains its own entry because its identity is fixed by the single- or many-sorted signature and operation symbols with arities, variable or generator set X, inductive formation of well-formed terms, tree structure and syntactic equality, interpretation in a signature algebra, unique evaluation homomorphism and universal or initial property, substitution and endomorphisms, ground terms and quotients by equations.
- Thabit number Domain-specific is a kind of Recursion
The sequence is generated by a fixed exponential recurrence in its index.
- Infinite Regress Prime is a kind of Recursion
Infinite regress is a specialization of recursion in which the self-referential chain lacks a base case and continues without terminating.
- Slow-Growing Hierarchy Domain-specific presupposes Recursion
Slow-Growing Hierarchy is a strict specialization of **Hierarchy**: its rows are levels indexed by ordinal notations, and its differentia are the three recursive clauses and fundamental-sequence dependence.
- Tree-Adjoining Grammar Domain-specific presupposes Recursion
Tree-Adjoining Grammar presupposes Recursion because auxiliary trees recursively adjoin into derived trees.
- Bootstrapping Prime presupposes Recursion
Bootstrapping presupposes recursion because each stage must use products of an earlier stage to construct the next stage until the target system can sustain itself.
Not to Be Confused With¶
- Recursion is not Iteration because Recursion defines a process in terms of itself with a base case, whereas Iteration applies an operation repeatedly without self-reference.
- Recursion is not Nesting because Recursion applies the same operation at all depths, whereas Nesting describes enclosure of one structure within another.
- Recursion is not Self-Reference because Recursion is a procedure that calls itself until a base case, whereas Self-Reference is any statement or object that refers to itself.
- Recursion is not Hierarchy because Recursion defines structure through self-similar application, whereas Hierarchy is a layered ordering by rank or containment.