Docsity

CS200 Worksheet 1: Sets and Set Operations, Assignments of Discrete Mathematics

Partial preview of the text

Download CS200 Worksheet 1: Sets and Set Operations and more Assignments Discrete Mathematics in PDF only on Docsity!

CS200 - Worksheet 1

A set is a collection of things. Those things could be numbers, letters, people, minerals, or other sets.

(The following is from Discrete Mathematics, an Open Introduction by Levin):

The following are โ€œfamousโ€ sets:

  • โˆ… = empty set = {}
  • N = the set of natural numbers = { 1 , 2 , 3 ,... }. (Note: in DMOI, N = { 0 , 1 , 2 , 3 , 4 ,... })
  • Z = set of integers = {... , โˆ’ 3 , โˆ’ 2 , โˆ’ 1 , 0 , 1 , 2 , 3... }
  • R = the set of real numbers
  • Q = the set of rational numbers
  1. Let T = {x, y, {g, h}, k}. True or false: (a) g โˆˆ T (b) {g, h} โˆˆ T (c) {g, h} โŠ‚ T

Solution (a) False (b) True (c) False

  1. Describe the following sets in roster notation (list the first few elements). If the set is also โ€œfamousโ€ give its symbol. (a) A = { 2 x^ : x โˆˆ N} (b) B = {x : x is even and x โˆˆ { 1 , 3 , 5 }} (c) C = {x โ‰ฅ 0 : x is even or x is odd}

Solution (a) A = { 1 , 2 , 4 , 8 , 16 ,... } (b) B = {} = โˆ… (c) C = { 0 , 1 , 2 , 3 , 4 ,... } = N โˆช { 0 }

  1. Write the following in set-builder notation using as concise notation as possible (a) { 2 , 4 , 6 , 8 , 10 , 12 } (b) { 2 , 4 , 8 , 16 , 32 , 64 } (c) { 0 , โˆ’ 1 , โˆ’ 2 , โˆ’ 3 ,... } (d) { 1 , 4 , 9 , 16 , 25 , 36 ,... } (e) { 1 , 3 , 5 , 7 , 9 , 11 ,... } (f) { 1 , 4 , 9 , 16 , 25 , 36 ,... } โˆฉ { 2 , 4 , 6 , 8 , 10 ,... } (g) {a, e, i, o, u}

Solution 7 = |A โˆช B| = |A โˆฉ B| + |A \ B| + |B \ A|. But |A \ B| = |B \ A| because |A| = |B|, so |A \ B| = 2 and |A| = |A โˆฉ B| + |A \ B| = 5.

  1. Let X = โˆ…, Y = {โˆ…}, Z = {{โˆ…}}. Are the following true or false?

(a) โˆ… โˆˆ X (b) โˆ… โˆˆ Y (c) โˆ… โˆˆ Z (d) X โІ Y (e) Y โІ Z (f) X โˆˆ Y (g) Y โˆˆ Z

Solution (a) False (b) True (c) False (d) True (e) False (f) True (g) True

  1. Find sets A and B such that A โŠ‚ B and A โˆˆ B.

Solution For example, A = { 1 , 2 }, B = { 1 , 2 , 3 , 4 , { 1 , 2 }, 5 }.

  1. Does the empty set contain itself?

Solution No. The empty set contains nothing. If it contained the empty set, then it would no longer by empty!