Set Operations
Set Operations include Set Union, Set Intersection, Set Difference, Complement of Set, and Cartesian Product.
Union (∪): Combining elements of two sets. The
union of sets A and B (denoted by A∪B) is the set of elements which
are in A, in B, or in both A and B. Hence, A∪B={x|x∈A OR x∈B}
A∪B={x|x∈A OR x∈B}.
The union of the sets {1,3,5} and {1,2,3} is the set {1,2,3,5}; that
is, {1, 3,5}∪{1,2,3}={1,2,3,5}.
Intersection (∩): Elements common to two sets. The
intersection of sets A and B (denoted by A∩B) is the set of elements
which are in both A and B. Hence, A∩B={x|x∈A AND x∈B}
Example : 1. If A={11,12,13} and B={13,14,15}, then
A∩B={13}
2. {1,3,5} and {1,2,3} is the set {1,3}; that is, {1,
3,5}∩{1,2,3}={1,3}