Choosing Discrete
Methods
Learn to identify and select the right discrete math technique for any problem: counting, graph theory, recurrence relations, and more.
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
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.
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.
Order matters: rankings, passwords, sequences
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.
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.
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.
Set Theory & Inclusion-Exclusion
When a problem involves overlapping groups, use the inclusion-exclusion principle to avoid double-counting.
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
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.
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
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?