SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
Ajeela Mushtaq Roll NO:-13-Mcs-15
PRESENTED TO:-PRESENTED TO:-
MR. MIR AADIL
SETSSETS
Introduction
•Definition: A set is an unordered collection
of (unique) objects.
•Sets are fundamental discrete structures
and for the basis of more complex discrete
structures like graphs
• Definition: The objects in a set are
called elements or members of a set.
A set is said to contain its elements.
• Notation, for a set A:
– x  A: x is an element of A
– x  A: x is not an element of A
Terminology
• Definition: Two sets, A and B, are equal
is they contain the same elements. We
write A=B.
• Example:
– {2,3,5,7}={3,2,7,5}, because a set is
unordered
– Also, {2,3,5,7}={2,2,3,5,3,7} because a set
contains unique elements
– However, {2,3,5,7} {2,3}
• The set-builder notation
O={ x | (xZ)  (x=2k) for some kZ}
reads: O is the set that contains all x such
that x is an integer and x is even
• A set is defined in intension when you give
its set-builder notation
O={ x | (xZ)  (0x8)  (x=2k) for some k  Z }
• A set is defined in extension when you
enumerate all the elements:
O={0,2,4,6,8}
Venn Diagram: Example
• A set can be represented graphically
using a Venn Diagram
U
a
x y
z
A
C
B
• A set that has no elements is called the empty
set or null set and is denoted 
• A set that has one element is called a
singleton set.
– For example: {a}, with brackets, is a singleton set
– a, without brackets, is an element of the set {a}
• Note the subtlety in   {}
– The left-hand side is the empty set
– The right hand-side is a singleton set, and a set
containing a set
• Definition: A is said to be a subset
of B, and we write A  B, if and only
if every element of A is also an
element of B.
• That is, we have the equivalence:
A  B   x (x  A  x  B)
• Definition: A set A that is a subset
of a set B is called a proper subset
if A  B.
• That is there is an element xB such
that xA.
• We write: A  B, A  B
• Sets can be elements of other sets.
• Examples
– S1 = {,{a},{b},{a,b},c}
– S2={{1},{2,4,8},{3},{6},4,5,6}.
• Definition: If there are exactly n
distinct elements in a set S, with n a
nonnegative integer, we say that:
– S is a finite set, and
– The cardinality of S is n. Notation: |S| =
n.
• Definition: A set that is not finite is
said to be infinite
• Examples
– Let B = {x | (x100)  (x is prime)}, the
cardinality of B is |B|=25 because there
are 25 primes less than or equal to 100.
– The cardinality of the empty set is ||=0
– The sets N, Z, Q, R are all infinite
Equivalence
• You may be asked to show that a set is
– a subset of,
– proper subset of, or
– equal to another set.
• To prove that A is a subset of B, use the equivalence
discussed earlier A  B  x(xA  xB)
– To prove that A  B it is enough to show that for an arbitrary
(nonspecific) element x, xA implies that x is also in B.
– Any proof method can be used.
• To prove that A is a proper subset of B, you must prove
– A is a subset of B and
– x (xB)  (xA)
• Finally to show that two sets are equal, it is
sufficient to show independently (much like
a biconditional) that
– A  B and
– B  A
• Logically speaking, you must show the
following quantified statements:
(x (xA  xB))  (x (xB  xA))
we will see an example later..
Power Set
• Definition: The power set of a set S,
denoted P(S), is the set of all subsets of
S.
• Examples
– Let A={a,b,c}, P(A)={,{a},{b},{c},{a,b},{b,c},
{a,c},{a,b,c}}
Let A={{a,b},c}, P(A)={,{{a,b}},{c},
{{a,b},c}}
• Fact: Let S be a set such that |S|=n, then
|P(S)| = 2n
Set Operations
• Arithmetic operators (+,-,  ,) can be
used on pairs of numbers to give us new
numbers
• Similarly, set operators exist and act on
two sets to give us new sets
– Union
– Intersection
– Set difference
– Set complement
Set Operators: Union
• Definition: The union of two sets A
and B is the set that contains all
elements in A, B, r both. We write:
AB = { x | (a  A)  (b  B) }
U
A B
Set Operators: Intersection
• Definition: The intersection of two
sets A and B is the set that contains
all elements that are element of both
A and B. We write:
A  B = { x | (a  A)  (b  B) }
U
A B
Disjoint Sets
• Definition: Two sets are said to be
disjoint if their intersection is the
empty set: A  B = 
U
A B
Set Difference
• Definition: The difference of two
sets A and B, denoted AB ($setminus$)
or A−B, is the set containing those
elements that are in A but not in B
U
A B
Set Complement
• Definition: The complement of a set
A, denoted A ($bar$), consists of all
elements not in A. That is the
difference of the universal set and U:
UA
A= AC = {x | x  A }
U A
A
Set Complement: Absolute &
Relative
• Given the Universe U, and A,B  U.
• The (absolute) complement of A is
A=UA
• The (relative) complement of A in B
is BAU
AA
U
BA

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

