SlideShare a Scribd company logo
1 of 6
Download to read offline
CS205-Basic Set Theory and Functions
Suiliang Ma
May,2016
Chapter 1
Basic Set Theory
1.1 Basic Set Definitions
1.1.1 Definition
A set is an unordered collection of objects.
the objects in a set is called elements of this set.
Note that since a set is unordered, then two sets A, B such that A =
{1, 2, 3} and B = {3, 2, 1} satisfy that A = B, or in other word, they are
”identical”.
The point is: changing the sequence of elements within a set will
not create a new set.
We write a ∈ A to denote that a is an element of the set A. The notation
a ∈ A denotes that a is not an element of the set A.
1.1.2 How to Define sets
Since we know the definition of sets, then the question comes: how to define
sets using mathematical language?
There are several ways.
1. roster method
Idea: list all the members of a set.
For example, A = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, a set of all natural numbers
that are less than 10.
2. set builder
Idea: characterize all those elements in the set by stating the
property or properties they must have to be members.
1
For example,A = {x | x is an even interger that is greater than 0}
1.1.3 useful sets
Here are some very useful sets:
N = {0, 1, 2, 3...}, the set of natural numbers
Z = {..., −2, −1, 0, 1, 2, ...}, the set of integers
Z+
= {1,2,3,...}, the set of positive integers
Q = {p/q | p ∈ Z, q ∈ Z, q = 0}, the set of rational numbers
R, the set of real numbers
R+
, the set of positive real numbers
C, the set of complex numbers
1.1.4 Intervals
When a, b are real numbers such that a < b, we have:
[a, b] = {x | a ≤ x ≤ b}
(a, b] = {x | a < x ≤ b}
[a, b) = {x | a ≤ x < b}
(a, b) = {x | a < x < b}
1.1.5 When sets are equal
Definition: Two sets A and B are equal, if and only if they have the same
elements. Therefore:
• For every a ∈ A, a ∈ B as well
• For every b ∈ B, b ∈ A as well
We write A = B if the two sets A and B are equal.
1.1.6 empty sets
There is a special set that has no elements.
This set is called the empty set, or null set, and is denoted by ∅. There
is an alterative way to write an empty set as { }, a pair of braces within
nothing inside.
1.1.7 Venn diagrams
This diagram gives us a more intuitive way understand sets, especially the
relations between different sets.
2
1.1.8 Subsets
We are very interested to see the relations between different sets, so we
introduce subset of a set as:
Definition: The set A is a subset of B if and only if every element
of A is also an element of B.
If A is a subset of B, we write A ⊆ B.
Question: how to determine that one set, say A, is a subset of another,
say B?
• A is an empty set
In this situation, A is clearly a subset of B, regardless of what B might
be.
• A is not empty but B is empty
In this case, A is not a subset of B.
• Neither A nor B is empty
check whether every x belonging to A also belongs to B.If this
is true, then A is a subset of B. If not, then A is not a subset of B.
Note that:
by saying A is a subset of B, it is possible that A is actually equal to B.
Question: what if a set A is truly a ”subset” of another set B?
Definition: a set A is a proper subset of a set B if A is a subset of B
and A = B.
We write A ⊂ B to show that A is a proper subset of B.
Similarly, to check whether a set A is a proper subset of another set B,
we can follow the patterns of determining whether A is a subset of B, but
we have to do more:
• A is an empty set
Given this condition, we know that A is a subset of B. We go a step
forward:
If B is not empty, then A is a proper subset of B, as A = B.
However,if B is empty as well, then A = B, which means that A is
NOT a proper subset of B.
We can generalize this idea like this:
An empty set is a proper subset of any other nonempty set.
3
• A is not empty, B is empty
Under this condition, A is not a proper subset of B as A is not a subset
of B.
• Neither A nor B is empty
Check whether every element belonging to A also belongs to B. If this
is false, then A is not a proper subset of B. If this is true, we have to
do another check:
Check whether there is an element b ∈ B such that b ∈ A. If this
is true, then A is a proper subset of B. Otherwise, A = B, implying
that A is not a proper subset of B.
1.1.9 The Size of a Set
The size of a set is an important feature of a set.
Definition: If there are exactly n distinct elements in a set S where n
is a nonnegative integer(natural number),we say that S is a finite set
and the size of S is n, which is called the cardinality of S. The cardinality
of S is denoted by | S |.
1.1.10 Power Sets
Idea: the power set of a set S contains every subset of S.
Definition: Given a set S, the power set of S is the set of all subsets
of the set S. The power set of S is denoted by P(S).
Example 1: P(∅) = {∅} (Why?)
Example 2: P({∅}) = {∅, {∅}} (Why?)
1.1.11 Cartesian product
Idea: ordered pair of elements in a set.
Definition: Let A and B be two sets. The Cartesian product of A and
B, denoted by A × B, is the set of all ordered pairs (a, b), where a ∈ A and
b ∈ B. Therefore:
A × B = {(a, b) | a ∈ A and b ∈ B}
The Cartesian product of more than two sets can also be defined similarly:
A1 × A2 × ... × An = {(a1, a2, ..., an) | ai ∈ Ai for i = 1, 2, ..., n}
In specific, if A = A1 = A2 = ... = An, then A1 × A2 × ... × An can also
be written as An
.
4
Chapter 2
Set Operations
There are several typical set operations.
2.1 the unions of sets
Definition: Let A and B be two sets. The union of the sets A and B, denoted
by A ∪ B, is the set containing those elements that are either in A or in B,
or in both.
In another word, if there is an element x in sets A or B, x will also in the
union of A and B.
A ∪ B = {x | x ∈ A or x ∈ B}
5

