SlideShare a Scribd company logo
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

More Related Content

What's hot

SETS [Algebra]
SETS [Algebra]SETS [Algebra]
SETS [Algebra]
Natasha Pereira
 
Set operations
Set operationsSet operations
Set operations
rajshreemuthiah
 
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 diagrams
Shahmir Ali
 
Learn Set Theory
Learn Set TheoryLearn Set Theory
Learn Set Theory
yochevedl
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
ramlahmailok
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
University of Potsdam
 
Set theory
Set theorySet theory
Set theory
Gaditek
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
University of Potsdam
 
Sets Part I The Basics
Sets Part I   The BasicsSets Part I   The Basics
Sets Part I The Basics
Chad 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 Manual
HayfaVaughan
 
1. set theory
1. set theory1. set theory
1. set theory
caymulb
 
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 Product
Don Sevcik
 
Set Operations
Set OperationsSet Operations
Set Operations
Bilal Amjad
 

What's hot (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
 

Viewers also liked

Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
Raju 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 fractions
Qwizdom UK
 
Psycholinguistics
PsycholinguisticsPsycholinguistics
Psycholinguistics
Mehwish Yaseen
 
Medium of instruction: an unceasing debate
Medium of instruction: an unceasing debateMedium of instruction: an unceasing debate
Medium of instruction: an unceasing debaterebat
 

Viewers also liked (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 to 1150 day 2

2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
HamayonHelali
 
Common symbols used in set theory
Common symbols used in set theoryCommon symbols used in set theory
Common symbols used in set theory
smZaiN1
 
SETS-LESSON-1.pptx
SETS-LESSON-1.pptxSETS-LESSON-1.pptx
SETS-LESSON-1.pptx
RenzAimeeGarcia2
 
SET THEORY
SET THEORYSET THEORY
SET THEORYLena
 
Set Difference
Set DifferenceSet Difference
Set Difference
Reymart Bargamento
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
Jihudumie.Com
 
Sets ppt
Sets pptSets ppt
Sets ppt
Clint Higgs
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
Rahul Avicii
 
Sets
SetsSets
SET AND ITS OPERATIONS
SET AND ITS OPERATIONSSET AND ITS OPERATIONS
SET AND ITS OPERATIONS
RohithV15
 
Sets
SetsSets
Set Concepts
Set ConceptsSet Concepts
Set Conceptsshbest
 
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
MariaRaffaellaMargau
 
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptxQ1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
NovyFacun1
 
Sets
SetsSets
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
RatipornChomrit
 
Operations on Sets
Operations on SetsOperations on Sets
Operations on Sets
Free Math Powerpoints
 
Operations on Set.pptx
Operations on Set.pptxOperations on Set.pptx
Operations on Set.pptx
LynetteCalopez3
 
Universal Set and Subset.pptx
Universal Set and Subset.pptxUniversal Set and Subset.pptx
Universal Set and Subset.pptx
ThannyMPenoliar
 

Similar to 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
 
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptxQ1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
 
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
 

More from 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
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 

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