Union of sets:- The Union of two sets such as set A and set B is a new set C, which includes all the elements
that are in either A or B or in both and no other elements. Elements in both sets are listed only once in the union of the sets.
Example: 1
A = {1,3,5,7,9},
B = {2,4,6,8,10}
C = {4,11,12,3,15,7,8,9}
Find: (A B) C
A B = {1,2,3,4,5,6,7,8,9,10}
(A B) C = {1,2,3,4,5,6,7,8,9,10,11,12,15}
Example: 2
A = {apple, lemon, pear,grape},
B = {grapefruit,lime,orange,apple,grape}
C = {peach,lime,lemon,apple,strawberry,guava}
Find: A (B C)
B C = {grapefruit,lime,orange,apple,grape,peach,lemon,strawberry,guava}
A (B C) = {grapefruit,lime,orange,apple,grape,peach,lemon,strawberry,guava,pear}
Intersection of sets:- The Intersection of two sets such as set A and set B is a new set C, which have only the elements
that are in both sets.
Example: 3
A = {a,b,c,d,e,f},
B = {a,e,i,o,u}
C = {e,f,g,h,i}
Find: (A B) C
A B = {a,e}
(A B) C = {e}
Example: 4
A = {a,b,c,d,e,f},
B = {a,e,i,o,u}
C = {e,f,g,h,i}
Find: (A B) C
A B = {a,e}
(A B) C = {a,e,f,g,h,i}
Example: 5
A = {a,b,c,d,e,f},
B = {a,e,i,o,u}
C = {e,f,g,h,i}