resolution in the propositional calculus
resolution in the propositional calculusresolution in the propositional calculus
resolution in the propositional calculus
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Intro to Discrete Mathematics
Intro to Discrete MathematicsIntro to Discrete Mathematics
Intro to Discrete Mathematics
 
Unit IV UNCERTAINITY AND STATISTICAL REASONING in AI K.Sundar,AP/CSE,VEC
Unit IV UNCERTAINITY AND STATISTICAL REASONING in AI K.Sundar,AP/CSE,VECUnit IV UNCERTAINITY AND STATISTICAL REASONING in AI K.Sundar,AP/CSE,VEC
Unit IV UNCERTAINITY AND STATISTICAL REASONING in AI K.Sundar,AP/CSE,VEC
 
Association rules apriori algorithm
Association rules   apriori algorithmAssociation rules   apriori algorithm
Association rules apriori algorithm
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Bayesian network
Bayesian networkBayesian network
Bayesian network
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data mining
 
Insertion Sorting
Insertion SortingInsertion Sorting
Insertion Sorting
 
Learning in AI
Learning in AILearning in AI
Learning in AI
 
Mining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesMining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association Rules
 
Artificial Intelligence Notes Unit 3
Artificial Intelligence Notes Unit 3Artificial Intelligence Notes Unit 3
Artificial Intelligence Notes Unit 3
 
State Space Search and Control Strategies in Artificial Intelligence.pptx
State Space Search and Control Strategies in Artificial Intelligence.pptxState Space Search and Control Strategies in Artificial Intelligence.pptx
State Space Search and Control Strategies in Artificial Intelligence.pptx
 
L4. Ensembles of Decision Trees
L4. Ensembles of Decision TreesL4. Ensembles of Decision Trees
L4. Ensembles of Decision Trees
 
Understanding Bagging and Boosting
Understanding Bagging and BoostingUnderstanding Bagging and Boosting
Understanding Bagging and Boosting
 
Classification and Regression
Classification and RegressionClassification and Regression
Classification and Regression
 
Data mining techniques unit 1
Data mining techniques  unit 1Data mining techniques  unit 1
Data mining techniques unit 1
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data Mining
 

Ähnlich wie Sets automata

Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
Ashita Agrawal
 

Ähnlich wie Sets automata (20)

Set theory
Set theorySet theory
Set theory
 
Set theory
Set theorySet theory
Set theory
 
Blackbox task 2
Blackbox task 2Blackbox task 2
Blackbox task 2
 
Set theory
Set theorySet theory
Set theory
 
Set Theory
Set Theory Set Theory
Set Theory
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
 
1. set theory
1. set theory1. set theory
1. set theory
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
 
sets by navneet
sets by navneetsets by navneet
sets by navneet
 
INTRODUCTION TO SETS.pptx
INTRODUCTION TO SETS.pptxINTRODUCTION TO SETS.pptx
INTRODUCTION TO SETS.pptx
 
Set
SetSet
Set
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
Moazzzim Sir (25.07.23)CSE 1201, Week#3, Lecture#7.pptx
Moazzzim Sir (25.07.23)CSE 1201, Week#3, Lecture#7.pptxMoazzzim Sir (25.07.23)CSE 1201, Week#3, Lecture#7.pptx
Moazzzim Sir (25.07.23)CSE 1201, Week#3, Lecture#7.pptx
 
sets.pptx
sets.pptxsets.pptx
sets.pptx
 
Sets (Mathematics class XI)
Sets (Mathematics class XI)Sets (Mathematics class XI)
Sets (Mathematics class XI)
 
set.pdf
set.pdfset.pdf
set.pdf
 
sets class 11.pptx
sets class 11.pptxsets class 11.pptx
sets class 11.pptx
 
Introduction to sets
Introduction to setsIntroduction to sets
Introduction to sets
 
CS205_2
CS205_2CS205_2
CS205_2
 

Mehr von ajeela mushtaq (12)

String.ppt
String.pptString.ppt
String.ppt
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Mail merge
Mail mergeMail merge
Mail merge
 
Linux hotspot
Linux hotspotLinux hotspot
Linux hotspot
 
Interfaces .net
Interfaces .netInterfaces .net
Interfaces .net
 
Incremental
IncrementalIncremental
Incremental
 
Gprs
GprsGprs
Gprs
 
Graphics a buffer
Graphics a bufferGraphics a buffer
Graphics a buffer
 
Disk allocation methods
Disk allocation methodsDisk allocation methods
Disk allocation methods
 
Data com prsntation
Data com prsntationData com prsntation
Data com prsntation
 
Avl tree
Avl treeAvl tree
Avl tree
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
 

Kürzlich hochgeladen

Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 

Kürzlich hochgeladen (20)

Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 

