Sets
- An unordered collection of distinct objects
- Duplicate elements does not change the set
- Elements/members are objects in a set
- denotes that is an element of the set
- denotes that is not an element of set
- Must be well-defined; membership can be verified with a yes/no answer
Set Examples
Common Sets
Universal Set
- A set that contains everything within a certain context
- Typically represented with a rectangle in diagrams, denoted with or
Empty Set
- A set containing no elements is denoted with or
Subsets
- The set is a subset of if every element of is also an element of
- The notation denotes that is a subset of
- but
Proper Subsets
- If every element of is an element of , but not every element in set is in set
- must be shorter than
- Denoted with , rather than since
Supersets
- If every element of is an element of , then is a subset of
- Denoted with
Cardinality
- The number of distinct elements in a set
- Denoted with
Inclusion-Exclusion Principle