SlideShare a Scribd company logo
1 of 20
Section 2.2
Section Summary
 Set Operations
 Union
 Intersection
 Complementation
 Difference
 More on Set Cardinality
 Set Identities
 Proving Identities
 Membership Tables
Union
 Definition: Let A and B be sets. The union of the sets
A and B, denoted by A ∪ B, is the set:
 Example: What is {1,2,3} ∪ {3, 4, 5}?
Solution: {1,2,3,4,5} U
A B
Venn Diagram for A ∪ B
Intersection
 Definition: The intersection of sets A and B, denoted
by A ∩ B, is
 Note if the intersection is empty, then A and B are said
to be disjoint.
 Example: What is {1,2,3} ∩ {3,4,5} ?
Solution: {3}
 Example: What is
{1,2,3} ∩ {4,5,6} ?
Solution: ∅
U
A B
Venn Diagram for A ∩B
Complement
Definition: If A is a set, then the complement of the A
(with respect to U), denoted by Ā is the set U - A
Ā = {x ∈ U | x ∉ A}
(The complement of A is sometimes denoted by Ac .)
Example: If U is the positive integers less than 100,
what is the complement of {x | x > 70}
Solution: {x | x ≤ 70}
A
U
Venn Diagram for Complement
Ā
Difference
 Definition: Let A and B be sets. The difference of A
and B, denoted by A – B, is the set containing the
elements of A that are not in B.
 The difference of A and B is also called the complement
of B with respect to A.
A – B = {x | x ∈ A  x ∉ B} = A ∩B
U
A
B
Venn Diagram for A − B
The Cardinality of the Union of Two
Sets
• Inclusion-Exclusion
|A ∪ B| = |A| + | B| - |A ∩ B|
• Example: Let A be the math majors in your class and B be the CS
majors. To count the number of students who are either math majors or
CS majors, add the number of math majors and the number of CS
majors, and subtract the number of joint CS/math majors.
U
A B
Venn Diagram for A, B, A ∩ B, A ∪ B
Review Questions
Example 1: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5}, B ={4,5,6,7,8}
1. A ∪ B
Solution: {1,2,3,4,5,6,7,8}
2. A ∩ B
Solution: {4,5}
3. Ā
Solution: {0,6,7,8,9,10}
4.
Solution: {0,1,2,3,9,10}
5. A – B
Solution: {1,2,3}
6. B – A
Solution: {6,7,8}
Review Questions
Example 2: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5}, B ={4,5,6,7,8},
C = {2, 5, 8, 9}
1. A ∪ (B ∩ C)
Solution:
A ∪ ({5, 8}) = {1, 2, 3, 4, 5, 8}
2. (A ∪ B) ∩ (A ∪ C)
Solution:
A ∪ B = {1, 2, 3, 4, 5, 6, 7, 8}
A ∪ C = {1, 2, 3, 4, 5, 8, 9}
{1, 2, 3, 4, 5, 6, 7, 8} ∩ {1, 2, 3, 4, 5, 8, 9}
= {1, 2, 3, 4, 5, 8}
Review Questions
Example 3: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5}, B ={4,5,6,7,8},
C = {2, 5, 8, 9}
1. Ā ∪ (B ∩ C)
Solution:
Ā ∪ ({5, 8}) = {0, 6,7,8,9,10} ∪ ({5, 8})
= {0, 5, 6,7,8,9,10}
Symmetric Difference
Definition: The symmetric difference of A and B,
denoted by is the set
Example:
U = {0,1,2,3,4,5,6,7,8,9,10}
A = {1,2,3,4,5} B ={4,5,6,7,8}
What is:
 Solution: {1,2,3,6,7,8}
U
A B
Venn Diagram
Venn Diagram with 3 sets
1. A
2. A ∪ B
3. B ∩ C
4. C’
5. A ∩ B ∩ C
U
A B
C
10
1
2 3
4
5
67
8
9
Set Identities
 Identity laws
 Domination laws
 Idempotent laws
 Complementation law
Set Identities
 Commutative laws
 Associative laws
 Distributive laws
Continued on next slide 
Set Identities
 De Morgan’s laws
(The compliment of the intersection of 2 sets is the union of the
compliments of these sets)
 Absorption laws
 Complement laws
Proving Set Identities
 Different ways to prove set identities:
1. Prove that each set (side of the identity) is a subset of
the other.
2. Use set builder notation and propositional logic.
3. Membership Tables: Verify that elements in the same
combination of sets always either belong or do not
belong to the same side of the identity. Use 1 to
indicate it is in the set and a 0 to indicate that it is not.
Proof of Second De Morgan Law
Example: Prove that
Solution: We prove this identity by showing that:
1) and
2)
Proof of Second De Morgan Law
These steps show that:
Proof of Second De Morgan Law
These steps show that:
Set-Builder Notation: Second De
Morgan Law

