SlideShare una empresa de Scribd logo
1 de 37
Sets and Set Operations
Set – A collection of objects
     example:
      a set of tires




Element – An object contained within a set
    example:
    my car’s left front tire
Finite set – Contains a
                        countable number of
                        objects

                        Example: The car has 4
                                  tires

Infinite set- Contains an unlimited number of
objects
      Example: The counting numbers {1, 2, 3, …}
Cardinal Number –
                          Used to count the
                          objects in a set

                          Example: There are 26
                          letters in the alphabet

Ordinal Number – Used to describe the position
of an element in a set
     Example: The letter D is the 4th letter of the
               alphabet
Equal sets – Sets that contain exactly the same
elements (in any order)

  {A, R, T, S} = {S, T, A, R}



Notation: A = B means set A equals set B
Equivalent sets – Sets that
              contain the same number
              of elements (elements do
              not have to be the same)

                   {C, A, T} ~ {d, o, g}



Notation: A ~ B means set A is equivalent
          to set B
Empty Set – A set that
 contains no elements

 Notation: { } or


                  Universal Set – A set that
                  contains all of the elements
                  being considered

                  Notation:   U
Complement of a set – A set that contains all of
the elements of the universal set that are not in
a given set




Notation:   B   means the complement of B
A = {2, 4, 6, 8}                B = {1, 2, 3, 4, …}
C = {1, 2, 3, 4, 5}             D={}
E = {Al, Ben, Carl, Doug}       F = { 5, 4, 3, 2, 1}
G = {x | x < 6 and x is a counting number}
     Set Builder Notation {1, 2, 3, 4, 5}

Which sets are finite?          n(E) = 4
  A, C, D, E, F, G              n(G) = 5

Which sets are equal to set C? F, G

Which sets are equivalent to set A? E
U = {1, 2, 3, 4, 5, 6, 7}

M = {2, 4, 6}

What is M ?
 {1, 3, 5, 7}
Is { } the same as     ? Yes




Is {   } the same as     ? No
Set B is a subset of set A if every element of
set B is also an element of set A.
     Notation: B A

W = {1, 2, 3, 4, 5}            X = {1, 3, 5}
Y = {2, 4, 6}                  Z = {4, 2, 1, 5, 3}

True or False:
     X W True
     Y W False
     Z W True              The empty set is a
          W True           subset of every set
Set B is a proper subset of set A if every
element of set B is also an element of set A
AND B is not equal to A.
     Notation: B A

W = {1, 2, 3, 4, 5}           X = {1, 3, 5}
Y = {2, 4, 6}                 Z = {4, 2, 1, 5, 3}

True or False:
     X W True
     Y W False
     Z W False
How many subsets can a set have?
               Number of                          Number of
   Set         Elements          Subsets           Subsets
    {a}           1          {a},{ }                 2
  {a, b}          2        {a},{b},{a,b},{ }         4
 {a, b, c}        3        {a},{b},{c},{a,b},
                           {a,c},{b,c},{a,b,c},      8
                            { }
{a, b, c, d}    4                           16
                n                            2n
    If a set has n elements, it has 2n subsets
How many proper subsets can a set have?
                                        Number of
               Number of                 Proper
   Set         Elements
                         Proper Subsets
                                         Subsets
    {a}           1        X
                          {a},{ }              1
  {a, b}          2               X
                        {a},{b},{a,b},{ }      3
 {a, b, c}        3     {a},{b},{c},{a,b},
                                       X
                        {a,c},{b,c},{a,b,c},   7
                         { }
{a, b, c, d}    4                            15
                n                          2n – 1
   If a set has n elements, it has 2n – 1 proper
                      subsets
W = {a, b, c, d, e, f}

How many subsets does set W have?
    26 = 64

How many proper subsets does set W have?
    26 – 1 = 64 – 1 = 63
A Venn Diagram allows us to organize the
elements of a set according to their
attributes.
U = {1, 2, 3, 4, 5, 6.5}


even                   1    odd
        4

                    3
            2        5
 6.5
                       prime
small                               blue




                                     triangle




National Library of Virtual Manipulatives Attribute Blocks
Set Operations

The intersection of sets A and B is the set of all
elements in both sets A and B
               notation: A B
