https://slides.com/georgelee/ics141-sets/live
The set of all elements for which the sets we're operating on will be selecting from.
For example if U = {x | x ∈ ℤ }, then sets A and B inside of this universe can only contain integers.
The Union of two sets A and B are all of the elements of A and all of the elements in B.
Using set builder notation: A ∪ B = { x | x ∈ A ∨ x ∈ B }
{2, 4, 6} ∪ {1, 3, 5} = {1, 2, 3, 4, 5, 6}
The Intersection of two sets A and B are all of the elements common to both A and B.
Using set builder notation: A ∩ B = { x | x ∈ A ∧ x ∈ B }
{2, 4, 6} ∩ {1, 2, 3} = {2}
The Complement of a set A is all of the elements in U that are not in A.
Using set builder notation: A = { x ∈ U | x ∉ A ) }
The Difference of two sets A and B are all the elements in A that are not in B. Note that A - B is not usually equal to B - A.
Using set builder notation: A − B = { x | x ∈ A ∧ x ∉ B }
{2, 4, 6} - {1, 2, 3} = {4, 6}
The Cartesian Product of two sets A and B is a set of ordered pairs containing all pairs of elements between A and B.
An ordered pair is of the form (x, y)
Using set builder notation: A × B = { (x, y) | x ∈ A ∧ y ∈ B }
{2, 4} x {1, 2} = {(2, 1), (2, 2), (4, 1), (4, 2)}
The Power Set of a set A is the set of all subsets of A (including the empty set and itself). May be denoted as ℘(A) or 2^A
℘{9,10,11} = { X | X ⊆ {9,10,11} } = { ∅, {9}, {10}, {11}, {9,10}, {10,11}, {9,11}, {9,10,11} }