More Related Content

What's hot

Union & Intersection of Sets
Union & Intersection of SetsUnion & Intersection of Sets
Union & Intersection of Setsmyla gambalan
 
Sets PowerPoint Presentation
Sets PowerPoint PresentationSets PowerPoint Presentation
Sets PowerPoint PresentationAshna Rajput
 
2.4 Linear Functions
2.4 Linear Functions2.4 Linear Functions
2.4 Linear Functionssmiller5
 
Set Concepts
Set ConceptsSet Concepts
Set Conceptsshbest
 
Sequences and series
Sequences and seriesSequences and series
Sequences and seriesmstf mstf
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Manik Bhola
 
Lesson 1.2 the set of real numbers
Lesson 1.2   the set of real numbersLesson 1.2   the set of real numbers
Lesson 1.2 the set of real numbersJohnnyBallecer
 
Set, Relations and Functions
Set, Relations and FunctionsSet, Relations and Functions
Set, Relations and Functionssuthi
 
1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoningsmiller5
 
Linear Equations in Two Variables
Linear Equations in Two VariablesLinear Equations in Two Variables
Linear Equations in Two Variablessheisirenebkm
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinationsrfant
 

What's hot (20)

Union & Intersection of Sets
Union & Intersection of SetsUnion & Intersection of Sets
Union & Intersection of Sets
 
Set Theory Presentation
Set Theory PresentationSet Theory Presentation
Set Theory Presentation
 
Sets PowerPoint Presentation
Sets PowerPoint PresentationSets PowerPoint Presentation
Sets PowerPoint Presentation
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
Algebra of sets
Algebra of setsAlgebra of sets
Algebra of sets
 
2.4 Linear Functions
2.4 Linear Functions2.4 Linear Functions
2.4 Linear Functions
 
Number Theory - Lesson 1 - Introduction to Number Theory
Number Theory - Lesson 1 - Introduction to Number TheoryNumber Theory - Lesson 1 - Introduction to Number Theory
Number Theory - Lesson 1 - Introduction to Number Theory
 
Set Concepts
Set ConceptsSet Concepts
Set Concepts
 
Sequences and series
Sequences and seriesSequences and series
Sequences and series
 
Sets
SetsSets
Sets
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
 
Lesson 1.2 the set of real numbers
Lesson 1.2   the set of real numbersLesson 1.2   the set of real numbers
Lesson 1.2 the set of real numbers
 
Complement of a set
Complement of a setComplement of a set
Complement of a set
 
Set, Relations and Functions
Set, Relations and FunctionsSet, Relations and Functions
Set, Relations and Functions
 
Sets and venn diagrams
Sets and venn diagramsSets and venn diagrams
Sets and venn diagrams
 
Chapter 4 Cyclic Groups
Chapter 4 Cyclic GroupsChapter 4 Cyclic Groups
Chapter 4 Cyclic Groups
 
1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning
 
Linear Equations in Two Variables
Linear Equations in Two VariablesLinear Equations in Two Variables
Linear Equations in Two Variables
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinations
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 

Viewers also liked

Mathematics class XI SETS
Mathematics class XI SETSMathematics class XI SETS
Mathematics class XI SETSNaveen R
 
SET THEORY
SET THEORYSET THEORY
SET THEORYLena
 
Math 1: Sets and Number Theory
Math 1: Sets and Number TheoryMath 1: Sets and Number Theory
Math 1: Sets and Number TheoryRenee Tan
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1ramlahmailok
 
Set theory
Set theorySet theory
Set theoryAN_Rajin
 
Presentación fisiopatología el complemento.
Presentación fisiopatología el complemento.Presentación fisiopatología el complemento.
Presentación fisiopatología el complemento.yanninaortiz
 
TO INDENTIFY VERB AS COMPLEMENTS
TO INDENTIFY VERB  AS COMPLEMENTSTO INDENTIFY VERB  AS COMPLEMENTS
TO INDENTIFY VERB AS COMPLEMENTSAni Istiana
 
enfermedades causadas por activacion y deficiencias de complementos
enfermedades causadas por activacion y deficiencias de complementosenfermedades causadas por activacion y deficiencias de complementos
enfermedades causadas por activacion y deficiencias de complementosAlan Gonzalez Soriano
 
Production Possibility Curves
Production Possibility CurvesProduction Possibility Curves
Production Possibility CurvesB0ughton
 
Applying de morgan’s laws
Applying de morgan’s lawsApplying de morgan’s laws
Applying de morgan’s lawsdeloismccormick
 
Subject and-object-complement
Subject and-object-complementSubject and-object-complement
Subject and-object-complementewaszolek
 
Complement & its biological role.
Complement & its biological role.Complement & its biological role.
Complement & its biological role.Bruno Mmassy
 