The union of sets A and B is the set of all
elements in either one or both of sets A and B
               notation: A B
The union of sets A and B is the set of all
elements in either one or both of sets A and B
               notation: A B
The union of sets A and B is the set of all
elements in either one or both of sets A and B
               notation: A B
A = {1, 2, 3, 4, 5}   B = {2, 4, 6}   C = {3, 5, 7}

A    B = {2, 4}                  A – B = {1, 3, 5}

A    B = {1, 2, 3, 4, 5, 6}      C – A = {7}

C    B = {2, 3, 4, 5, 6, 7)

C    B= { }
The set complement X – Y is the set of all
elements of X that are not in Y
Representing sets with Venn diagrams



      A                 B              A                       B
                                           1       2       3
           1   2    3
                                                   5
                                               4       6
                        4
                                                   7
                                                               8
     Two attributes                                    C
     22 or 4 regions
                                       Three attributes
                                       23 or 8 regions
A       B   A       B



    A           A
A         B     A               B



    AUB                 A   B
      A             B




              A B
A         B   A           B



    AUB           A   B
A             B




          C

(A U B)       C
A=   {1, 2, 4, 5}            A                       B
B=   {2, 3, 5, 6}                1       2       3
C=   {4, 5, 6, 7}                        5
                                     4       6
C=   {1, 2, 3, 8}
                                         7
                                                     8
A U B = {1, 2, 3, 4, 5, 6}                   C

(A U B)    C = {1, 2, 3}     (A U B)                 C
A = {3, 6, 7, 8}                 A                       B
B = {2, 3, 5, 6}                     1       2       3
C = {4, 5, 6, 7}                         4
                                             5
                                                 6
                                             7
B   C = {5, 6}                                           8
                                                 C
A U (B    C) = {3, 5, 6, 7, 8}

                                 A U (B              C)
A                        B
                1              3
                         2




                                         4

How many stars are in:
    Circle A      3          Either A or B        7
    Circle B      5          Exactly one circle   6
    Only Circle A 2          Neither circle       2
    Both A and B 1           Total stars =        9
20
                      Out of 20 students:
 B                F       8 play baseball
                          7 play football
      5   3   4           3 play both sports

                  8
How many play neither sport? 8

How many play only baseball? 5

How many play exactly one sport? 5 + 4 = 9
30                    Out of 30 people surveyed:
                             20 like Blue
  B                P         20 like Pink
       4     4 5             15 like Green
            10               14 like Blue and Pink
           2 1
                             11 like Pink and Green
             2               12 like Blue and Green
   2          G              10 like all 3 colors

How many people like only Pink? 5
How many like Blue and Green but not Pink? 2
How many like none of the 3 colors? 2
How many like exactly two of the colors? 4 + 2 + 1 =7

Más contenido relacionado

La actualidad más candente

Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...Abu Bakar Soomro
 
sets and venn diagrams
sets and venn diagramssets and venn diagrams
sets and venn diagramsShahmir Ali
 
Learn Set Theory
Learn Set TheoryLearn Set Theory
Learn Set Theoryyochevedl
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1ramlahmailok
 
Set theory
Set theorySet theory
Set theoryGaditek
 
Sets Part I The Basics
Sets Part I   The BasicsSets Part I   The Basics
Sets Part I The BasicsChad de Guzman
 
Discrete Mathematics with Applications 4th Edition Susanna Solutions Manual
Discrete Mathematics with Applications 4th Edition Susanna Solutions ManualDiscrete Mathematics with Applications 4th Edition Susanna Solutions Manual
Discrete Mathematics with Applications 4th Edition Susanna Solutions ManualHayfaVaughan
 
1. set theory
1. set theory1. set theory
1. set theorycaymulb
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relationankush_kumar
 
Relation function
Relation functionRelation function
Relation functionBiswa Nayak
 
How to Find a Cartesian Product
How to Find a Cartesian ProductHow to Find a Cartesian Product
How to Find a Cartesian ProductDon Sevcik
 

La actualidad más candente (18)

SETS [Algebra]
SETS [Algebra]SETS [Algebra]
SETS [Algebra]
 
Set operations
Set operationsSet operations
Set operations
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
 
