SlideShare ist ein Scribd-Unternehmen logo
1 von 15
D i s c re te
S tru c tu re s
        (Discrete Mathematics)
  Topic: Set Operations
             ©bilalAmjad
    bilalamjad78633@yahoo.com
Set operations: Union
ïŹ Formal definition for the union of two sets:
  A U B = { x | x ∈ A or x ∈ B } or
  A U B = { x ∈ U| x ∈ A or x ∈ B }
ïŹ Further examples
   {1, 2, 3} âˆȘ {3, 4, 5} = {1, 2, 3, 4, 5}
   {a, b} âˆȘ {3, 4} = {a, b, 3, 4}
   {1, 2} âˆȘ ∅ = {1, 2}
ïŹ Properties of the union operation
     AâˆȘ∅=A                            Identity law
     AâˆȘU=U                            Domination law
     AâˆȘA=A                            Idempotent law
     AâˆȘB=BâˆȘA                          Commutative law
     A âˆȘ (B âˆȘ C) = (A âˆȘ B) âˆȘ C        Associative law
05/26/12
Set operations: Intersection
ïŹ Formal definition for the intersection of two sets:
  A ∩ B = { x | x ∈ A and x ∈ B }
ïŹ Examples
   {1, 2, 3} ∩ {3, 4, 5} = {3}
   {a, b} ∩ {3, 4} = ∅
   {1, 2} ∩ ∅ = ∅
ïŹ Properties of the intersection operation
     A∩U=A                         Identity law
     A∩∅=∅                         Domination law
     A∩A=A                         Idempotent law
     A∩B=B∩A                       Commutative law
     A ∩ (B ∩ C) = (A ∩ B) ∩ C     Associative law
Exercise-intersection




05/26/12
Exercise-union




05/26/12
Disjoint sets
ïŹ Formal definition for disjoint sets:
  two sets are disjoint if their intersection is the
  empty set
ïŹ Further examples
   {1, 2, 3} and {3, 4, 5} are not disjoint
   {a, b} and {3, 4} are disjoint
   {1, 2} and ∅ are disjoint
     ‱ Their intersection is the empty set
   ∅ and ∅ are disjoint!
     ‱ Because their intersection is the empty set
Set operations: Difference
ïŹ Formal definition for the difference of two sets:
  A - B = { x | x ∈ A and x ∉ B }
ïŹ Further examples
   {1, 2, 3} - {3, 4, 5} = {1, 2}
   {a, b} - {3, 4} = {a, b}
   {1, 2} - ∅ = {1, 2}
     ‱ The difference of any set S with the empty set will be the
       set S
Complement sets
ïŹ Formal definition for the complement of a set:
  A = { x | x ∉ A } = Ac
   Or U – A, where U is the universal set
ïŹ Further examples (assuming U = Z)
   {1, 2, 3}c = { 
, -2, -1, 0, 4, 5, 6, 
 }
   {a, b}c = Z
ïŹ Properties of complement sets
   (Ac)c = A                   Complementation law
   A âˆȘ Ac = U                  Complement law
   A ∩ Ac = ∅                  Complement law
Set identities
 AâˆȘ∅ = A                     AâˆȘU = U
            Identity Law                    Domination law
 A∩U = A                     A∩∅ = ∅
 AâˆȘA = A    Idempotent                      Complementation
                             (Ac)c = A
 A∩A = A       Law                               Law
AâˆȘB = BâˆȘA   Commutative    (AâˆȘB)c = Ac∩Bc
                                            De Morgan’s Law
A∩B = B∩A      Law         (A∩B)c = AcâˆȘBc
AâˆȘ(BâˆȘC)                     A∩(BâˆȘC) =
= (AâˆȘB)âˆȘC   Associative    (A∩B)âˆȘ(A∩C)
                                            Distributive Law
A∩(B∩C)        Law          AâˆȘ(B∩C) =
= (A∩B)∩C                  (AâˆȘB)∩(AâˆȘC)
AâˆȘ(A∩B) =
    A        Absorption     A âˆȘ Ac = U
                                            Complement Law
A∩(AâˆȘB) =       Law         A ∩ Ac = ∅
    A
How to prove a set identity
ïŹ For example: A∩B=B-(B-A)
ïŹ Four methods:
     Use the basic set identities
     Use membership tables
     Prove each set is a subset of each other
     Use set builder notation and logical equivalences
What we are going to prove

         A∩B=B-(B-A)


        A             B

            B-(B-A)
                          B-A
             A∩B