The production possibility frontier
The production possibility frontierThe production possibility frontier
The production possibility frontierAnggreen
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbersitutor
 
Truth tables
Truth tablesTruth tables
Truth tableswalkerlj
 

Viewers also liked (20)

Set Operations
Set OperationsSet Operations
Set Operations
 
Mathematics class XI SETS
Mathematics class XI SETSMathematics class XI SETS
Mathematics class XI SETS
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Set Difference
Set DifferenceSet Difference
Set Difference
 
Sets
SetsSets
Sets
 
Math 1: Sets and Number Theory
Math 1: Sets and Number TheoryMath 1: Sets and Number Theory
Math 1: Sets and Number Theory
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
 
Set theory
Set theorySet theory
Set theory
 
Presentación fisiopatología el complemento.
Presentación fisiopatología el complemento.Presentación fisiopatología el complemento.
Presentación fisiopatología el complemento.
 
TO INDENTIFY VERB AS COMPLEMENTS
TO INDENTIFY VERB  AS COMPLEMENTSTO INDENTIFY VERB  AS COMPLEMENTS
TO INDENTIFY VERB AS COMPLEMENTS
 
enfermedades causadas por activacion y deficiencias de complementos
enfermedades causadas por activacion y deficiencias de complementosenfermedades causadas por activacion y deficiencias de complementos
enfermedades causadas por activacion y deficiencias de complementos
 
Production Possibility Curves
Production Possibility CurvesProduction Possibility Curves
Production Possibility Curves
 
Applying de morgan’s laws
Applying de morgan’s lawsApplying de morgan’s laws
Applying de morgan’s laws
 
Subject and-object-complement
Subject and-object-complementSubject and-object-complement
Subject and-object-complement
 
Complement & its biological role.
Complement & its biological role.Complement & its biological role.
Complement & its biological role.
 
The production possibility frontier
The production possibility frontierThe production possibility frontier
The production possibility frontier
 
Word Problems
Word ProblemsWord Problems
Word Problems
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbers
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Truth tables
Truth tablesTruth tables
Truth tables
 

Similar to 2.2 Set Operations

2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdfHamayonHelali
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdfAneeshRenu
 
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
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Jasmine Jesse
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdfMridulDhamija
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdfJihudumie.Com
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryNittaya Noinan
 
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exerciseDr. I. Uma Maheswari Maheswari
 
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).ppsxMariaRaffaellaMargau
 

Similar to 2.2 Set Operations (20)

20104136 ----set operations
20104136 ----set operations20104136 ----set operations
20104136 ----set operations
 
8-Sets-2.ppt
8-Sets-2.ppt8-Sets-2.ppt
8-Sets-2.ppt
 
01_Sets.pdf
01_Sets.pdf01_Sets.pdf
01_Sets.pdf
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
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 ...
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1
 
Conjuntos presentac
Conjuntos presentacConjuntos presentac
Conjuntos presentac
 
Sets
SetsSets
Sets
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
 
Set theory
Set theorySet theory
Set theory
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
 
Operations on Sets
Operations on SetsOperations on Sets
Operations on Sets
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
Sets
SetsSets
Sets
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
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
 

More from showslidedump

Automated Prediction
Automated PredictionAutomated Prediction
Automated Predictionshowslidedump
 
2010 nasig integrating_usage_statistics
2010 nasig integrating_usage_statistics2010 nasig integrating_usage_statistics
2010 nasig integrating_usage_statisticsshowslidedump
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
5.2 Strong Induction
5.2 Strong Induction5.2 Strong Induction
5.2 Strong Inductionshowslidedump
 
The life and_times_of_biomet_1977-2012____trine
The life and_times_of_biomet_1977-2012____trineThe life and_times_of_biomet_1977-2012____trine
The life and_times_of_biomet_1977-2012____trineshowslidedump
 
Computational Thinking
Computational ThinkingComputational Thinking
Computational Thinkingshowslidedump
 

More from showslidedump (9)

Automated Prediction
Automated PredictionAutomated Prediction
Automated Prediction
 
2010 nasig integrating_usage_statistics
2010 nasig integrating_usage_statistics2010 nasig integrating_usage_statistics
2010 nasig integrating_usage_statistics
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
5.2 Strong Induction
5.2 Strong Induction5.2 Strong Induction
5.2 Strong Induction
 
5.1 Induction
5.1 Induction5.1 Induction
5.1 Induction
 
2.1 Sets
2.1 Sets2.1 Sets
2.1 Sets
 
Exam 2 Study Guide
Exam 2 Study GuideExam 2 Study Guide
Exam 2 Study Guide
 
The life and_times_of_biomet_1977-2012____trine
The life and_times_of_biomet_1977-2012____trineThe life and_times_of_biomet_1977-2012____trine
The life and_times_of_biomet_1977-2012____trine
 
