Chapter 04 · overview · 1 min read
Sets, Logic and Counting
This section covers the discrete foundations: collections of things (sets), statements that are true or false (logic), how to argue carefully (proofs), how to count possibilities, how to describe connections (graphs and trees), and how fast a computation grows. Probability is built on sets and counting, and every algorithm's cost is described by growth rates.
Topics in this section:
- Sets and Operations: collections, unions, intersections and complements.
- Logic and Truth Tables: AND, OR, NOT and IF-THEN.
- Reading Proofs and Quantifiers: "for all", "there exists" and how arguments are built.
- Counting Rules: multiplying and adding possibilities.
- Permutations and Combinations: arrangements, selections and binomial coefficients.
- Graphs and Networks: nodes and edges.
- Trees and Hierarchies: graphs with no loops, and the decisions they encode.
- Growth Rates and Big-O: how cost grows with size.