This cheat sheet covers the core tools of discrete mathematics: logic, sets, counting, and graph theory. These topics are the language of proof, algorithms, data structures, probability, and computer science theory. College students need a compact reference because many problems combine symbols, definitions, and formulas from several areas at once.
The most important ideas are translating statements into logical form, using set notation correctly, and selecting the right counting method. Logic depends on truth values, implications, quantifiers, and equivalences. Counting depends on product rules, permutations, combinations, inclusion-exclusion, and recurrences.
Graph theory focuses on vertices, edges, degrees, paths, connectivity, trees, and classic formulas such as .
Key Facts
- The implication is logically equivalent to and is false only when is true and is false.
- De Morgan's laws are and .
- For sets, De Morgan's laws are and .
- The number of subsets of a set with elements is , and the number of -element subsets is .
- The multiplication rule says that if one task has choices and a second independent task has choices, then both tasks have choices.
- The inclusion-exclusion formula for two finite sets is .
- For a finite simple graph , the handshaking lemma is .
- A tree with vertices has exactly edges, is connected, and has no cycles.
Vocabulary
- Proposition
- A proposition is a statement that has a definite truth value, either true or false.
- Biconditional
- A biconditional means that and have the same truth value.
- Power Set
- The power set of , written , is the set of all subsets of .
- Combination
- A combination is a selection where order does not matter, counted by .
- Permutation
- A permutation is an arrangement where order matters, counted by .
- Connected Graph
- A connected graph is a graph in which every pair of vertices is joined by at least one path.
Common Mistakes to Avoid
- Confusing with is wrong because an implication and its converse do not usually have the same truth value.
- Treating like is wrong because a union includes elements in either set, while an intersection includes only elements in both sets.
- Using when order matters is wrong because combinations ignore order, while ordered selections require permutations such as .
- Forgetting to subtract overlap in inclusion-exclusion is wrong because elements in are counted twice in .
- Assuming every graph with edges is a tree is wrong because a tree must also be connected and acyclic.
Practice Questions
- 1 Construct the truth table for and determine when it is true.
- 2 A set has elements. How many subsets does have, and how many subsets have exactly elements?
- 3 How many length- passwords can be made from lowercase letters if repetition is allowed, and how many if repetition is not allowed?
- 4 Explain why a connected graph with vertices and edges cannot contain a cycle.
Understanding Discrete Math Logic, Sets, Combinatorics
A good way to solve a discrete math problem is to identify its structure before choosing a formula. Start by naming the objects involved. They may be statements, members of a collection, arrangements, or points joined by links.
Then decide what must be shown or counted. Small examples are useful because they expose hidden conditions. For a logic statement, make a truth table when only a few variables appear.
For a set problem, sketch overlapping regions and mark the universal set. For a counting problem, list outcomes for a tiny case.
This is not wasted time. It helps prevent a correct rule from being applied to the wrong situation.
Logic is especially important in proofs because ordinary language can be vague. Words such as every, some, only if, and unless carry precise meaning. A statement beginning with every requires attention to all allowed cases.
A statement beginning with some needs only one valid example. To disprove a universal claim, one counterexample is enough. To prove that two statements are equivalent, show that each one leads to the other.
Students often confuse a statement with its converse. If studying implies passing, it does not follow that passing implies studying.
Many proof errors come from making this reversal without noticing it. In programming, the same care matters when an if condition controls whether code runs.
Counting methods depend on whether order matters and whether choices can repeat. Choosing three students for a committee differs from assigning president, secretary, and treasurer to three students. The first treats the same group as one outcome.
The second gives different outcomes when roles change. Break complex counts into stages only when each stage has a clear number of available choices. If restrictions are present, it can be easier to count all outcomes first, then remove the invalid ones.
Inclusion and exclusion is useful when categories overlap, such as students enrolled in two clubs. The overlap must be handled carefully because those students appear in both initial totals. Probability uses these same counts when outcomes are equally likely.
Recurrences describe processes that grow step by step. A recurrence does not merely give an answer. It explains how the next value depends on earlier values.
This appears in savings plans, population models, tiling problems, and the running time of computer algorithms. Find starting values before using a recurrence, since the rule alone may allow many sequences. Graphs provide another model for real systems.
Vertices can represent people, cities, web pages, or tasks. Edges represent a relationship or connection. A path tracks possible movement through the system.
A cycle shows a route that returns to its start. Trees are useful for folder systems and decision processes because there is exactly one route between any two vertices.
When working with graphs, draw a neat labeled picture and check each connection once. A missing edge can change connectivity, degrees, and the entire conclusion.