๐๐ฝAlgebraic Combinatorics
Key Concepts of Recurrence Relations
Study smarter with Fiveable
Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.
Why This Matters
Recurrence relations describe sequences where each term depends on previous ones. They show up everywhere in discrete math, from counting problems to algorithm analysis. You're expected to recognize different types of recurrences, choose the right solving technique, and connect these structures to combinatorial interpretations like partitions, paths, and counting arguments.
Don't just memorize formulas. For each concept below, know what type of recurrence it represents, which solving method applies, and what combinatorial structures it counts. Exam questions often ask you to set up a recurrence from a word problem, solve it using an appropriate technique, or explain why a particular sequence satisfies a given relation.
Foundational Structures: Linear Recurrences
These are the core recurrences where each term is a linear combination of previous terms. Linearity means solutions can be added together to form new solutions (superposition), which is what makes the characteristic equation method work.
Linear Recurrence Relations
- General form: where the coefficients are constants
- Order refers to how many previous terms are used. A second-order recurrence uses and
- Initial conditions must be specified for the first terms to uniquely determine the sequence. Without them, you get a family of solutions, not a specific one
Homogeneous Recurrence Relations
A homogeneous recurrence has the form with nothing extra added on the right side. The word "homogeneous" just means there's no standalone function of tacked on.
- Characteristic polynomial is your primary solving tool: find its roots to construct the general solution
- General solution is a linear combination of terms based on those roots, adjusted for multiplicity if roots repeat (more on this below)
Non-Homogeneous Recurrence Relations
An additional function appears on the right: .
- Solution structure combines the homogeneous solution (solve as if ) with a particular solution that accounts for
- Method of undetermined coefficients works when is polynomial, exponential, or a combination. You guess a form for the particular solution, plug it in, and solve for the unknown constants. If your guess overlaps with a homogeneous solution, multiply by until it no longer does
Compare: Homogeneous vs. Non-homogeneous: both use the characteristic equation for the "core" solution, but non-homogeneous requires an extra particular solution. If you see a recurrence with a constant or polynomial term added, immediately identify it as non-homogeneous and plan for both solution components.
Simple Patterns: Arithmetic and Geometric Sequences
These are special cases of first-order linear recurrences with clean closed forms. They're the building blocks you'll recognize inside more complex recurrences.
Arithmetic Sequences
- Constant difference between consecutive terms: , with closed form
- Sum formula: , which comes from pairing the first and last terms
- The closed form is a linear function of , so if you plot the sequence, you get a straight line
Geometric Sequences
- Constant ratio between consecutive terms: , with closed form
- Sum formula: for
- Growth is exponential: the sequence grows if and decays if
Compare: Arithmetic vs. Geometric: arithmetic adds a constant (linear growth), geometric multiplies by a constant (exponential growth). Recognizing these patterns helps you guess particular solutions for non-homogeneous cases. For instance, if is a constant, try an arithmetic-style guess; if , try a geometric-style guess.
Solving Techniques: From Equations to Closed Forms
These methods transform recurrences into explicit formulas. Each technique has its sweet spot, and knowing when to apply which method is half the battle.
Characteristic Equation Method
This is the go-to method for constant-coefficient linear homogeneous recurrences.
- Substitute into the recurrence and divide through by the lowest power of . This gives you a polynomial equation in (the characteristic equation).
- Solve the characteristic polynomial for its roots.
- Build the general solution based on root types:
- Distinct real roots : solution is
- Repeated root with multiplicity : contributes terms
- Complex roots : yield terms involving and
- Apply initial conditions to solve for the constants
Generating Functions for Solving Recurrences
- Power series encoding: define , then use the recurrence to turn this into an algebraic equation in
- Solve for as a closed-form expression (usually a rational function)
- Extract coefficients via partial fractions or known series expansions to recover the sequence terms
This approach is powerful for recurrences where the characteristic method gets messy, especially convolution-type recurrences like the one for Catalan numbers.
Solving Recurrences Using Iteration
- Unroll the recurrence step-by-step: substitute the expression for , then for , and so on
- Spot the pattern that emerges, then write a conjectured closed form
- Prove your conjecture by induction
This method is best for simple cases or for building intuition before applying a more formal technique. For example, unrolling quickly reveals a geometric series.
Compare: Characteristic equation vs. Generating functions: characteristic equations work cleanly for constant-coefficient linear recurrences, while generating functions handle variable coefficients and convolution-type recurrences more flexibly. For exams, try the characteristic equation first; switch to generating functions if the structure doesn't fit.
Combinatorial Counting Sequences
These recurrences arise from counting problems and have deep combinatorial interpretations. Understanding why the recurrence holds is often more important than memorizing the formula.
Fibonacci Sequence
- Recurrence: with ,
- Binet's formula: where and , derived via the characteristic equation with roots and
- Combinatorial interpretation: counts the number of ways to tile a board with squares and dominoes. The recurrence follows because the first piece is either a square (leaving spaces) or a domino (leaving spaces)
Catalan Numbers
- Recurrence: with . This is a convolution-type recurrence, reflecting how a structure splits into two independent substructures
- Closed form:
- Counts many things: valid arrangements of pairs of parentheses, full binary trees with leaves, triangulations of a convex -gon, non-crossing partitions, and Dyck paths of length . Know at least three of these
Binomial Coefficients Recurrence
- Pascal's identity:
- Combinatorial proof: to choose items from , pick a specific element. Either it's included (then choose from the remaining ) or it's excluded (choose all from the remaining )
- Base cases: anchor the recursion
Stirling Numbers Recurrence
Stirling numbers of the second kind count the number of ways to partition a set of elements into exactly non-empty subsets.
- Recurrence:
- Why it works: consider element . Either it joins one of the existing subsets ( choices, applied to a partition of the first elements into subsets) or it forms a new singleton subset (partition the first elements into subsets)
- Base cases: , for ,
Compare: Binomial coefficients vs. Stirling numbers: both satisfy additive recurrences reflecting "include or exclude" logic for a distinguished element. But binomial coefficients count subsets (order doesn't matter, elements are just in or out), while Stirling numbers count partitions into groups (unordered groupings where every element must go somewhere). Exam questions love asking you to derive these recurrences from first principles.
Algorithm Analysis: Divide-and-Conquer
These recurrences describe computational complexity and appear at the intersection of combinatorics and computer science. The structure of the recurrence reflects how an algorithm breaks a problem into subproblems.
Divide-and-Conquer Recurrences
- Standard form: , meaning the algorithm splits the problem into subproblems each of size , with work to split and combine
- Examples: merge sort gives ; binary search gives
- Analysis goal: determine asymptotic growth. Is it , , or ?
Master Theorem
The Master Theorem gives you a shortcut for recurrences of the form . The key quantity is , which represents the cost if all the work were done at the leaves of the recursion tree.
- Case 1: If for some , the leaf work dominates:
- Case 2: If , work is evenly spread across levels:
- Case 3: If for some (and a regularity condition holds), the top-level work dominates:
For merge sort, , , so . Since , this is Case 2, giving .
Tower of Hanoi Recurrence
- Recurrence: with . The logic: move disks off the largest, move the largest, then move disks back on top
- Closed form: , which you can derive by iteration (unrolling reveals a geometric series ) or by the characteristic equation method
- This is a classic example of a subtractive recurrence (, not ) with an exponential solution
Compare: Tower of Hanoi vs. typical divide-and-conquer: Tower of Hanoi has (subtractive), while divide-and-conquer has (divisive). This difference is why the Tower of Hanoi grows exponentially while divide-and-conquer recurrences typically grow polynomially (or ). If you see subtraction in the argument, expect exponential growth. The Master Theorem does not apply to subtractive recurrences.
Quick Reference Table
| Concept | Best Examples |
|---|---|
| Second-order linear recurrence | Fibonacci sequence, Tower of Hanoi |
| Characteristic equation solving | Fibonacci (distinct roots), any constant-coefficient linear |
| Generating function approach | Catalan numbers, complex non-homogeneous cases |
| Combinatorial counting | Catalan numbers, Binomial coefficients, Stirling numbers |
| Additive recurrence structure | Pascal's identity, Stirling numbers |
| Convolution-type recurrence | Catalan numbers |
| Algorithm complexity | Divide-and-conquer recurrences, Master theorem |
| Exponential closed form | Tower of Hanoi, Geometric sequences |
Self-Check Questions
-
Both the Fibonacci sequence and the Tower of Hanoi satisfy second-order recurrences. What structural difference explains why Fibonacci grows roughly as (where ) while the Tower of Hanoi grows as ? (Hint: look at the characteristic roots.)
-
Given the recurrence , identify whether it's homogeneous or non-homogeneous, and outline which solving technique you'd apply first.
-
Compare and contrast Pascal's identity for binomial coefficients with the Stirling numbers recurrence. What combinatorial principle underlies both, and how do their interpretations differ?
-
If you need to find a closed form for (Catalan numbers) starting from the recurrence, which solving method would you choose and why? What makes this recurrence harder than Fibonacci?
-
The Master Theorem applies to recurrences of the form . Explain why it cannot be directly applied to the Tower of Hanoi recurrence, and describe what alternative approach you'd use instead.