Day 4 Set Operations
Day 4 Set Operations
Day 4 Set Operations
SET OPERATIONS
SET OPERATIONS
1. Intersection of Sets
2. Union of Sets
3. Difference of Sets
4. Complement of a set
1. Intersection of two sets
the set containing all the
common elements of the two
sets
the symbol ∩ is used to denote
the intersection of two sets
the intersection of set A and
set B is written as A ∩ B
Examples:
1. If A = { 1,2,3,4,5,6 } and B = {
2,4,6,8,10 }, then A ∩ B = {2,4,6}
Note: A ∩ B is read as “ A
intersection B or the
intersection of A and B
2. If R = { 5,10,15,20 }, M = {
5,6,7,8,9,10 } and G = { 8,9,10 },
then R ∩ M ∩ G = { 10 }
Given: A = { 1,2,3,4,5} and B = {2,4,6,8,10}
Using Venn Diagram, the intersection of A and B is
A∩B
U
A B
5
Other examples:
Find the intersection of the
following sets
1. C = {4,5,6,7,8} and D =
{7,8,9,10,11}
2. M = { 2,3,4, } and N = {5,6,7}
3. A = { 1,2,3,4,5,6} and B = {4,5,6}
4. S = {a,e,i,o,u} and T = { a,e,i,o,u}
5. R = { 1,2,3,4,5 }, M = { 3,4,5,6,7},
G = {4,5,6,7,8}
Other examples:
Use Venn Diagram to illustrate the
intersection of the given sets.
1. C = {4,5,6,7,8} and D = {7,8,9,10,11}
2. M = { 2,3,4, } and N = {5,6,7}
3. A = { 1,2,3,4,5,6} and B = {4,5,6}
4. S = {a,e,i,o,u} and T = { a,e,i,o,u}
5. R = { 1,2,3,4,5 }, M = { 3,4,5,6,7},
G = {4,5,6,7,8}
2. Union of two sets
the set containing all the elements of the two sets
the symbol U is used to denote the union of two
sets
the union of set A and set B is written as A U B
Examples:
1. If A = { 1,2,3 } and B = { 2,3,4,7,8 }, then A U B = {
1,2,3,4,7,8 }
Note: A U B is read as A union B or the union of A
and B
2. If R = { 1,3,5,7,… } and M = { 2,4,6,8,… },
then R U M = { 1,2,3,4,5,6,…}
or R U M = { x | x is a counting number }
Given: A = { 1,2,3,4,5,6} and B = { 5,6,7,8,9}
Using Venn Diagram, the union of A and B is
AUB
U
A B
9
Other examples:
Find the union of the following sets.
1. C = {4,5,6,7,8} and D = {7,8,9,10,11}
2. M = { 2,3,4, } and N = {5,6,7}
3. A = { 1,2,3,4,5,6} and B = {4,5,6}
4. S = {a,e,i,o,u} and T = { a,e,i,o,u}
5. R = { 1,2,3,4,5 }, M = { 3,4,5,6,7},
G = {4,5,6,7,8}
Other examples:
Use Venn Diagram to illustrate the union
of the given sets.
1. C = {4,5,6,7,8} and D = {7,8,9,10,11}
2. M = { 2,3,4, } and N = {5,6,7}
3. A = { 1,2,3,4,5,6} and B = {4,5,6}
4. S = {a,e,i,o,u} and T = { a,e,i,o,u}
5. R = { 1,2,3,4,5 }, M = { 3,4,5,6,7},
G = {4,5,6,7,8}
Quiz #
A. Determine the a.) intersection and b.)
union of the following sets.
1. A = {10,20,30} and D = {40,50,60}
2. S = { 1,3,5,7,9,11} and T = {5,7,9}
3. M = {2, 4, 6, 8, 10} and
N = {10, 20, 30, 40, 50}
4. C = { } and T = { 1,2,3,4,5}
5. R = {2,4,6,8,10}, M = {6, 8, 10, 12, 14},
G = {1,2,3,4,5}
Quiz #
B. Use Venn Diagram to illustrate the
a.) intersection and b.) union of the
following sets.
1. A = {10,20,30} and D = {40,50,60}
2. S = { 1,3,5,7,9,11} and T = {5,7,9}
3. M = {2, 4, 6, 8, 10} and
N = {10, 20, 30, 40, 50}
4. C = { } and T = { 1,2,3,4,5}
5. R = {2,4,6,8,10}, M = {6, 8, 10, 12, 14},
G = {1,2,3,4,5}