sets and venn diagrams
sets and venn diagramssets and venn diagrams
sets and venn diagrams
 
Learn Set Theory
Learn Set TheoryLearn Set Theory
Learn Set Theory
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
Set theory
Set theorySet theory
Set theory
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Sets Part I The Basics
Sets Part I   The BasicsSets Part I   The Basics
Sets Part I The Basics
 
Discrete Mathematics with Applications 4th Edition Susanna Solutions Manual
Discrete Mathematics with Applications 4th Edition Susanna Solutions ManualDiscrete Mathematics with Applications 4th Edition Susanna Solutions Manual
Discrete Mathematics with Applications 4th Edition Susanna Solutions Manual
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
1. set theory
1. set theory1. set theory
1. set theory
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relation
 
Relation function
Relation functionRelation function
Relation function
 
How to Find a Cartesian Product
How to Find a Cartesian ProductHow to Find a Cartesian Product
How to Find a Cartesian Product
 
Set Operations
Set OperationsSet Operations
Set Operations
 

Destacado

Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryRaju Ahmed Rony
 
Ch1.1 The Language of Mathematics
Ch1.1 The Language of MathematicsCh1.1 The Language of Mathematics
Ch1.1 The Language of Mathematicsmdicken
 
Qwizdom - More fractions
Qwizdom  - More fractionsQwizdom  - More fractions
Qwizdom - More fractionsQwizdom UK
 
Medium of instruction: an unceasing debate
Medium of instruction: an unceasing debateMedium of instruction: an unceasing debate
Medium of instruction: an unceasing debaterebat
 

Destacado (8)

Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Ch1.1 The Language of Mathematics
Ch1.1 The Language of MathematicsCh1.1 The Language of Mathematics
Ch1.1 The Language of Mathematics
 
Pre Cal Notes 1 1
Pre Cal Notes 1 1Pre Cal Notes 1 1
Pre Cal Notes 1 1
 
Sets
SetsSets
Sets
 
Qwizdom - More fractions
Qwizdom  - More fractionsQwizdom  - More fractions
Qwizdom - More fractions
 
1150 day 11
1150 day 111150 day 11
1150 day 11
 
Psycholinguistics
PsycholinguisticsPsycholinguistics
Psycholinguistics
 
Medium of instruction: an unceasing debate
Medium of instruction: an unceasing debateMedium of instruction: an unceasing debate
Medium of instruction: an unceasing debate
 

Similar a 1150 day 2

Similar a 1150 day 2 (20)

2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 
Common symbols used in set theory
Common symbols used in set theoryCommon symbols used in set theory
Common symbols used in set theory
 
SETS-LESSON-1.pptx
SETS-LESSON-1.pptxSETS-LESSON-1.pptx
SETS-LESSON-1.pptx
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Set Difference
Set DifferenceSet Difference
Set Difference
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
 
Sets ppt
Sets pptSets ppt
Sets ppt
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
 
Sets
SetsSets
Sets
 
SET AND ITS OPERATIONS
SET AND ITS OPERATIONSSET AND ITS OPERATIONS
SET AND ITS OPERATIONS
 
Sets
SetsSets
Sets
 
Set Concepts
Set ConceptsSet Concepts
Set Concepts
 
1Q LP 3.4 Venn Diagram & Set Operation (Complement and DIfference).ppsx
1Q LP 3.4  Venn Diagram & Set Operation (Complement and DIfference).ppsx1Q LP 3.4  Venn Diagram & Set Operation (Complement and DIfference).ppsx
1Q LP 3.4 Venn Diagram & Set Operation (Complement and DIfference).ppsx
 
Sets
SetsSets
Sets
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
Operations on Sets
Operations on SetsOperations on Sets
Operations on Sets
 
Set
SetSet
Set
 
Operations on Set.pptx
Operations on Set.pptxOperations on Set.pptx
Operations on Set.pptx
 
Universal Set and Subset.pptx
Universal Set and Subset.pptxUniversal Set and Subset.pptx
Universal Set and Subset.pptx
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 

Más de Carol Defreese (20)

1150 day 10
1150 day 101150 day 10
1150 day 10
 
1150 day 9
1150 day 91150 day 9
1150 day 9
 
1150 day 8
1150 day 81150 day 8
1150 day 8
 
