Bifalgorithm post · Brisk · Chapter 1
How do partitions simplify counting?
How do partitions simplify counting? (Brisk · Chapter 1) — "Partitions come up quite a bit, and when they do, we can make some important simplifications. Take…
Ideas in this flowchart
- Partitions simplify reasoning about sets
- A partition divides a set into subsets that are mutually exclusive and collectively exhaustive
- Freshmen, sophomores, juniors, and seniors form a partition of S
- In-state and out-of-state students form a partition of S
- On-campus and off-campus students form a partition of S
- Computer science majors and English majors do not form a partition of S
- Some students are in neither major, so the groups are not collectively exhaustive
- Some students may double-major, so the groups are not mutually exclusive
- Male and female classifications are not a partition of the human race
- Non-binary persons may identify with neither classification
- A partition allows the cardinality of a set to be found by adding subset sizes
- |S| equals the number of on-campus students plus the number of off-campus students
- Adding the numbers of freshmen, sophomores, juniors, and seniors also gives |S|
- Adding computer science and English majors usually differs from |S| because some students are double-counted and others are omitted
- Partitions provide a beautiful simplicity in counting and reasoning
