Docsity

Set Theory - Elementary Discrete Math - Lecture Slides, Slides of Discrete Mathematics

Partial preview of the text

Download Set Theory - Elementary Discrete Math - Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

Set Theory

Set Theory

  • Language of sets
  • Basis of all mathematics
  • " collection of objects"
  • Examples:
    • A = {a, b, d, 2, 4}
    • B = {math, religion, literature,

computer science}

  • C = {โ„œ, โ„˜, ฮจ, ฮพ}

Set Theory

  • Ways to denote sets
    • Lists
    • Ellipses
    • Set builder notation
    • Propositions

Set Theory

  • Other ways to denote sets
    • Ellipses
      • N = {0, 1, 2, 3, 4.. .}
        • (set of natural numbers)
      • Z = {.. ., -3, -2, -1, 0, 1, 2, 3,.. .}
        • (set of integers )
      • E = {0, 2, 4, 6.. .}
        • (set of even natural numbers)

Set builder notation

  • Q = {p/q | p and q are integers and q โ‰  0}
    • (set of rational numbers )
  • I = {x | x is a nonrepeating decimal}
    • (set of irrational numbers )
  • R = {x | X is a rational or irrational number}
    • (set of real numbers )

Set Theory

  • Propositions

โˆ€ x : [( x is in S โ†” Prime( x )]

โˆ€ x : [( x is in S โ†” โˆƒ y : x = 2 y )]

Set Theory

  • Elements may be sets

A = {1,2,{1,3,5},3,{4,6,8}}

B = {{1,2,3},{4,5,6}}

C = {ร˜, 1, 3} = {{},1,3}

D = {ร˜} = {{}} โ‰  ร˜

Set Theory

  • Set size
    • called cardinality
    • number of elements in set
    • denoted |A| is the size of set A
    • If A = {2,3,5,7,8}, then |A| = 5
    • If a set A has a finite number of elements, it is a finite set.
    • A set which is not finite is infinite.

Set Theory

  • โŠ‚ - " proper subset "
    • A โŠ‚ B - A is a proper subset of B (A โ‰  B)
        • Every element in A is also in B and ยป A โ‰  B
        • (โˆ€ x : x โˆˆ A โ†’ x โˆˆ B) โˆง A โ‰  B
  • โŠƒ - " proper superset "
    • A โŠƒ B - A is a proper superset of B (A โ‰  B)
        • Every element in B is also in A and ยป A โ‰  B
        • (โˆ€ x : x โˆˆ B โ†’ x โˆˆ A) โˆง A โ‰  B
  • example: N โІ Z โІ Q โІ R

POWER SETS

  • Given any set, we can form a set of all possible subsets.
  • This set is called the power set.
  • Notation: power set or set A denoted as P (A)
  • Ex: Let A = {a}
    • P (A) = {ร˜, {a}}

POWER SETS

P ( P (ร˜)) =?

P ( P ({1})) =?

P ( P ({0, 1})) =?

P ({0, 1,2,3,4,5}) =?

CARTESAIN PRODUCT

  • Ordered pairs - A list of elements in which the order is significant.
  • Order is not significant for sets!
  • Notation: use round brackets.
    • ( a,b )
    • (1,2)
    • (2,1)

CARTESAIN PRODUCT

  • Cartesian Product : Given two sets A and B, the set of - all ordered pairs of the form (a,b) where a is any - element of A and b any element of B, is called the - Cartesian product of A and B.
  • Denoted as A x B

CARTESAIN PRODUCT

  • A x B = {( a,b ) | a โˆˆA and b โˆˆB}
  • Ex: Let A = {1,2,3}; B = { x,y }
    • A x B = {(1, x ),(1, y ),(2, x ),(2, y ),(3, x ),(3, y )}
    • B x A = {( x ,1),( y ,1),( x ,2),( y ,2),( x ,3),( y ,3)}
    • B x B = B^2 = {( x,x ),( x,y ),( y,x ),( y,y )}