Homework: Mathematical Set Notation


This homework is essential preparation for today's lecture. Come to class prepared to ask any questions you might have.

  1. Carefully review the Mathematical Set Notation slides. Then, for each of the following mathematical expressions involving set notation presented in the slides, provide the value of the expression.

    1. 12 is in { 41, 23, -35, 8 }
    2. 23 is not in { 41, 23, -35, 8 }
    3. { } union { 'x', 'y', 'z' }
    4. { 'x', 'y', 'z' } union { 'x', 'y', 'w' }
    5. { 'x', 'y', 'z' } intersection { 'x', 'y', 'w' }
    6. { 'x', 'y', 'z' } intersection { }
    7. { 'x', 'y', 'z' } \ { 'x', 'y', 'w' }
    8. { } \ { 'x', 'y', 'z' }
    9. { 1, 2, 3 } is subset of { 2, -2, 3, 1, 7 }
    10. { 1, 2, 3 } is proper subset of { 1, 2, 3}
    11. |{ 'x', 'y', 'z' }|
    12. entries(< 'b', 'a', 'b', 'c', 'b' >)