Sets automata

  • 1. Ajeela Mushtaq Roll NO:-13-Mcs-15 PRESENTED TO:-PRESENTED TO:- MR. MIR AADIL SETSSETS
  • 2. Introduction •Definition: A set is an unordered collection of (unique) objects. •Sets are fundamental discrete structures and for the basis of more complex discrete structures like graphs
  • 3. • Definition: The objects in a set are called elements or members of a set. A set is said to contain its elements. • Notation, for a set A: – x  A: x is an element of A – x  A: x is not an element of A
  • 4. Terminology • Definition: Two sets, A and B, are equal is they contain the same elements. We write A=B. • Example: – {2,3,5,7}={3,2,7,5}, because a set is unordered – Also, {2,3,5,7}={2,2,3,5,3,7} because a set contains unique elements – However, {2,3,5,7} {2,3}
  • 5. • The set-builder notation O={ x | (xZ)  (x=2k) for some kZ} reads: O is the set that contains all x such that x is an integer and x is even • A set is defined in intension when you give its set-builder notation O={ x | (xZ)  (0x8)  (x=2k) for some k  Z } • A set is defined in extension when you enumerate all the elements: O={0,2,4,6,8}
  • 6. Venn Diagram: Example • A set can be represented graphically using a Venn Diagram U a x y z A C B
  • 7. • A set that has no elements is called the empty set or null set and is denoted  • A set that has one element is called a singleton set. – For example: {a}, with brackets, is a singleton set – a, without brackets, is an element of the set {a} • Note the subtlety in   {} – The left-hand side is the empty set – The right hand-side is a singleton set, and a set containing a set
  • 8. • Definition: A is said to be a subset of B, and we write A  B, if and only if every element of A is also an element of B. • That is, we have the equivalence: A  B   x (x  A  x  B)
  • 9. • Definition: A set A that is a subset of a set B is called a proper subset if A  B. • That is there is an element xB such that xA. • We write: A  B, A  B
  • 10. • Sets can be elements of other sets. • Examples – S1 = {,{a},{b},{a,b},c} – S2={{1},{2,4,8},{3},{6},4,5,6}.
  • 11. • Definition: If there are exactly n distinct elements in a set S, with n a nonnegative integer, we say that: – S is a finite set, and – The cardinality of S is n. Notation: |S| = n. • Definition: A set that is not finite is said to be infinite
  • 12. • Examples – Let B = {x | (x100)  (x is prime)}, the cardinality of B is |B|=25 because there are 25 primes less than or equal to 100. – The cardinality of the empty set is ||=0 – The sets N, Z, Q, R are all infinite
  • 13. Equivalence • You may be asked to show that a set is – a subset of, – proper subset of, or – equal to another set. • To prove that A is a subset of B, use the equivalence discussed earlier A  B  x(xA  xB) – To prove that A  B it is enough to show that for an arbitrary (nonspecific) element x, xA implies that x is also in B. – Any proof method can be used. • To prove that A is a proper subset of B, you must prove – A is a subset of B and – x (xB)  (xA)
  • 14. • Finally to show that two sets are equal, it is sufficient to show independently (much like a biconditional) that – A  B and – B  A • Logically speaking, you must show the following quantified statements: (x (xA  xB))  (x (xB  xA)) we will see an example later..
  • 15. Power Set • Definition: The power set of a set S, denoted P(S), is the set of all subsets of S. • Examples – Let A={a,b,c}, P(A)={,{a},{b},{c},{a,b},{b,c}, {a,c},{a,b,c}} Let A={{a,b},c}, P(A)={,{{a,b}},{c}, {{a,b},c}} • Fact: Let S be a set such that |S|=n, then |P(S)| = 2n
  • 16. Set Operations • Arithmetic operators (+,-,  ,) can be used on pairs of numbers to give us new numbers • Similarly, set operators exist and act on two sets to give us new sets – Union – Intersection – Set difference – Set complement
  • 17. Set Operators: Union • Definition: The union of two sets A and B is the set that contains all elements in A, B, r both. We write: AB = { x | (a  A)  (b  B) } U A B
  • 18. Set Operators: Intersection • Definition: The intersection of two sets A and B is the set that contains all elements that are element of both A and B. We write: A  B = { x | (a  A)  (b  B) } U A B
  • 19. Disjoint Sets • Definition: Two sets are said to be disjoint if their intersection is the empty set: A  B =  U A B
  • 20. Set Difference • Definition: The difference of two sets A and B, denoted AB ($setminus$) or A−B, is the set containing those elements that are in A but not in B U A B
  • 21. Set Complement • Definition: The complement of a set A, denoted A ($bar$), consists of all elements not in A. That is the difference of the universal set and U: UA A= AC = {x | x  A } U A A
  • 22. Set Complement: Absolute & Relative • Given the Universe U, and A,B  U. • The (absolute) complement of A is A=UA • The (relative) complement of A in B is BAU AA U BA