Proof by Set Identities
ïŹ A ∩ B = A - (A - B) = B – (B – A)
Proof: A - (A - B) = A - (A ∩ Bc)
                     = A ∩ (A ∩ Bc)c
                     = A ∩ (Ac âˆȘ B)
                     = (A ∩ Ac) âˆȘ (A ∩ B)
                     = ∅ âˆȘ (A ∩ B)
                     =A∩B
Showing each is a subset of the others
ïŹ (A ∩ B)c = Ac âˆȘ Bc
Proof: Want to prove that
   (A ∩ B)c ⊆ Ac âˆȘ Bc and Ac âˆȘ Bc ⊆ (A ∩ B)c
(i) x ∈ (A ∩ B)c
 ⇒ x ∉ (A ∩ B)
 ⇒ ÂŹ (x ∈ A ∩ B)
 ⇒ ¬ (x ∈ A ∧ x ∈ B)
 ⇒ ¬ (x ∈ A) ∹ ¬ (x ∈ B)
 ⇒x∉A∹x∉B
 ⇒ x ∈ Ac ∹ x ∈ B c
 ⇒ x ∈ Ac âˆȘ B c
(ii) Similarly we show that Ac âˆȘ Bc ⊆ (A ∩ B)c
Exercise

Weitere Àhnliche Inhalte

Was ist angesagt?

The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting PrincipleRon Eick
 
Functions and Relations
Functions and RelationsFunctions and Relations
Functions and Relationssheisirenebkm
 
SET THEORY
SET THEORYSET THEORY
SET THEORYLena
 
7 math lm mod3
7 math lm mod37 math lm mod3
7 math lm mod3Mirasol Ralo
 
Operations on sets
Operations on setsOperations on sets
Operations on setsrenceLongcop
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Jasmine Jesse
 
Linear Equations in Two Variables
Linear Equations in Two VariablesLinear Equations in Two Variables
Linear Equations in Two Variablessheisirenebkm
 
Adding and subtracting polynomials
Adding and subtracting polynomialsAdding and subtracting polynomials
Adding and subtracting polynomialsholmsted
 
Solving Equations Involving Radical Expressions
Solving Equations Involving Radical ExpressionsSolving Equations Involving Radical Expressions
Solving Equations Involving Radical ExpressionsCipriano De Leon
 
Set, Relations and Functions
Set, Relations and FunctionsSet, Relations and Functions
Set, Relations and Functionssuthi
 
union and intersection.pptx
union and intersection.pptxunion and intersection.pptx
union and intersection.pptxnestthecasidsid2
 
Relations and functions
Relations and functions Relations and functions
Relations and functions Leslie Amoguis
 
K to 12 - Grade 7 Lesson on Properties of the operations on Integers
K to 12 - Grade 7 Lesson on Properties of the operations on IntegersK to 12 - Grade 7 Lesson on Properties of the operations on Integers
K to 12 - Grade 7 Lesson on Properties of the operations on IntegersRoxanne Deang
 
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
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equationsswartzje
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Mohd. Noor Abdul Hamid
 

Was ist angesagt? (20)

The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
 
Sets and Subsets
Sets and SubsetsSets and Subsets
Sets and Subsets
 
Functions and Relations
Functions and RelationsFunctions and Relations
Functions and Relations
 
Operations on Sets
Operations on SetsOperations on Sets
Operations on Sets
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
7 math lm mod3
7 math lm mod37 math lm mod3
7 math lm mod3
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1
 
Linear Equations in Two Variables
Linear Equations in Two VariablesLinear Equations in Two Variables
Linear Equations in Two Variables
 
Adding and subtracting polynomials
Adding and subtracting polynomialsAdding and subtracting polynomials
Adding and subtracting polynomials
 
Solving Equations Involving Radical Expressions
Solving Equations Involving Radical ExpressionsSolving Equations Involving Radical Expressions
Solving Equations Involving Radical Expressions
 
Set, Relations and Functions
Set, Relations and FunctionsSet, Relations and Functions
Set, Relations and Functions
 
union and intersection.pptx
union and intersection.pptxunion and intersection.pptx
union and intersection.pptx
 
Relations and functions
Relations and functions Relations and functions
Relations and functions
 
Union and intersection
Union and intersectionUnion and intersection
Union and intersection
 