More Related Content

What's hot

Set, Relations and Functions
Set, Relations and FunctionsSet, Relations and Functions
Set, Relations and Functionssuthi
 
Types Of Set
Types Of SetTypes Of Set
Types Of SetPkwebbs
 
Discreet_Set Theory
Discreet_Set TheoryDiscreet_Set Theory
Discreet_Set Theoryguest68d714
 
3 6 introduction to sets-optional
3 6 introduction to sets-optional3 6 introduction to sets-optional
3 6 introduction to sets-optionalmath123a
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set TheoryUsama ahmad
 
Maths Project on sets
Maths Project on setsMaths Project on sets
Maths Project on setsatifansari17
 
1. set theory
1. set theory1. set theory
1. set theorycaymulb
 
SET THEORY
SET THEORYSET THEORY
SET THEORYLena
 
Sets and Functions By Saleh ElShehabey
Sets and Functions By Saleh ElShehabeySets and Functions By Saleh ElShehabey
Sets and Functions By Saleh ElShehabeyravingeek
 
BCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and functionBCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and functionRai University
 
Set theory-complete-1211828121770367-8
Set theory-complete-1211828121770367-8Set theory-complete-1211828121770367-8
Set theory-complete-1211828121770367-8Yusra Shaikh
 

What's hot (20)

Sets
SetsSets
Sets
 
2.1 Sets
2.1 Sets2.1 Sets
2.1 Sets
 
Set, Relations and Functions
Set, Relations and FunctionsSet, Relations and Functions
Set, Relations and Functions
 
Sets
SetsSets
Sets
 
Types Of Set
Types Of SetTypes Of Set
Types Of Set
 
Discreet_Set Theory
Discreet_Set TheoryDiscreet_Set Theory
Discreet_Set Theory
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
3 6 introduction to sets-optional
3 6 introduction to sets-optional3 6 introduction to sets-optional
3 6 introduction to sets-optional
 
Sets in mathematics
Sets in mathematicsSets in mathematics
Sets in mathematics
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set Theory
 
Sets
SetsSets
Sets
 
Set Theory 1
Set Theory 1Set Theory 1
Set Theory 1
 
Maths Project on sets
Maths Project on setsMaths Project on sets
Maths Project on sets
 
Set theory
Set theorySet theory
Set theory
 
1. set theory
1. set theory1. set theory
1. set theory
 
maths set
maths setmaths set
maths set
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Sets and Functions By Saleh ElShehabey
Sets and Functions By Saleh ElShehabeySets and Functions By Saleh ElShehabey
Sets and Functions By Saleh ElShehabey
 
BCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and functionBCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and function
 
Set theory-complete-1211828121770367-8
Set theory-complete-1211828121770367-8Set theory-complete-1211828121770367-8
Set theory-complete-1211828121770367-8
 

Viewers also liked

portfolio highlights web
portfolio highlights webportfolio highlights web
portfolio highlights webJARED CLARK
 
Sumit's_New_Updated_Resume
Sumit's_New_Updated_ResumeSumit's_New_Updated_Resume
Sumit's_New_Updated_ResumeSumit Sambyal
 
Vegetation index
Vegetation indexVegetation index
Vegetation indexcreaminiie
 
Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...
Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...
Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...Fernando Marcos Marcos
 
