Definition
- An unordered collection of distinct objects (elements)
- A set is said to contain its elements.
- Set with no element is empty set or null set
- A set with one element is called a singleton set
- We write a∈A to denote that a is an element of the set A
Ways to specify a set:
- set roster: {a,b,c}
- set builder notation: P={x∈Z+∣x is prime nb and x<20}: x∈Z+ such that …
- Popular sets
Popular sets:
- (Q={p/q ∣ p∈Z, q∈Z, and q=0})
- | Natural | Integer | Positive int | Rational | Real | Positive Real | Complex |
| --- | --- | --- | --- | --- | --- | --- |
| N | Z | Z+| Q | R | R+| C|
Equal sets: A=B
- Two sets are equal if and only if they have the same elements.
- We write A=B if A and B are equal sets.
Subset: A⊂B
- A is subset of B, B is super set of A (B⊇A)
- A⊂B: proper subset, when A=B
- if A⊆B and B⊆A⟹A=B
Set cardinality:∣S∣
- ∣S∣: non-negative integer denotes exact number of element for a finite set S
Infinite set:
- A set is said to be infinite if it is not finite
Power sets: P(S)
- power set of S is set of all subsets of set S, e.g. P(1,2)={∅,{1},{2},{1,2}}
- P(∅)={∅}
- P({∅})={∅,{∅}}
- every subset of a set is an element in its power set
Set operations:
- Union operation
- Intersect operation
- Difference operation
- Complement operation