K to 12 - Grade 7 Lesson on Properties of the operations on Integers
K to 12 - Grade 7 Lesson on Properties of the operations on IntegersK to 12 - Grade 7 Lesson on Properties of the operations on Integers
K to 12 - Grade 7 Lesson on Properties of the operations on Integers
 
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
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equations
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor
 
Limit of functions
Limit of functionsLimit of functions
Limit of functions
 

Andere mochten auch

Mathematics class XI SETS
Mathematics class XI SETSMathematics class XI SETS
Mathematics class XI SETSNaveen R
 
Ppt sets and set operations
Ppt sets and set operationsPpt sets and set operations
Ppt sets and set operationsgeckbanaag
 
Maths sets ppt
Maths sets pptMaths sets ppt
Maths sets pptAkshit Saxena
 
Discrete-Chapter 01 Sets
Discrete-Chapter 01 SetsDiscrete-Chapter 01 Sets
Discrete-Chapter 01 SetsWongyos Keardsri
 
sets and venn diagrams
sets and venn diagramssets and venn diagrams
sets and venn diagramsShahmir Ali
 
Set theory
Set theorySet theory
Set theoryAN_Rajin
 
Venn diagram guide
Venn diagram guideVenn diagram guide
Venn diagram guideäžč äžč
 
Sets venn diagrams
Sets venn diagramsSets venn diagrams
Sets venn diagramszahoormirza194
 
Mean, median, and mode
Mean, median, and modeMean, median, and mode
Mean, median, and modeguest455435
 
Discrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and SequencesDiscrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and SequencesWongyos Keardsri
 
Introduction to management
Introduction to managementIntroduction to management
Introduction to managementBilal Amjad
 
Discrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part IDiscrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part IWongyos Keardsri
 
Discrete-Chapter 03 Matrices
Discrete-Chapter 03 MatricesDiscrete-Chapter 03 Matrices
Discrete-Chapter 03 MatricesWongyos Keardsri
 
Discrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsDiscrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsWongyos Keardsri
 
Discrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part IIDiscrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part IIWongyos Keardsri
 
Discrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityDiscrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityWongyos Keardsri
 
Discrete-Chapter 09 Algorithms
Discrete-Chapter 09 AlgorithmsDiscrete-Chapter 09 Algorithms
Discrete-Chapter 09 AlgorithmsWongyos Keardsri
 

Andere mochten auch (20)

Mathematics class XI SETS
Mathematics class XI SETSMathematics class XI SETS
Mathematics class XI SETS
 
Ppt sets and set operations
Ppt sets and set operationsPpt sets and set operations
Ppt sets and set operations
 
Maths sets ppt
Maths sets pptMaths sets ppt
Maths sets ppt
 
Discrete-Chapter 01 Sets
Discrete-Chapter 01 SetsDiscrete-Chapter 01 Sets
Discrete-Chapter 01 Sets
 
Set Theory Presentation
Set Theory PresentationSet Theory Presentation
Set Theory Presentation
 
sets and venn diagrams
sets and venn diagramssets and venn diagrams
sets and venn diagrams
 
01 sets
01   sets01   sets
01 sets
 
Set theory
Set theorySet theory
Set theory
 
Venn diagram guide
Venn diagram guideVenn diagram guide
Venn diagram guide
 
Sets venn diagrams
Sets venn diagramsSets venn diagrams
Sets venn diagrams
 
Mean, median, and mode
Mean, median, and modeMean, median, and mode
Mean, median, and mode
 
Discrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and SequencesDiscrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and Sequences
 
Introduction to management
Introduction to managementIntroduction to management
Introduction to management
 
Discrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part IDiscrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part I
 
Discrete-Chapter 03 Matrices
Discrete-Chapter 03 MatricesDiscrete-Chapter 03 Matrices
Discrete-Chapter 03 Matrices
 
Discrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsDiscrete-Chapter 08 Relations
Discrete-Chapter 08 Relations
 
Discrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part IIDiscrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part II
 
Discrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityDiscrete-Chapter 07 Probability
Discrete-Chapter 07 Probability
 
Discrete-Chapter 09 Algorithms
Discrete-Chapter 09 AlgorithmsDiscrete-Chapter 09 Algorithms
Discrete-Chapter 09 Algorithms
 
Set Theory
Set TheorySet Theory
Set Theory
 

Ähnlich wie Set Operations

8-Sets-2.ppt
8-Sets-2.ppt8-Sets-2.ppt
8-Sets-2.pptjaffarbikat
 
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
 