Pbio Investor Presentation Global Online Growth Conference - Oct 2016
Pbio Investor Presentation Global Online Growth Conference - Oct 2016Pbio Investor Presentation Global Online Growth Conference - Oct 2016
Pbio Investor Presentation Global Online Growth Conference - Oct 2016RedChip Companies, Inc.
 
DDAA FPGA - Diseño De Una Memoria Buffer FIFO
DDAA   FPGA - Diseño De Una Memoria Buffer FIFODDAA   FPGA - Diseño De Una Memoria Buffer FIFO
DDAA FPGA - Diseño De Una Memoria Buffer FIFOFernando Marcos Marcos
 
Creating Constituencies: A Prospecting Road Trip
Creating Constituencies: A Prospecting Road TripCreating Constituencies: A Prospecting Road Trip
Creating Constituencies: A Prospecting Road TripBloomerang
 
LA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary ElectionsLA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary ElectionsSmartmatic
 
Response to questions from the Speakers Commission on Digital Democracy regar...
Response to questions from the Speakers Commission on Digital	Democracy regar...Response to questions from the Speakers Commission on Digital	Democracy regar...
Response to questions from the Speakers Commission on Digital Democracy regar...Smartmatic
 
Search engine marketing masterclass
Search engine marketing masterclassSearch engine marketing masterclass
Search engine marketing masterclassHubert Van de Vyver
 
Agile Israel 2016 - Philips ICAP case study
Agile Israel 2016 - Philips ICAP case studyAgile Israel 2016 - Philips ICAP case study
Agile Israel 2016 - Philips ICAP case studyAgileSparks
 
Winning team – the glue - Amdocs Delivery
Winning team – the glue - Amdocs DeliveryWinning team – the glue - Amdocs Delivery
Winning team – the glue - Amdocs DeliveryAgileSparks
 
The top 5 factors impacting third party risk management
The top 5 factors impacting third party risk managementThe top 5 factors impacting third party risk management
The top 5 factors impacting third party risk managementMarkit
 

Viewers also liked (18)

portfolio highlights web
portfolio highlights webportfolio highlights web
portfolio highlights web
 
Sumit's_New_Updated_Resume
Sumit's_New_Updated_ResumeSumit's_New_Updated_Resume
Sumit's_New_Updated_Resume
 
Vegetation index
Vegetation indexVegetation index
Vegetation index
 
Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...
Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...
Circuitos Digitales - Registro de corrimiento bidireccional de 4 bits con var...
 
LEAI Investor Deck
LEAI Investor DeckLEAI Investor Deck
LEAI Investor Deck
 
Search Engine Optimization and Marketing Plans
Search Engine Optimization and Marketing PlansSearch Engine Optimization and Marketing Plans
Search Engine Optimization and Marketing Plans
 
Pbio Investor Presentation Global Online Growth Conference - Oct 2016
Pbio Investor Presentation Global Online Growth Conference - Oct 2016Pbio Investor Presentation Global Online Growth Conference - Oct 2016
Pbio Investor Presentation Global Online Growth Conference - Oct 2016
 
DDAA FPGA - Diseño De Una Memoria Buffer FIFO
DDAA   FPGA - Diseño De Una Memoria Buffer FIFODDAA   FPGA - Diseño De Una Memoria Buffer FIFO
DDAA FPGA - Diseño De Una Memoria Buffer FIFO
 
MULTIMEDIA EDUCATIVA
MULTIMEDIA EDUCATIVAMULTIMEDIA EDUCATIVA
MULTIMEDIA EDUCATIVA
 
Digital Crew-China Digital Conference
Digital Crew-China Digital ConferenceDigital Crew-China Digital Conference
Digital Crew-China Digital Conference
 
Creating Constituencies: A Prospecting Road Trip
Creating Constituencies: A Prospecting Road TripCreating Constituencies: A Prospecting Road Trip
Creating Constituencies: A Prospecting Road Trip
 
LA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary ElectionsLA County – California - 2016 Presidential Primary Elections
LA County – California - 2016 Presidential Primary Elections
 
Response to questions from the Speakers Commission on Digital Democracy regar...
Response to questions from the Speakers Commission on Digital	Democracy regar...Response to questions from the Speakers Commission on Digital	Democracy regar...
Response to questions from the Speakers Commission on Digital Democracy regar...
 
