Discrete Mathematics course
The mathematics behind computer science.
Topics in this course
1.Logic and Sets
Logic studies statements that are either true or false and how connectives combine them: and (), or (), not () and if-then (). Truth tables list every case. An implication is false only when is true and is false, and it is logically equivalent to its contrapositive , but not to its converse .
- Contrapositive is equivalent; converse and inverse are not.
- De Morgan: negating flips and/or (or /) and negates each part.
- Inclusion-exclusion: .
Quick check: How many subsets does a 5-element set have?
Includes a worked example, 3 common mistakes and 3 practice questions with answers. Study logic and sets
2.Mathematical Induction
Mathematical induction proves that a statement holds for every whole number . It works like dominoes: show the first case is true (the base case), then show that whenever one case is true, the next one must be too (the inductive step). Together these push the truth through every integer.
- State clearly before starting.
- Base case: verify directly.
- Inductive step: assume , then prove using it.
Quick check: Use the formula to compute .
Includes a worked example, 3 common mistakes and 3 practice questions with answers. Study mathematical induction
Also part of this course
These topics belong to the course outline. Full explainers for them have not been written yet, so they are summarised here rather than given pages of their own.
- Number Theory
- Divisibility, primes, GCD and modular arithmetic.
- Graph Theory
- Vertices, edges, degree, paths and trees.