SlideShare a Scribd company logo
BY
D.SHANMUGAPRIYA
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 AUB,is the set:

Example:what is{1,2,3} U {3,4,5}?
Solution:{1,2,3,4,5}
{X|XE A V XE B}
U
A B
INTERSECTION
Definition:The intersection of sets A and B,denoted by
AnB,is
 Then A and B are said to be disjoint
Example:what is {123}n {345}
Solution:[3]
{X|X E A ^ X E B
U
A B
COMPLEMENTED
 Definition:If A is set,then the complement of the A
denoted by A is the set U-A
 Example:if U is the positive integers less than 100,what is
the complement of{x |x>70}
A={X E U| X E|A
A
AA
DIFFERENCE
 Definition:Let A and B be sets.the difference ofA and B
,denoted by A-B,is the set containing the elements of A
that are not inB,
 The difference of A and B is called complement of B with
respect to A.
Venn diagram A-B
A-B={X|X E A^ X E B}=AnB
COMPLEMENT
A B
U
CARDINATY OF THE UNION
OF TWO SETS
 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
major or CS major,add the number of math majors and the
numbers of CS majors,and subtract the number of joints
CSmath majors.
REVIEW QUESTIONS
1. 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}
2. AUB:{1,2,3,4,5,6,7,8}
3. AnB;{4,5}
4. A COMPLEMENT:{0,6,7,8,9,10}
5. B COMPLEMENT:{O,1,2,3,9,10}
6. A-B:{1,2,3}
7. B-A:{6,7,8}
SYMMETRIC DIFFERENCE
 Definition:The symmetric difference of AandB
denoted by AOB is the set
(A-B)U(B-A)
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}
SOLUTION:
{1,2,3,6,7,8}
A B
dffierenced
VENN DIAGRAM WITH 3 SETS
 A
 AUB
 BnC
 C”
 AnBnC
2 3 1 8
5 C
A B
C
U
9
SET IDENTITES
 IDENTITY LAWS
A U =A AnU=A
 Domination laws
AuU=U An=0
 Idempotent laws
AUA=A AnA=A
 Complementation law
(A)=A
TYPES OF LAWS
 COMMUTATIVE LAWS
 AUB=BUA ANB=BnA
ASSOCIATIVE LAWS
 AU(BUC)=(AUB)UC
 An(BnC)=(AnB)nC
DISTRIBUTIVE LAWS
 An(BUC)=(AnB)U(AnC)
 AU(BnC)=(AU B)n(AUC)
PROVING SET IDENTITES
Different ways to prove set identites:
Prove that each set is a subset of the other.
Use set builder notation and propositional logic.
 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 the set and a 0 to indicate that it is
not.
CONCLUSION
Restored sets of values in a dynamic databases are simply
read and write operations with respect to the databases
respectively.although the values used during restortation
are typically two operations reading and writing.

More Related Content

What's hot

1. sets and basic notations
1. sets and basic notations1. sets and basic notations
1. sets and basic notations
eduardman
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
Ron Eick
 
3. permutation and combination
3. permutation and combination3. permutation and combination
3. permutation and combination
smaplabu
 

What's hot (20)

Types Of Set
Types Of SetTypes Of Set
Types Of Set
 
Permutation & Combination
Permutation & CombinationPermutation & Combination
Permutation & Combination
 
1. sets and basic notations
1. sets and basic notations1. sets and basic notations
1. sets and basic notations
 
Set Operations
Set OperationsSet Operations
Set Operations
 
Sets
SetsSets
Sets
 
Permutations and combinations ppt
Permutations and combinations pptPermutations and combinations ppt
Permutations and combinations ppt
 
Union and Intersection of Sets
Union and Intersection of SetsUnion and Intersection of Sets
Union and Intersection of Sets
 
Basics of Counting Techniques
Basics of Counting TechniquesBasics of Counting Techniques
Basics of Counting Techniques
 
9.5 Counting Principles
9.5 Counting Principles9.5 Counting Principles
9.5 Counting Principles
 
Union & Intersection of Sets
Union & Intersection of SetsUnion & Intersection of Sets
Union & Intersection of Sets
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
Identifying universal, equal and equivalent sets,
Identifying universal, equal and equivalent sets,Identifying universal, equal and equivalent sets,
Identifying universal, equal and equivalent sets,
 
Combination
CombinationCombination
Combination
 
Maths sets ppt
Maths sets pptMaths sets ppt
Maths sets ppt
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
 
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
 
Sets and Subsets
Sets and SubsetsSets and Subsets
Sets and Subsets
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
 
3. permutation and combination
3. permutation and combination3. permutation and combination
3. permutation and combination
 
Number theory
Number theoryNumber theory
Number theory
 

Similar to Set operations

SET THEORY
SET THEORYSET THEORY
SET THEORY
Lena
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
MaryAnnBatac1
 