Computational Thinking
Computational ThinkingComputational Thinking
Computational Thinking
 

Recently uploaded

Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 

Recently uploaded (20)

YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 

2.2 Set Operations

  • 2. Section Summary  Set Operations  Union  Intersection  Complementation  Difference  More on Set Cardinality  Set Identities  Proving Identities  Membership Tables
  • 3. Union  Definition: Let A and B be sets. The union of the sets A and B, denoted by A ∪ B, is the set:  Example: What is {1,2,3} ∪ {3, 4, 5}? Solution: {1,2,3,4,5} U A B Venn Diagram for A ∪ B
  • 4. Intersection  Definition: The intersection of sets A and B, denoted by A ∩ B, is  Note if the intersection is empty, then A and B are said to be disjoint.  Example: What is {1,2,3} ∩ {3,4,5} ? Solution: {3}  Example: What is {1,2,3} ∩ {4,5,6} ? Solution: ∅ U A B Venn Diagram for A ∩B
  • 5. Complement Definition: If A is a set, then the complement of the A (with respect to U), denoted by Ā is the set U - A Ā = {x ∈ U | x ∉ A} (The complement of A is sometimes denoted by Ac .) Example: If U is the positive integers less than 100, what is the complement of {x | x > 70} Solution: {x | x ≤ 70} A U Venn Diagram for Complement Ā
  • 6. Difference  Definition: Let A and B be sets. The difference of A and B, denoted by A – B, is the set containing the elements of A that are not in B.  The difference of A and B is also called the complement of B with respect to A. A – B = {x | x ∈ A  x ∉ B} = A ∩B U A B Venn Diagram for A − B
  • 7. The Cardinality of the Union of Two Sets • Inclusion-Exclusion |A ∪ B| = |A| + | B| - |A ∩ B| • Example: Let A be the math majors in your class and B be the CS majors. To count the number of students who are either math majors or CS majors, add the number of math majors and the number of CS majors, and subtract the number of joint CS/math majors. U A B Venn Diagram for A, B, A ∩ B, A ∪ B
  • 8. Review Questions Example 1: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5}, B ={4,5,6,7,8} 1. A ∪ B Solution: {1,2,3,4,5,6,7,8} 2. A ∩ B Solution: {4,5} 3. Ā Solution: {0,6,7,8,9,10} 4. Solution: {0,1,2,3,9,10} 5. A – B Solution: {1,2,3} 6. B – A Solution: {6,7,8}
  • 9. Review Questions Example 2: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5}, B ={4,5,6,7,8}, C = {2, 5, 8, 9} 1. A ∪ (B ∩ C) Solution: A ∪ ({5, 8}) = {1, 2, 3, 4, 5, 8} 2. (A ∪ B) ∩ (A ∪ C) Solution: A ∪ B = {1, 2, 3, 4, 5, 6, 7, 8} A ∪ C = {1, 2, 3, 4, 5, 8, 9} {1, 2, 3, 4, 5, 6, 7, 8} ∩ {1, 2, 3, 4, 5, 8, 9} = {1, 2, 3, 4, 5, 8}
  • 10. Review Questions Example 3: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5}, B ={4,5,6,7,8}, C = {2, 5, 8, 9} 1. Ā ∪ (B ∩ C) Solution: Ā ∪ ({5, 8}) = {0, 6,7,8,9,10} ∪ ({5, 8}) = {0, 5, 6,7,8,9,10}
  • 11. Symmetric Difference Definition: The symmetric difference of A and B, denoted by is the set Example: U = {0,1,2,3,4,5,6,7,8,9,10} A = {1,2,3,4,5} B ={4,5,6,7,8} What is:  Solution: {1,2,3,6,7,8} U A B Venn Diagram
  • 12. Venn Diagram with 3 sets 1. A 2. A ∪ B 3. B ∩ C 4. C’ 5. A ∩ B ∩ C U A B C 10 1 2 3 4 5 67 8 9
  • 13. Set Identities  Identity laws  Domination laws  Idempotent laws  Complementation law
  • 14. Set Identities  Commutative laws  Associative laws  Distributive laws Continued on next slide 
  • 15. Set Identities  De Morgan’s laws (The compliment of the intersection of 2 sets is the union of the compliments of these sets)  Absorption laws  Complement laws
  • 16. Proving Set Identities  Different ways to prove set identities: 1. Prove that each set (side of the identity) is a subset of the other. 2. Use set builder notation and propositional logic. 3. Membership Tables: Verify that elements in the same combination of sets always either belong or do not belong to the same side of the identity. Use 1 to indicate it is in the set and a 0 to indicate that it is not.
  • 17. Proof of Second De Morgan Law Example: Prove that Solution: We prove this identity by showing that: 1) and 2)
  • 18. Proof of Second De Morgan Law These steps show that:
  • 19. Proof of Second De Morgan Law These steps show that: