SlideShare a Scribd company logo
1 of 21
CSC102 - Discrete Structures
(Discrete Mathematics)
Set Operations
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
2
3
Set presentation
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
5
6
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
7
Exercise
• What is the cardinality of AUB where A and B
are two finite sets?
• |A ∪ B| = |A| + |B| ???
• Incorrect
• |A ∪ B| = |A| + |B| − |A ∩ B|???
• Correct
8
Set operations: Difference
Formal definition for the difference of two sets:
A - B = { x | x  A and x  B }
Sometimes denoted by AB.
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
Exercise
• What is the cardinality of A∩B where A and B
are two finite sets?
• |A∩B | = |B| - |B - A|???
• Correct
• |A∩B | = |A| - |A - B|???
• Correct
• |A∩B | = |A| + |B| - (|A - B| + |B - A|)???
• Incorrect
10
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
11
Set Identities
12
Set Identities
13
Set Identities
14
How to prove a set identity
For example: A ∩ B = B - (B - A)
Four methods:
1. Using the basic set identities
2. Proving that each set is a subset of each other
3. Using set builder notation and logical
equivalences
4. Using membership tables (we’ll not study it)
• Similar to truth tables
15
First Proof
A ∩ B = B - (B - A)
A B
A∩B
B-A
B-(B-A)
16
1. Proof by Set Identities
A  B = A - (A - B) = B – (B – A)
Proof: A - (A - B)
= A - (A  Bc) A - B = A  Bc
= A  (A  Bc)c Same as above
= A  (Ac  B) De Morgan’s Law
= (A  Ac)  (A  B) Distributive Law
=   (A  B) Complement Law
= A  B Identity Law
17
2. Showing each is a subset of the others
Second Example Proof
 (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  Bc
 x  Ac  Bc
(ii) Similarly we show that Ac  Bc  (A  B)c
18
Same proof with Set builder Notation
(A ∩ B)c = Ac ∪ Bc
• (A ∩ B)c = {x | x  A ∩ B} Definition of complement
= {x |¬(x ∈ (A ∩ B))} Definition of does not belong symbol
= {x |¬(x ∈ A ∧ x ∈ B)} Definition of intersection
= {x | ¬(x ∈ A)∨¬(x ∈ B)} De Morgan’s law
= {x | x  A ∨ x  B} Definition of does not belong symbol
= {x | x ∈ Ac ∨ x ∈ Bc} Definition of complement
= {x | x ∈ Ac ∪ Bc} Definition of union
= Ac ∪ Bc meaning of set builder notation
19
20
END
21

More Related Content

Similar to 8-Sets-2.ppt

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 Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfMuhammadUmerIhtisham
 
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
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relationankush_kumar
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Jasmine Jesse
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryNittaya Noinan
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdfHamayonHelali
 
set identities and their examples outlined.pptx
set identities and their examples outlined.pptxset identities and their examples outlined.pptx
set identities and their examples outlined.pptxZenLooper
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on setsRahul Avicii
 
Discrete mathematics sol
Discrete mathematics solDiscrete mathematics sol
Discrete mathematics solmuqaddasisrar
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdfAneeshRenu
 
06-set_operations.ppt
06-set_operations.ppt06-set_operations.ppt
06-set_operations.pptPranavSNair9
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Manik Bhola
 
Set theory self study material
Set theory  self study materialSet theory  self study material
Set theory self study materialDrATAMILARASIMCA
 

Similar to 8-Sets-2.ppt (20)

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
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdf
 
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
 
Ch01-2.ppt
Ch01-2.pptCh01-2.ppt
Ch01-2.ppt
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relation
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 
set identities and their examples outlined.pptx
set identities and their examples outlined.pptxset identities and their examples outlined.pptx
set identities and their examples outlined.pptx
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
 
Discrete mathematics sol
Discrete mathematics solDiscrete mathematics sol
Discrete mathematics sol
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
Set theory
Set theorySet theory
Set theory
 
06-set_operations.ppt
06-set_operations.ppt06-set_operations.ppt
06-set_operations.ppt
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
 
Sets
SetsSets
Sets
 
Set theory self study material
Set theory  self study materialSet theory  self study material
Set theory self study material
 
Finite Maths Problems
Finite Maths ProblemsFinite Maths Problems
Finite Maths Problems
 

More from jaffarbikat

Deep Learning Vocabulary.docx
Deep Learning Vocabulary.docxDeep Learning Vocabulary.docx
Deep Learning Vocabulary.docxjaffarbikat
 
Deep Neural Network DNN.docx
Deep Neural Network DNN.docxDeep Neural Network DNN.docx
Deep Neural Network DNN.docxjaffarbikat
 
Chapter 24 till slide 40.pptx
Chapter 24 till slide 40.pptxChapter 24 till slide 40.pptx
Chapter 24 till slide 40.pptxjaffarbikat
 
Chapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptxChapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptxjaffarbikat
 
Chapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptxChapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptxjaffarbikat
 
10-Sequences and summation.pptx
10-Sequences and summation.pptx10-Sequences and summation.pptx
10-Sequences and summation.pptxjaffarbikat
 
11-Induction CIIT.pptx
11-Induction CIIT.pptx11-Induction CIIT.pptx
11-Induction CIIT.pptxjaffarbikat
 
9-Functions.pptx
9-Functions.pptx9-Functions.pptx
9-Functions.pptxjaffarbikat
 

More from jaffarbikat (10)

Deep Learning Vocabulary.docx
Deep Learning Vocabulary.docxDeep Learning Vocabulary.docx
Deep Learning Vocabulary.docx
 
Deep Neural Network DNN.docx
Deep Neural Network DNN.docxDeep Neural Network DNN.docx
Deep Neural Network DNN.docx
 
Chapter 24 till slide 40.pptx
Chapter 24 till slide 40.pptxChapter 24 till slide 40.pptx
Chapter 24 till slide 40.pptx
 
Chapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptxChapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptx
 
Chapter 21.pdf
Chapter 21.pdfChapter 21.pdf
Chapter 21.pdf
 
Chapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptxChapter 21 Couloumb Law 25.pptx
Chapter 21 Couloumb Law 25.pptx
 
10-Sequences and summation.pptx
10-Sequences and summation.pptx10-Sequences and summation.pptx
10-Sequences and summation.pptx
 
11-Induction CIIT.pptx
11-Induction CIIT.pptx11-Induction CIIT.pptx
11-Induction CIIT.pptx
 
9-Functions.pptx
9-Functions.pptx9-Functions.pptx
9-Functions.pptx
 
7-Sets-1.ppt
7-Sets-1.ppt7-Sets-1.ppt
7-Sets-1.ppt
 

Recently uploaded

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 

Recently uploaded (20)

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

8-Sets-2.ppt

  • 1. CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
  • 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 2
  • 3. 3
  • 5. 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 5
  • 6. 6
  • 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 7
  • 8. Exercise • What is the cardinality of AUB where A and B are two finite sets? • |A ∪ B| = |A| + |B| ??? • Incorrect • |A ∪ B| = |A| + |B| − |A ∩ B|??? • Correct 8
  • 9. Set operations: Difference Formal definition for the difference of two sets: A - B = { x | x  A and x  B } Sometimes denoted by AB. 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
  • 10. Exercise • What is the cardinality of A∩B where A and B are two finite sets? • |A∩B | = |B| - |B - A|??? • Correct • |A∩B | = |A| - |A - B|??? • Correct • |A∩B | = |A| + |B| - (|A - B| + |B - A|)??? • Incorrect 10
  • 11. 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 11
  • 15. How to prove a set identity For example: A ∩ B = B - (B - A) Four methods: 1. Using the basic set identities 2. Proving that each set is a subset of each other 3. Using set builder notation and logical equivalences 4. Using membership tables (we’ll not study it) • Similar to truth tables 15
  • 16. First Proof A ∩ B = B - (B - A) A B A∩B B-A B-(B-A) 16
  • 17. 1. Proof by Set Identities A  B = A - (A - B) = B – (B – A) Proof: A - (A - B) = A - (A  Bc) A - B = A  Bc = A  (A  Bc)c Same as above = A  (Ac  B) De Morgan’s Law = (A  Ac)  (A  B) Distributive Law =   (A  B) Complement Law = A  B Identity Law 17
  • 18. 2. Showing each is a subset of the others Second Example Proof  (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  Bc  x  Ac  Bc (ii) Similarly we show that Ac  Bc  (A  B)c 18
  • 19. Same proof with Set builder Notation (A ∩ B)c = Ac ∪ Bc • (A ∩ B)c = {x | x  A ∩ B} Definition of complement = {x |¬(x ∈ (A ∩ B))} Definition of does not belong symbol = {x |¬(x ∈ A ∧ x ∈ B)} Definition of intersection = {x | ¬(x ∈ A)∨¬(x ∈ B)} De Morgan’s law = {x | x  A ∨ x  B} Definition of does not belong symbol = {x | x ∈ Ac ∨ x ∈ Bc} Definition of complement = {x | x ∈ Ac ∪ Bc} Definition of union = Ac ∪ Bc meaning of set builder notation 19
  • 20. 20