1150 day 7
1150 day 71150 day 7
1150 day 7
 
1150 day 6
1150 day 61150 day 6
1150 day 6
 
1150 day 5
1150 day 51150 day 5
1150 day 5
 
1150 day 4
1150 day 41150 day 4
1150 day 4
 
1150 day 3
1150 day 31150 day 3
1150 day 3
 
1150 day 1
1150 day 11150 day 1
1150 day 1
 
Alg2 lesson 13-5
Alg2 lesson 13-5Alg2 lesson 13-5
Alg2 lesson 13-5
 
Alg2 lesson 13-4
Alg2 lesson 13-4Alg2 lesson 13-4
Alg2 lesson 13-4
 
Alg2 lesson 13-3
Alg2 lesson 13-3Alg2 lesson 13-3
Alg2 lesson 13-3
 
Alg2 lesson 13-3
Alg2 lesson 13-3Alg2 lesson 13-3
Alg2 lesson 13-3
 
Alg2 lesson 13-2
Alg2 lesson 13-2Alg2 lesson 13-2
Alg2 lesson 13-2
 
Alg2 lesson 13-1
Alg2 lesson 13-1Alg2 lesson 13-1
Alg2 lesson 13-1
 
Alg2 lesson 11-2 and 11-4
Alg2 lesson 11-2 and 11-4Alg2 lesson 11-2 and 11-4
Alg2 lesson 11-2 and 11-4
 
Alg2 lesson 11-3
Alg2 lesson 11-3Alg2 lesson 11-3
Alg2 lesson 11-3
 
Alg2 lesson 11-1
Alg2 lesson 11-1Alg2 lesson 11-1
Alg2 lesson 11-1
 
Alg2 lesson 10-6
Alg2 lesson 10-6Alg2 lesson 10-6
Alg2 lesson 10-6
 
Alg2 lesson 10-4 and 10-5
Alg2 lesson 10-4 and 10-5Alg2 lesson 10-4 and 10-5
Alg2 lesson 10-4 and 10-5
 

Último

Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 

Último (20)

Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 

