01 / 20

Choosing Discrete
Methods

Learn to identify and select the right discrete math technique for any problem: counting, graph theory, recurrence relations, and more.

Discrete Math

What is Discrete Math?

Discrete mathematics studies structures that are countable, separated, and distinct: integers, graphs, logical statements, and finite sets. Unlike calculus, which handles continuous change, discrete math deals with objects you can list one by one.

The Five Core Methods

Counting
Permutations, combinations, the multiplication principle
Graph Theory
Paths, circuits, coloring, shortest routes
Recurrences
Define \( a_n \) in terms of earlier terms
Logic & Proof
Direct proof, contradiction, induction
Set Theory
Inclusion-exclusion, Venn diagrams, cardinality

Why Method Selection Matters

The same real-world situation can often be modeled by more than one method, but choosing the wrong one leads to unnecessary complexity or outright errors. A strong problem-solver reads the structure of a question before reaching for a formula.

Problem Counting Graph Theory Recurrence Clean solution if structure fits Clean solution if structure fits Clean solution if structure fits

Counting: Permutations vs. Combinations

The fundamental question: does order matter? If yes, use permutations. If no, use combinations. Both are built on the multiplication principle.

Permutation
\( P(n, r) = \frac{n!}{(n-r)!} \)
Order matters: rankings, passwords, sequences
Combination
\( C(n, r) = \binom{n}{r} = \frac{n!}{r!(n-r)!} \)
Order does not matter: committees, subsets

Graph Theory Essentials

Use graph theory when a problem involves connections, networks, or relationships between objects. Vertices represent objects; edges represent links.

A B C D E 3 4 2 5 7 1 6 Weighted graph: edge numbers = cost/distance

Recurrence Relations

Use a recurrence when the answer at step \( n \) depends on answers at earlier steps. You need a recurrence equation plus initial conditions.

1
Fibonacci: \( F_n = F_{n-1} + F_{n-2} \), with \( F_0 = 0,\; F_1 = 1 \)
2
Tower of Hanoi: \( T_n = 2T_{n-1} + 1 \), with \( T_1 = 1 \)
3
Geometric growth: \( a_n = r \cdot a_{n-1} \), with \( a_0 \) given

Logic & Proof Techniques

Use formal logic when a problem asks you to verify a statement, determine truth values, or prove a property for all cases.

Direct Proof
Assume \( P \), derive \( Q \) step by step to prove \( P \Rightarrow Q \)
Contradiction
Assume \( \neg Q \), derive a contradiction, conclude \( Q \) is true
Induction
Prove base case, then show \( P(k) \Rightarrow P(k+1) \)

Set Theory & Inclusion-Exclusion

When a problem involves overlapping groups, use the inclusion-exclusion principle to avoid double-counting.

A B
\( A \cap B \)
\( |A \cup B| = |A| + |B| - |A \cap B| \)

Counting vs. Graph Theory vs. Recurrence

Feature Counting Graphs Recurrence
Core question How many ways? What path/connection? What's the pattern?
Data type Finite sets, lists Nodes & edges Sequences
Key formula \( \binom{n}{r} \) Dijkstra, Euler \( a_n = f(a_{n-1}) \)
Signal words choose, arrange route, network previous, stage \( n \)
Example Lottery numbers GPS navigation Population growth

How to Choose the Right Method

1
Read for structure. Identify what objects are involved: sets, sequences, networks, or logical statements.
2
Ask: what is being asked? "How many" → counting. "Which path" → graphs. "What comes next" → recurrence. "Is this always true" → proof.
3
Look for signal words. "Arrange," "select," "route," "previous term," "prove," "for all" each point to a specific tool.
4
Check for overlap. Does the problem involve overlapping groups? Use inclusion-exclusion. Does it involve both counting and structure? Combine methods.
5
Verify with a small case. Test your chosen method on \( n = 1 \) or \( n = 2 \) before solving the full problem.

Example 1: Committee Selection

Problem: A club has 12 members. How many ways can a committee of 4 be chosen?

Example 2: Shortest Route

Problem: Find the shortest path from A to E in the weighted graph.

A B C D F E 2 5 3 6 4 8 1 3

Example 3: Staircase Problem

Problem: You climb a staircase of \( n \) steps, taking either 1 or 2 steps at a time. How many distinct ways can you reach the top?

Common Mistakes

✕ Permutation vs. Combination Swap
Using \( P(n,r) \) when order does not matter, or \( \binom{n}{r} \) when it does. Always ask: "Does rearranging the selection create a different outcome?"
✕ Forgetting Initial Conditions
Writing a recurrence like \( a_n = 2a_{n-1} + 1 \) without specifying \( a_0 \) or \( a_1 \). Without base cases, the recurrence has infinitely many solutions.
✕ Double-Counting Overlaps
Adding \( |A| + |B| \) when \( A \) and \( B \) share elements. Always check: do the groups overlap? If so, apply inclusion-exclusion.

Method Selection Summary

If the problem asks... Use this method Key tool
"How many ways to arrange/select?" Counting \( P(n,r) \) or \( \binom{n}{r} \)
"Find the shortest/optimal path" Graph theory Dijkstra, BFS
"How many at step \( n \)?" Recurrence \( a_n = f(a_{n-1}, \ldots) \)
"Prove for all \( n \)" Induction/proof Base case + step
"How many in at least one group?" Inclusion-exclusion \( |A \cup B| \) formula

Question 1 of 5

A password consists of 3 letters chosen from A-Z (repetition allowed), followed by 2 digits from 0-9. Which method best counts the total number of possible passwords?

Question 2 of 5

In a class of 30, 18 play basketball and 15 play soccer. If every student plays at least one sport, how many play both?

Question 3 of 5

A delivery driver must visit 5 cities and return to the start, visiting each city exactly once. Which discrete method best models this problem?

Question 4 of 5

A sequence is defined by \( a_1 = 3 \) and \( a_n = 2a_{n-1} - 1 \) for \( n \geq 2 \). What is \( a_4 \)?

Question 5 of 5

You want to prove that \( 1 + 2 + 3 + \cdots + n = \frac{n(n+1)}{2} \) for every positive integer \( n \). Which method is most appropriate?