Search engine marketing masterclass
Search engine marketing masterclassSearch engine marketing masterclass
Search engine marketing masterclass
 
Agile Israel 2016 - Philips ICAP case study
Agile Israel 2016 - Philips ICAP case studyAgile Israel 2016 - Philips ICAP case study
Agile Israel 2016 - Philips ICAP case study
 
Winning team – the glue - Amdocs Delivery
Winning team – the glue - Amdocs DeliveryWinning team – the glue - Amdocs Delivery
Winning team – the glue - Amdocs Delivery
 
HUSAM GH 2015
HUSAM GH 2015HUSAM GH 2015
HUSAM GH 2015
 
The top 5 factors impacting third party risk management
The top 5 factors impacting third party risk managementThe top 5 factors impacting third party risk management
The top 5 factors impacting third party risk management
 

Similar to CS205_2

Math 504 Subsets (Melanie B. Bargo).ppt
Math 504 Subsets (Melanie B. Bargo).pptMath 504 Subsets (Melanie B. Bargo).ppt
Math 504 Subsets (Melanie B. Bargo).pptMelanieBalanaBargo1
 
Set
SetSet
SetH K
 
Set theory and Venn Diagram.docx
Set theory and Venn Diagram.docxSet theory and Venn Diagram.docx
Set theory and Venn Diagram.docxRenierXanderUy
 
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.pptxKhalidSyfullah6
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfgowhiksankar54
 
Digital text sets pdf
Digital text sets  pdfDigital text sets  pdf
Digital text sets pdfstephy1234
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfMaryAnnBatac1
 
8 points you must to know about set theory
8 points you must to know about set theory8 points you must to know about set theory
8 points you must to know about set theoryTransweb Global Inc
 
Sets (Mathematics class XI)
Sets (Mathematics class XI)Sets (Mathematics class XI)
Sets (Mathematics class XI)VihaanBhambhani
 
sets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxsets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxZenLooper
 
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 Operationsallyn joy calcaben
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercisesRoshayu Mohamad
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure Abdullah Jan
 

Similar to CS205_2 (20)

Math 504 Subsets (Melanie B. Bargo).ppt
Math 504 Subsets (Melanie B. Bargo).pptMath 504 Subsets (Melanie B. Bargo).ppt
Math 504 Subsets (Melanie B. Bargo).ppt
 
Set
SetSet
Set
 
Set theory
Set theorySet theory
Set theory
 
Set theory and Venn Diagram.docx
Set theory and Venn Diagram.docxSet theory and Venn Diagram.docx
Set theory and Venn Diagram.docx
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
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
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdf
 
Digital text sets pdf
Digital text sets  pdfDigital text sets  pdf
Digital text sets pdf
 
Set Theory
Set Theory Set Theory
Set Theory
 
Sets automata
Sets automataSets automata
Sets automata
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
8 points you must to know about set theory
8 points you must to know about set theory8 points you must to know about set theory
8 points you must to know about set theory
 
Sets (Mathematics class XI)
Sets (Mathematics class XI)Sets (Mathematics class XI)
Sets (Mathematics class XI)
 
sets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxsets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptx
 
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
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
Lecture 1 - Concept of Sets.pdf
Lecture 1 - Concept of Sets.pdfLecture 1 - Concept of Sets.pdf
Lecture 1 - Concept of Sets.pdf
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure
 
G-1-SETS.pdf
G-1-SETS.pdfG-1-SETS.pdf
G-1-SETS.pdf
 
Sets
SetsSets
Sets
 