1150 day 2

  • 1. Sets and Set Operations
  • 2. Set – A collection of objects example: a set of tires Element – An object contained within a set example: my car’s left front tire
  • 3. Finite set – Contains a countable number of objects Example: The car has 4 tires Infinite set- Contains an unlimited number of objects Example: The counting numbers {1, 2, 3, …}
  • 4. Cardinal Number – Used to count the objects in a set Example: There are 26 letters in the alphabet Ordinal Number – Used to describe the position of an element in a set Example: The letter D is the 4th letter of the alphabet
  • 5. Equal sets – Sets that contain exactly the same elements (in any order) {A, R, T, S} = {S, T, A, R} Notation: A = B means set A equals set B
  • 6. Equivalent sets – Sets that contain the same number of elements (elements do not have to be the same) {C, A, T} ~ {d, o, g} Notation: A ~ B means set A is equivalent to set B
  • 7. Empty Set – A set that contains no elements Notation: { } or Universal Set – A set that contains all of the elements being considered Notation: U
  • 8. Complement of a set – A set that contains all of the elements of the universal set that are not in a given set Notation: B means the complement of B
  • 9. A = {2, 4, 6, 8} B = {1, 2, 3, 4, …} C = {1, 2, 3, 4, 5} D={} E = {Al, Ben, Carl, Doug} F = { 5, 4, 3, 2, 1} G = {x | x < 6 and x is a counting number} Set Builder Notation {1, 2, 3, 4, 5} Which sets are finite? n(E) = 4 A, C, D, E, F, G n(G) = 5 Which sets are equal to set C? F, G Which sets are equivalent to set A? E
  • 10. U = {1, 2, 3, 4, 5, 6, 7} M = {2, 4, 6} What is M ? {1, 3, 5, 7}
  • 11. Is { } the same as ? Yes Is { } the same as ? No
  • 12. Set B is a subset of set A if every element of set B is also an element of set A. Notation: B A W = {1, 2, 3, 4, 5} X = {1, 3, 5} Y = {2, 4, 6} Z = {4, 2, 1, 5, 3} True or False: X W True Y W False Z W True The empty set is a W True subset of every set
  • 13. Set B is a proper subset of set A if every element of set B is also an element of set A AND B is not equal to A. Notation: B A W = {1, 2, 3, 4, 5} X = {1, 3, 5} Y = {2, 4, 6} Z = {4, 2, 1, 5, 3} True or False: X W True Y W False Z W False
  • 14. How many subsets can a set have? Number of Number of Set Elements Subsets Subsets {a} 1 {a},{ } 2 {a, b} 2 {a},{b},{a,b},{ } 4 {a, b, c} 3 {a},{b},{c},{a,b}, {a,c},{b,c},{a,b,c}, 8 { } {a, b, c, d} 4 16 n 2n If a set has n elements, it has 2n subsets
  • 15. How many proper subsets can a set have? Number of Number of Proper Set Elements Proper Subsets Subsets {a} 1 X {a},{ } 1 {a, b} 2 X {a},{b},{a,b},{ } 3 {a, b, c} 3 {a},{b},{c},{a,b}, X {a,c},{b,c},{a,b,c}, 7 { } {a, b, c, d} 4 15 n 2n – 1 If a set has n elements, it has 2n – 1 proper subsets
  • 16. W = {a, b, c, d, e, f} How many subsets does set W have? 26 = 64 How many proper subsets does set W have? 26 – 1 = 64 – 1 = 63
  • 17.
  • 18. A Venn Diagram allows us to organize the elements of a set according to their attributes.
  • 19.
  • 20. U = {1, 2, 3, 4, 5, 6.5} even 1 odd 4 3 2 5 6.5 prime
  • 21. small blue triangle National Library of Virtual Manipulatives Attribute Blocks
  • 22. Set Operations The intersection of sets A and B is the set of all elements in both sets A and B notation: A B
  • 23. The union of sets A and B is the set of all elements in either one or both of sets A and B notation: A B
  • 24. The union of sets A and B is the set of all elements in either one or both of sets A and B notation: A B
  • 25. The union of sets A and B is the set of all elements in either one or both of sets A and B notation: A B
  • 26.
  • 27. A = {1, 2, 3, 4, 5} B = {2, 4, 6} C = {3, 5, 7} A B = {2, 4} A – B = {1, 3, 5} A B = {1, 2, 3, 4, 5, 6} C – A = {7} C B = {2, 3, 4, 5, 6, 7) C B= { } The set complement X – Y is the set of all elements of X that are not in Y
  • 28. Representing sets with Venn diagrams A B A B 1 2 3 1 2 3 5 4 6 4 7 8 Two attributes C 22 or 4 regions Three attributes 23 or 8 regions
  • 29. A B A B A A
  • 30. A B A B AUB A B A B A B
  • 31. A B A B AUB A B
  • 32. A B C (A U B) C
  • 33. A= {1, 2, 4, 5} A B B= {2, 3, 5, 6} 1 2 3 C= {4, 5, 6, 7} 5 4 6 C= {1, 2, 3, 8} 7 8 A U B = {1, 2, 3, 4, 5, 6} C (A U B) C = {1, 2, 3} (A U B) C
  • 34. A = {3, 6, 7, 8} A B B = {2, 3, 5, 6} 1 2 3 C = {4, 5, 6, 7} 4 5 6 7 B C = {5, 6} 8 C A U (B C) = {3, 5, 6, 7, 8} A U (B C)
  • 35. A B 1 3 2 4 How many stars are in: Circle A 3 Either A or B 7 Circle B 5 Exactly one circle 6 Only Circle A 2 Neither circle 2 Both A and B 1 Total stars = 9
  • 36. 20 Out of 20 students: B F 8 play baseball 7 play football 5 3 4 3 play both sports 8 How many play neither sport? 8 How many play only baseball? 5 How many play exactly one sport? 5 + 4 = 9
  • 37. 30 Out of 30 people surveyed: 20 like Blue B P 20 like Pink 4 4 5 15 like Green 10 14 like Blue and Pink 2 1 11 like Pink and Green 2 12 like Blue and Green 2 G 10 like all 3 colors How many people like only Pink? 5 How many like Blue and Green but not Pink? 2 How many like none of the 3 colors? 2 How many like exactly two of the colors? 4 + 2 + 1 =7