Similar to Set operations (20)

Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Sets
SetsSets
Sets
 
Set theory
Set theorySet theory
Set theory
 
SETS-AND-SUBSETS.pptx
SETS-AND-SUBSETS.pptxSETS-AND-SUBSETS.pptx
SETS-AND-SUBSETS.pptx
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1
 
Concept of set.
Concept of set.Concept of set.
Concept of set.
 
schaums-probability.pdf
schaums-probability.pdfschaums-probability.pdf
schaums-probability.pdf
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 
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
 
Pdm presentation
Pdm presentationPdm presentation
Pdm presentation
 
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
SetsSets
Sets
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
01_Sets.pdf
01_Sets.pdf01_Sets.pdf
01_Sets.pdf
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
Set and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNSet and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUN
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operations
 

More from rajshreemuthiah (20)

oracle
oracleoracle
oracle
 
quality
qualityquality
quality
 
bigdata
bigdatabigdata
bigdata
 
polymorphism
polymorphismpolymorphism
polymorphism
 
solutions and understanding text analytics
solutions and understanding text analyticssolutions and understanding text analytics
solutions and understanding text analytics
 
interface
interfaceinterface
interface
 
Testing &ampdebugging
Testing &ampdebuggingTesting &ampdebugging
Testing &ampdebugging
 
concurrency control
concurrency controlconcurrency control
concurrency control
 
Education
EducationEducation
Education
 
Formal verification
Formal verificationFormal verification
Formal verification
 
Transaction management
Transaction management Transaction management
Transaction management
 
Multi thread
Multi threadMulti thread
Multi thread
 
System testing
System testingSystem testing
System testing
 
software maintenance
software maintenancesoftware maintenance
software maintenance
 
exception handling
exception handlingexception handling
exception handling
 
e governance
e governancee governance
e governance
 
recovery management
recovery managementrecovery management
recovery management
 
Implementing polymorphism
Implementing polymorphismImplementing polymorphism
Implementing polymorphism
 
Buffer managements
Buffer managementsBuffer managements
Buffer managements
 
os linux
os linuxos linux
os linux
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
"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
 
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
 
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...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
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
 
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
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
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
 
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
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
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...
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 

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 AUB,is the set:  Example:what is{1,2,3} U {3,4,5}? Solution:{1,2,3,4,5} {X|XE A V XE B} U A B
  • 4. INTERSECTION Definition:The intersection of sets A and B,denoted by AnB,is  Then A and B are said to be disjoint Example:what is {123}n {345} Solution:[3] {X|X E A ^ X E B U A B
  • 5. COMPLEMENTED  Definition:If A is set,then the complement of the A denoted by A is the set U-A  Example:if U is the positive integers less than 100,what is the complement of{x |x>70} A={X E U| X E|A A AA
  • 6. DIFFERENCE  Definition:Let A and B be sets.the difference ofA and B ,denoted by A-B,is the set containing the elements of A that are not inB,  The difference of A and B is called complement of B with respect to A. Venn diagram A-B A-B={X|X E A^ X E B}=AnB COMPLEMENT A B U
  • 7. CARDINATY OF THE UNION OF TWO SETS  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 major or CS major,add the number of math majors and the numbers of CS majors,and subtract the number of joints CSmath majors.
  • 8. REVIEW QUESTIONS 1. 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} 2. AUB:{1,2,3,4,5,6,7,8} 3. AnB;{4,5} 4. A COMPLEMENT:{0,6,7,8,9,10} 5. B COMPLEMENT:{O,1,2,3,9,10} 6. A-B:{1,2,3} 7. B-A:{6,7,8}
  • 9. SYMMETRIC DIFFERENCE  Definition:The symmetric difference of AandB denoted by AOB is the set (A-B)U(B-A) 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} SOLUTION: {1,2,3,6,7,8} A B dffierenced
  • 10. VENN DIAGRAM WITH 3 SETS  A  AUB  BnC  C”  AnBnC 2 3 1 8 5 C A B C U 9
  • 11. SET IDENTITES  IDENTITY LAWS A U =A AnU=A  Domination laws AuU=U An=0  Idempotent laws AUA=A AnA=A  Complementation law (A)=A
  • 12. TYPES OF LAWS  COMMUTATIVE LAWS  AUB=BUA ANB=BnA ASSOCIATIVE LAWS  AU(BUC)=(AUB)UC  An(BnC)=(AnB)nC DISTRIBUTIVE LAWS  An(BUC)=(AnB)U(AnC)  AU(BnC)=(AU B)n(AUC)
  • 13. PROVING SET IDENTITES Different ways to prove set identites: Prove that each set is a subset of the other. Use set builder notation and propositional logic.  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 the set and a 0 to indicate that it is not.
  • 14. CONCLUSION Restored sets of values in a dynamic databases are simply read and write operations with respect to the databases respectively.although the values used during restortation are typically two operations reading and writing.