CS205_2

  • 1. CS205-Basic Set Theory and Functions Suiliang Ma May,2016
  • 2. Chapter 1 Basic Set Theory 1.1 Basic Set Definitions 1.1.1 Definition A set is an unordered collection of objects. the objects in a set is called elements of this set. Note that since a set is unordered, then two sets A, B such that A = {1, 2, 3} and B = {3, 2, 1} satisfy that A = B, or in other word, they are ”identical”. The point is: changing the sequence of elements within a set will not create a new set. We write a ∈ A to denote that a is an element of the set A. The notation a ∈ A denotes that a is not an element of the set A. 1.1.2 How to Define sets Since we know the definition of sets, then the question comes: how to define sets using mathematical language? There are several ways. 1. roster method Idea: list all the members of a set. For example, A = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, a set of all natural numbers that are less than 10. 2. set builder Idea: characterize all those elements in the set by stating the property or properties they must have to be members. 1
  • 3. For example,A = {x | x is an even interger that is greater than 0} 1.1.3 useful sets Here are some very useful sets: N = {0, 1, 2, 3...}, the set of natural numbers Z = {..., −2, −1, 0, 1, 2, ...}, the set of integers Z+ = {1,2,3,...}, the set of positive integers Q = {p/q | p ∈ Z, q ∈ Z, q = 0}, the set of rational numbers R, the set of real numbers R+ , the set of positive real numbers C, the set of complex numbers 1.1.4 Intervals When a, b are real numbers such that a < b, we have: [a, b] = {x | a ≤ x ≤ b} (a, b] = {x | a < x ≤ b} [a, b) = {x | a ≤ x < b} (a, b) = {x | a < x < b} 1.1.5 When sets are equal Definition: Two sets A and B are equal, if and only if they have the same elements. Therefore: • For every a ∈ A, a ∈ B as well • For every b ∈ B, b ∈ A as well We write A = B if the two sets A and B are equal. 1.1.6 empty sets There is a special set that has no elements. This set is called the empty set, or null set, and is denoted by ∅. There is an alterative way to write an empty set as { }, a pair of braces within nothing inside. 1.1.7 Venn diagrams This diagram gives us a more intuitive way understand sets, especially the relations between different sets. 2
  • 4. 1.1.8 Subsets We are very interested to see the relations between different sets, so we introduce subset of a set as: Definition: The set A is a subset of B if and only if every element of A is also an element of B. If A is a subset of B, we write A ⊆ B. Question: how to determine that one set, say A, is a subset of another, say B? • A is an empty set In this situation, A is clearly a subset of B, regardless of what B might be. • A is not empty but B is empty In this case, A is not a subset of B. • Neither A nor B is empty check whether every x belonging to A also belongs to B.If this is true, then A is a subset of B. If not, then A is not a subset of B. Note that: by saying A is a subset of B, it is possible that A is actually equal to B. Question: what if a set A is truly a ”subset” of another set B? Definition: a set A is a proper subset of a set B if A is a subset of B and A = B. We write A ⊂ B to show that A is a proper subset of B. Similarly, to check whether a set A is a proper subset of another set B, we can follow the patterns of determining whether A is a subset of B, but we have to do more: • A is an empty set Given this condition, we know that A is a subset of B. We go a step forward: If B is not empty, then A is a proper subset of B, as A = B. However,if B is empty as well, then A = B, which means that A is NOT a proper subset of B. We can generalize this idea like this: An empty set is a proper subset of any other nonempty set. 3
  • 5. • A is not empty, B is empty Under this condition, A is not a proper subset of B as A is not a subset of B. • Neither A nor B is empty Check whether every element belonging to A also belongs to B. If this is false, then A is not a proper subset of B. If this is true, we have to do another check: Check whether there is an element b ∈ B such that b ∈ A. If this is true, then A is a proper subset of B. Otherwise, A = B, implying that A is not a proper subset of B. 1.1.9 The Size of a Set The size of a set is an important feature of a set. Definition: If there are exactly n distinct elements in a set S where n is a nonnegative integer(natural number),we say that S is a finite set and the size of S is n, which is called the cardinality of S. The cardinality of S is denoted by | S |. 1.1.10 Power Sets Idea: the power set of a set S contains every subset of S. Definition: Given a set S, the power set of S is the set of all subsets of the set S. The power set of S is denoted by P(S). Example 1: P(∅) = {∅} (Why?) Example 2: P({∅}) = {∅, {∅}} (Why?) 1.1.11 Cartesian product Idea: ordered pair of elements in a set. Definition: Let A and B be two sets. The Cartesian product of A and B, denoted by A × B, is the set of all ordered pairs (a, b), where a ∈ A and b ∈ B. Therefore: A × B = {(a, b) | a ∈ A and b ∈ B} The Cartesian product of more than two sets can also be defined similarly: A1 × A2 × ... × An = {(a1, a2, ..., an) | ai ∈ Ai for i = 1, 2, ..., n} In specific, if A = A1 = A2 = ... = An, then A1 × A2 × ... × An can also be written as An . 4
  • 6. Chapter 2 Set Operations There are several typical set operations. 2.1 the unions of sets Definition: Let A and B be two sets. The union of the sets A and B, denoted by A ∪ B, is the set containing those elements that are either in A or in B, or in both. In another word, if there is an element x in sets A or B, x will also in the union of A and B. A ∪ B = {x | x ∈ A or x ∈ B} 5