l11-sets m163

Upload: david

Post on 27-Feb-2018

243 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 L11-Sets M163

    1/22

    Sets and Counting

    Sets and Set Operations

    Cardinality

  • 7/25/2019 L11-Sets M163

    2/22

    Asetis a collection of items called theelements of the set.

    Ex.A= {w, a, r, d}

    Sets are often named

    with capital letters.

    Order of elements doesnt

    matter, no dplicates.

    w is an element of setAis written

    m is not an element of setAis written

    Sets and Elements

  • 7/25/2019 L11-Sets M163

    3/22

    !wo setsAandBare equal, writtenA=B, if

    and only if they ha"e exactly the same

    elements.

    Ex.A= {w, a, r, d}#B= {d, r, a, w}

    E"ery element inAis inB ande"ery element inBis inA.

    Set E$ality

  • 7/25/2019 L11-Sets M163

    4/22

    %f e"ery element of a setAis also an element of a set

    BthenAis asubsetofB, and is written AB

    Ex.A= {r, d}#B= {r, a, w, d, e, t}

    E"ery element inAis also inB

    S&sets

    A B means thatAis aproper subsetofB'

    AB, &tAB

    !he nm&er of ' s&sets in a set = ,(n

    proper s&sets = .( )n

  • 7/25/2019 L11-Sets M163

    5/22

    !he set that contains no elements is called

    the empty setand is denoted { } or

    *ote' !he empty set is a s&set of e"ery set

    Empty Set

    Afinite sethas finitely many elements. An

    infinite setdoes not ha"e finitely many elements.

  • 7/25/2019 L11-Sets M163

    6/22

    Set of Otcomes

    %f yo flip a penny the possi&le otcomes

    are heads +h and tails +t. !he set of

    otcomes can &e represented &y'

    S = {h, t}

  • 7/25/2019 L11-Sets M163

    7/22

    A rle descri&es the definite property

    +properties an o&-ectxmst satisfy to

    &e part of the set.

    Ex.B= {x xis an e"en inte/er}

    0ead' 1xsch thatxis an e"en inte/er2

    Set34ilder *otation

  • 7/25/2019 L11-Sets M163

    8/22

    5enn 6ia/rams

    A

    7 "isal representation of setsSets are

    represented

    &y circles

    B

    A

    Ex. !his 5ennrepresents &oth

  • 7/25/2019 L11-Sets M163

    9/22

    Set Union' 8etAandB&e sets. !he nion ofAand

    B, written is the set of all elements that &elon/

    to eitherAorB.

    Set Operations

    BA

  • 7/25/2019 L11-Sets M163

    10/22

    Set Intersection' 8etAandB&e sets. !heintersection ofAandB, written is the

    set of all elements that are common toAand

    B.

    Set Operations

    %f then setsAandBare said to &e

    disjoint.

  • 7/25/2019 L11-Sets M163

    11/22

    Complement of a Set: %fAis a s&set of S, then

    the set of all elements in Sthat are not inAis

    called the complement ofA, written

    Set Operations

    A

    .A

    S

  • 7/25/2019 L11-Sets M163

    12/22

    5enn 6ia/rams 7 9 Sets

    S

    A B

    C

    A

    C

    B

    S

  • 7/25/2019 L11-Sets M163

    13/22

    Ex. :i"en the sets'

    Com&ine the sets

    O"erlap of the sets

    Elements in Snot

    inA.

  • 7/25/2019 L11-Sets M163

    14/22

    !he set of all elements of interest in a

    particlar discssion is called the universalsetand is denoted U or .

    !he ;ni"ersal Set

  • 7/25/2019 L11-Sets M163

    15/22

    Cartesian

  • 7/25/2019 L11-Sets M163

    16/22

    Cartesian

  • 7/25/2019 L11-Sets M163

    17/22

    Cardinality

    !he cardinality of a finite setAis the nm&er

    of elements the set and is denoted n+A.

    Ex. :i"enA= {r, a, t, s}

    n+A =

  • 7/25/2019 L11-Sets M163

    18/22

    Cardinality of a ;nion

    %fAandBare finite sets,

    Ex. :i"en

    Since the nion doesnt

    cont aand htwice

    O"erlap iss&tracted

  • 7/25/2019 L11-Sets M163

    19/22

    Cardinality of a Complement

    %f Sis a finite ni"ersal set andAis as&set of S, then

    Ex. :i"en

  • 7/25/2019 L11-Sets M163

    20/22

    Cardinality of a Cartesian

  • 7/25/2019 L11-Sets M163

    21/22

    5enn 6ia/ram

    SA B

    7 nm&er of elements

    Ex. :i"en

    ;se this information to fill in the 5enn dia/ram a&o"e.

  • 7/25/2019 L11-Sets M163

    22/22

    Sr"ey%n a sr"ey of ) people at a carni"al'

    > li?e cotton candy

    9 li?e popcorn

    >@ li?e lemonade

    )@ li?e lemonade and popcorn

    ) li?e cotton candy and lemonade

    )( li?e cotton candy and popcorn@ li?e all three

    ow many people dont li?e lemonade, popcorn or cotton

    candyB

    ow many people only li?e popcornB