Tag: Union

  • Set Operations: Union, Intersection, Difference, and practical Examples

    Set Operations: Union, Intersection, Difference, and practical Examples

    Introduction

    Sets have some methods or procedures that can be applied on them hence producing different sets from two or more sets. The procedures we are calling operations on sets are what we are going to discuss in the topic. Among the operations we encounter includes:

    • Union
    • Intersection
    • difference
    • Cartesian Product
    • practice problems to consolidate our learning

    union of the two sets

    when we operate union of set, we combine two sets to get the collection of objects that are in either set.

    union of sets venn diagram

    Union of set C = A ∪ B meaning C is the union of A and B.

    C = A ∪ B means that the elements of C are exactly the elements which are either an element of A or an element of B or an element of both.

    for example if A={7,11,13} and B={8, 13, 15}, then A ∪ B = {7, 8, 11,13,15}.

    Intersection

    C is the intersection of A and B, when the elements in C are precisely those both in A and in B. So Intersection operation is taking elements that are common on both sets.

    Intersection of set A and be will be given by C = A∩B.

    if A = {7, 8, 13} and B = {8, 13, 14}, then A ∩ B = {8, 13}.

    complement

    complement of a set talks of all the elements which are not in a particular set.

    if we say that B is the complement of A, we mean that B contains every element not contained in A and we write ; B=AC .

    Universe in set context is the a given set in which we have some interest.

    if our universe is {1, 2, 3, 4 ,5, 6,7 ,8 , 9, 10}, a set of counting numbers, and A = {2, 3, 5, 7}, then Ac = {1, 4, 6, 8, 9, 10}.

    set difference

    set difference between A and B is the set of all elements which are both elements of A and NOT elements of B; that is, A ∩ Bc .

    set difference between A and B is written as A \ B.

    hence A ∩ Bc = A \ B.

    Example Question:
    1. A ∪ B
    2. A ∩ B
    3. B ∩ C
    4. A ∩ D
    5. (B ∪ C)’
    6. A \ B
    1. (D ∩ C’)∪(A ∩ B)’
    2. ∅ ∪ C
    3. ∅ ∩ C

    solution to the practice Problem

    1. A ∪ B

    solution algorithm

    2. A ∩ B.

    solution algorithm

    3. B ∩ C

    solution algorithm

    4. A ∩ D.

    solution algorithm

    5. (B ∪ C)’.

    solution algorithm

    6. A \ B

    solution algorithm

    7. (D ∩ C’)∪(A ∩ B)’

    solution algorithm

    8. ∅ ∪ C

    solution algorithm

    9. ∅ ∩ C

    solution algorithm

    Related Posts