Discrete mathematics sol
Discrete mathematics solDiscrete mathematics sol
Discrete mathematics solmuqaddasisrar
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfMuhammadUmerIhtisham
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relationankush_kumar
 
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualDiscrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualTallulahTallulah
 
Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Kwonpyo Ko
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture hVlad Patryshev
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdfAneeshRenu
 
Chpt 2-sets v.3
Chpt 2-sets v.3Chpt 2-sets v.3
Chpt 2-sets v.3ShahidAkbar22
 
Set theory self study material
Set theory  self study materialSet theory  self study material
Set theory self study materialDrATAMILARASIMCA
 
Answers Of Discrete Mathematics
Answers Of Discrete MathematicsAnswers Of Discrete Mathematics
Answers Of Discrete MathematicsSabrina Green
 

Ähnlich wie Set Operations (20)

8-Sets-2.ppt
8-Sets-2.ppt8-Sets-2.ppt
8-Sets-2.ppt
 
Sets.pdf
Sets.pdfSets.pdf
Sets.pdf
 
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
 
Sets
SetsSets
Sets
 
04 - Sets
04 - Sets04 - Sets
04 - Sets
 
Discrete mathematics sol
Discrete mathematics solDiscrete mathematics sol
Discrete mathematics sol
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdf
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relation
 
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualDiscrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
 
01_Sets.pdf
01_Sets.pdf01_Sets.pdf
01_Sets.pdf
 
Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Ch1 sets and_logic(1)
Ch1 sets and_logic(1)
 
Sets (1).ppt
Sets (1).pptSets (1).ppt
Sets (1).ppt
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture h
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
Chpt 2-sets v.3
Chpt 2-sets v.3Chpt 2-sets v.3
Chpt 2-sets v.3
 
Set theory self study material
Set theory  self study materialSet theory  self study material
Set theory self study material
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
Set theory
Set theorySet theory
Set theory
 
Answers Of Discrete Mathematics
Answers Of Discrete MathematicsAnswers Of Discrete Mathematics
Answers Of Discrete Mathematics
 

Mehr von Bilal Amjad

Organizational structure
Organizational structureOrganizational structure
Organizational structureBilal Amjad
 
Arrays and addressing modes
Arrays and addressing modesArrays and addressing modes
Arrays and addressing modesBilal Amjad
 
Communication process (effective)
Communication process (effective)Communication process (effective)
Communication process (effective)Bilal Amjad
 
Graphical User Interface (Gui)
Graphical User Interface (Gui)Graphical User Interface (Gui)
Graphical User Interface (Gui)Bilal Amjad
 
Ethnic Diversity in Punjab
Ethnic Diversity in PunjabEthnic Diversity in Punjab
Ethnic Diversity in PunjabBilal Amjad
 
Social Networking
Social NetworkingSocial Networking
Social NetworkingBilal Amjad
 

Mehr von Bilal Amjad (6)

Organizational structure
Organizational structureOrganizational structure
Organizational structure
 
Arrays and addressing modes
Arrays and addressing modesArrays and addressing modes
Arrays and addressing modes
 
Communication process (effective)
Communication process (effective)Communication process (effective)
Communication process (effective)
 
Graphical User Interface (Gui)
Graphical User Interface (Gui)Graphical User Interface (Gui)
Graphical User Interface (Gui)
 
Ethnic Diversity in Punjab
Ethnic Diversity in PunjabEthnic Diversity in Punjab
Ethnic Diversity in Punjab
 
Social Networking
Social NetworkingSocial Networking
Social Networking
 

KĂŒrzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Dr. Mazin Mohamed alkathiri
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

