All courses › Discrete Mathematics › Sets
Sets
A set is a collection of distinct elements. The union contains everything that is in at least one of the sets, and the intersection what is in both. The size of a union is found by inclusion and exclusion, so nobody is counted twice.
union: in A or B
intersection: in both A and B
inclusion and exclusion
Symbols
| number of elements in A | ||
| is an element of | ||
| empty set |
Example
30 students take maths, 20 physics and 12 both:
.
Subtract the intersection, or you count those in both twice.
Practise logic and sets for free →
← De Morgan's laws · The multiplication principle →
Part of Discrete Mathematics: Logic and sets.