KĂŒrzlich hochgeladen (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Set Operations

  • 1. D i s c re te S tru c tu re s (Discrete Mathematics) Topic: Set Operations ©bilalAmjad bilalamjad78633@yahoo.com
  • 2. Set operations: Union ïŹ Formal definition for the union of two sets: A U B = { x | x ∈ A or x ∈ B } or A U B = { x ∈ U| x ∈ A or x ∈ B } ïŹ Further examples  {1, 2, 3} âˆȘ {3, 4, 5} = {1, 2, 3, 4, 5}  {a, b} âˆȘ {3, 4} = {a, b, 3, 4}  {1, 2} âˆȘ ∅ = {1, 2} ïŹ Properties of the union operation  AâˆȘ∅=A Identity law  AâˆȘU=U Domination law  AâˆȘA=A Idempotent law  AâˆȘB=BâˆȘA Commutative law  A âˆȘ (B âˆȘ C) = (A âˆȘ B) âˆȘ C Associative law
  • 4. Set operations: Intersection ïŹ Formal definition for the intersection of two sets: A ∩ B = { x | x ∈ A and x ∈ B } ïŹ Examples  {1, 2, 3} ∩ {3, 4, 5} = {3}  {a, b} ∩ {3, 4} = ∅  {1, 2} ∩ ∅ = ∅ ïŹ Properties of the intersection operation  A∩U=A Identity law  A∩∅=∅ Domination law  A∩A=A Idempotent law  A∩B=B∩A Commutative law  A ∩ (B ∩ C) = (A ∩ B) ∩ C Associative law
  • 7. Disjoint sets ïŹ Formal definition for disjoint sets: two sets are disjoint if their intersection is the empty set ïŹ Further examples  {1, 2, 3} and {3, 4, 5} are not disjoint  {a, b} and {3, 4} are disjoint  {1, 2} and ∅ are disjoint ‱ Their intersection is the empty set  ∅ and ∅ are disjoint! ‱ Because their intersection is the empty set
  • 8. Set operations: Difference ïŹ Formal definition for the difference of two sets: A - B = { x | x ∈ A and x ∉ B } ïŹ Further examples  {1, 2, 3} - {3, 4, 5} = {1, 2}  {a, b} - {3, 4} = {a, b}  {1, 2} - ∅ = {1, 2} ‱ The difference of any set S with the empty set will be the set S
  • 9. Complement sets ïŹ Formal definition for the complement of a set: A = { x | x ∉ A } = Ac  Or U – A, where U is the universal set ïŹ Further examples (assuming U = Z)  {1, 2, 3}c = { 
, -2, -1, 0, 4, 5, 6, 
 }  {a, b}c = Z ïŹ Properties of complement sets  (Ac)c = A Complementation law  A âˆȘ Ac = U Complement law  A ∩ Ac = ∅ Complement law
  • 10. Set identities AâˆȘ∅ = A AâˆȘU = U Identity Law Domination law A∩U = A A∩∅ = ∅ AâˆȘA = A Idempotent Complementation (Ac)c = A A∩A = A Law Law AâˆȘB = BâˆȘA Commutative (AâˆȘB)c = Ac∩Bc De Morgan’s Law A∩B = B∩A Law (A∩B)c = AcâˆȘBc AâˆȘ(BâˆȘC) A∩(BâˆȘC) = = (AâˆȘB)âˆȘC Associative (A∩B)âˆȘ(A∩C) Distributive Law A∩(B∩C) Law AâˆȘ(B∩C) = = (A∩B)∩C (AâˆȘB)∩(AâˆȘC) AâˆȘ(A∩B) = A Absorption A âˆȘ Ac = U Complement Law A∩(AâˆȘB) = Law A ∩ Ac = ∅ A
  • 11. How to prove a set identity ïŹ For example: A∩B=B-(B-A) ïŹ Four methods:  Use the basic set identities  Use membership tables  Prove each set is a subset of each other  Use set builder notation and logical equivalences
  • 12. What we are going to prove
 A∩B=B-(B-A) A B B-(B-A) B-A A∩B
  • 13. Proof by Set Identities ïŹ A ∩ B = A - (A - B) = B – (B – A) Proof: A - (A - B) = A - (A ∩ Bc) = A ∩ (A ∩ Bc)c = A ∩ (Ac âˆȘ B) = (A ∩ Ac) âˆȘ (A ∩ B) = ∅ âˆȘ (A ∩ B) =A∩B
  • 14. Showing each is a subset of the others ïŹ (A ∩ B)c = Ac âˆȘ Bc Proof: Want to prove that (A ∩ B)c ⊆ Ac âˆȘ Bc and Ac âˆȘ Bc ⊆ (A ∩ B)c (i) x ∈ (A ∩ B)c ⇒ x ∉ (A ∩ B) ⇒ ÂŹ (x ∈ A ∩ B) ⇒ ÂŹ (x ∈ A ∧ x ∈ B) ⇒ ÂŹ (x ∈ A) √ ÂŹ (x ∈ B) ⇒x∉A√x∉B ⇒ x ∈ Ac √ x ∈ B c ⇒ x ∈ Ac âˆȘ B c (ii) Similarly we show that Ac âˆȘ Bc ⊆ (A ∩ B)c