SlideShare a Scribd company logo
1 of 22
Discrete Mathematics
Lecture 02
Rubya Afrin
Lecturer
Northern University of Business and Technology
Set Theory
2
SET THEORY
• Set: Collection of objects (“elements”)
• aA “a is an element of A”
“a is a member of A”
• aA “a is not an element of A”
• A = {a1, a2, …, an} “A contains…”
• Order of elements is meaningless
• It does not matter how often the same element
is listed.
3
SET EQUALITY
Sets A and B are equal if and only if they
contain exactly the same elements.
Examples:
4
• A = {9, 2, 7, -3}, B = {7, 9, -3, 2} : A = B
• A = {dog, cat, horse},
B = {cat, horse, squirrel, dog} : A  B
• A = {dog, cat, horse},
B = {cat, horse, dog, dog} : A = B
EXAMPLES FOR SETS
 “Standard” Sets:
• Natural numbers N = {0, 1, 2, 3, …}
• Integers Z = {…, -2, -1, 0, 1, 2, …}
• Positive Integers Z+ = {1, 2, 3, 4, …}
• Real Numbers R = {47.3, -12, , …}
• Rational Numbers Q = {1.5, 2.6, -3.8, 15, …}
(correct definition will follow)
5
EXAMPLES FOR SETS
• A =  “empty set/null set”
• A = {z} Note: zA, but z  {z}
• A = {{b, c}, {c, x, d}}
• A = {{x, y}}
Note: {x, y} A, but {x, y}  {{x, y}}
• A = {x | P(x)}
“set of all x such that P(x)”
• A = {x | xN  x > 7} = {8, 9, 10, …}
“set builder notation”
6
EXAMPLES FOR SETS
We are now able to define the set of rational
numbers Q:
Q = {a/b | aZ  bZ+}
or
Q = {a/b | aZ  bZ  b0}
And how about the set of real numbers R?
R = {r | r is a real number}
That is the best we can do.
7
SUBSETS
A  B “A is a subset of B”
A  B if and only if every element of A is also
an element of B.
We can completely formalize this:
A  B  x (xA  xB)
Examples:
8
A = {3, 9}, B = {5, 9, 1, 3}, A  B ? true
A = {3, 3, 3, 9}, B = {5, 9, 1, 3}, A  B ?
false
true
A = {1, 2, 3}, B = {2, 3, 4}, A  B ?
SUBSETS
 Useful rules:
• A = B  (A  B)  (B  A)
• (A  B)  (B  C)  A  C (see Venn Diagram)
9
U
A
B
C
SUBSETS
Useful rules:
•   A for any set A
• A  A for any set A
Proper subsets:
A  B “A is a proper subset of B”
A  B  x (xA  xB)  x (xB  xA)
or
A  B  x (xA  xB)  x (xB  xA) 10
CARDINALITY OF SETS
If a set S contains n distinct elements, nN,
we call S a finite set with cardinality n.
Examples:
A = {Mercedes, BMW, Porsche}, |A| = 3
11
B = {1, {2, 3}, {4, 5}, 6} |B| = 4
C =  |C| = 0
D = { xN | x  7000 } |D| = 7001
E = { xN | x  7000 } E is infinite!
THE POWER SET
 P(A) “power set of A”
 P(A) = {B | B  A} (contains all subsets of A)
 Examples:
 A = {x, y, z}
 P(A) = {, {x}, {y}, {z}, {x, y}, {x, z}, {y, z}, {x, y, z}}
 A = 
 P(A) = {}
 Note: |A| = 0, |P(A)| = 1
12
THE POWER SET
 Cardinality of power sets:
 | P(A) | = 2|A|
• Imagine each element in A has an “on/off” switch
• Each possible switch configuration in A corresponds to
one element in 2A
13
zzzzzzzzz
yyyyyyyyy
xxxxxxxxx
87654321A
• For 3 elements in A, there are
222 = 8 elements in P(A)
CARTESIAN PRODUCT
The ordered n-tuple (a1, a2, a3, …, an) is an ordered
collection of objects.
Two ordered n-tuples (a1, a2, a3, …, an) and
(b1, b2, b3, …, bn) are equal if and only if they contain
exactly the same elements in the same order, i.e. ai = bi
for 1  i  n.
The Cartesian product of two sets is defined as:
AB = {(a, b) | aA  bB}
Example: A = {x, y}, B = {a, b, c}
AB = {(x, a), (x, b), (x, c), (y, a), (y, b), (y, c)} 14
CARTESIAN PRODUCT
The Cartesian product of two sets is defined as: AB =
{(a, b) | aA  bB}
Example:
A = {good, bad}, B = {student, prof}
AB = {
15
(good, student), (good, prof), (bad, student), (bad, prof)}
(student, good), (prof, good), (student, bad), (prof, bad)}BA = {
CARTESIAN PRODUCT
Note that:
• A = 
• A = 
• For non-empty sets A and B: AB  AB  BA
• |AB| = |A||B|
The Cartesian product of two or more sets is defined
as:
A1A2…An = {(a1, a2, …, an) | aiA for 1  i  n} 16
SET OPERATIONS
Union: AB = {x | xA  xB}
Example: A = {a, b}, B = {b, c, d}
 AB = {a, b, c, d}
Intersection: AB = {x | xA  xB}
Example: A = {a, b}, B = {b, c, d}
 AB = {b}
17
SET OPERATIONS
Two sets are called disjoint if their intersection is
empty, that is, they share no elements:
AB = 
The difference between two sets A and B contains
exactly those elements of A that are not in B:
A-B = {x | xA  xB}
Example: A = {a, b}, B = {b, c, d}, A-B = {a}
18
SET OPERATIONS
The complement of a set A contains exactly those
elements under consideration that are not in A:
Ac = U-A
Example: U = N, B = {250, 251, 252, …}
 Bc = {0, 1, 2, …, 248, 249}
19
SET OPERATIONS
 Table 1 in Section 1.5 shows many useful equations.
 How can we prove A(BC) = (AB)(AC)?
 Method I:
 xA(BC)
 xA  x(BC)
 xA  (xB  xC)
 (xA  xB)  (xA  xC)
(distributive law for logical expressions)
 x(AB)  x(AC)
 x(AB)(AC)
20
SET OPERATIONS
Method II: Membership table
1 means “x is an element of this set”
0 means “x is not an element of this set”
21111111 1 1
111101 1 0
111101 0 1
111101 0 0
111110 1 1
001000 1 0
010000 0 1
000000 0 0
(AB) (AC)ACABA(BC)BCA B C
THANK YOU…

More Related Content

What's hot

Merentang (Spanning) Tugas Matrikulasi Aljabar Linear
Merentang (Spanning) Tugas Matrikulasi Aljabar LinearMerentang (Spanning) Tugas Matrikulasi Aljabar Linear
Merentang (Spanning) Tugas Matrikulasi Aljabar LinearMuhammad Alfiansyah Alfi
 
Lks elips lengkap new1
Lks elips lengkap new1Lks elips lengkap new1
Lks elips lengkap new1nurwa ningsih
 
1 polar coordinates
1 polar coordinates1 polar coordinates
1 polar coordinatesmath267
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryNittaya Noinan
 
Relations
RelationsRelations
RelationsGaditek
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryRaju Ahmed Rony
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on setsRahul Avicii
 
Set Concepts
Set ConceptsSet Concepts
Set Conceptsshbest
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlightedAmanSaeed11
 
Matematika Diskrit - 05 rekursi dan relasi rekurens - 04
Matematika Diskrit - 05 rekursi dan relasi rekurens  - 04Matematika Diskrit - 05 rekursi dan relasi rekurens  - 04
Matematika Diskrit - 05 rekursi dan relasi rekurens - 04KuliahKita
 
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...Amr Rashed
 

What's hot (20)

Merentang (Spanning) Tugas Matrikulasi Aljabar Linear
Merentang (Spanning) Tugas Matrikulasi Aljabar LinearMerentang (Spanning) Tugas Matrikulasi Aljabar Linear
Merentang (Spanning) Tugas Matrikulasi Aljabar Linear
 
Lks elips lengkap new1
Lks elips lengkap new1Lks elips lengkap new1
Lks elips lengkap new1
 
1 polar coordinates
1 polar coordinates1 polar coordinates
1 polar coordinates
 
01 sistem bilangan real
01 sistem bilangan real01 sistem bilangan real
01 sistem bilangan real
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Operations on Sets
Operations on SetsOperations on Sets
Operations on Sets
 
Relations
RelationsRelations
Relations
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
 
Vedic Mathematics- 3x3 multiplication
Vedic Mathematics- 3x3 multiplicationVedic Mathematics- 3x3 multiplication
Vedic Mathematics- 3x3 multiplication
 
Peubah acak
Peubah acakPeubah acak
Peubah acak
 
Set Concepts
Set ConceptsSet Concepts
Set Concepts
 
Sampling Distributions and Estimators
Sampling Distributions and EstimatorsSampling Distributions and Estimators
Sampling Distributions and Estimators
 
The Standard Normal Distribution
The Standard Normal DistributionThe Standard Normal Distribution
The Standard Normal Distribution
 
Relations in Discrete Math
Relations in Discrete MathRelations in Discrete Math
Relations in Discrete Math
 
Lecture 29 fuzzy systems
Lecture 29   fuzzy systemsLecture 29   fuzzy systems
Lecture 29 fuzzy systems
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlighted
 
Matematika Diskrit - 05 rekursi dan relasi rekurens - 04
Matematika Diskrit - 05 rekursi dan relasi rekurens  - 04Matematika Diskrit - 05 rekursi dan relasi rekurens  - 04
Matematika Diskrit - 05 rekursi dan relasi rekurens - 04
 
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
 
Nama kelompok
Nama kelompokNama kelompok
Nama kelompok
 

Similar to Set Theory DM

Similar to Set Theory DM (20)

sets by navneet
sets by navneetsets by navneet
sets by navneet
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
Sets (1).ppt
Sets (1).pptSets (1).ppt
Sets (1).ppt
 
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
 
Ch01-2.ppt
Ch01-2.pptCh01-2.ppt
Ch01-2.ppt
 
Set theory-ppt
Set theory-pptSet theory-ppt
Set theory-ppt
 
Set theory
Set theorySet theory
Set theory
 
2.1 Sets
2.1 Sets2.1 Sets
2.1 Sets
 
Sets class 11
Sets class 11Sets class 11
Sets class 11
 
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
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdf
 
mathematical sets.pdf
mathematical sets.pdfmathematical sets.pdf
mathematical sets.pdf
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
 
discrete maths notes.ppt
discrete maths notes.pptdiscrete maths notes.ppt
discrete maths notes.ppt
 
Set theory
Set theorySet theory
Set theory
 
Set
SetSet
Set
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 
Per1 himpunan umn
Per1 himpunan umnPer1 himpunan umn
Per1 himpunan umn
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 

More from Rokonuzzaman Rony (20)

Course outline for c programming
Course outline for c  programming Course outline for c  programming
Course outline for c programming
 
Pointer
PointerPointer
Pointer
 
Operator Overloading & Type Conversions
Operator Overloading & Type ConversionsOperator Overloading & Type Conversions
Operator Overloading & Type Conversions
 
Constructors & Destructors
Constructors  & DestructorsConstructors  & Destructors
Constructors & Destructors
 
Classes and objects in c++
Classes and objects in c++Classes and objects in c++
Classes and objects in c++
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
Object Oriented Programming with C++
Object Oriented Programming with C++Object Oriented Programming with C++
Object Oriented Programming with C++
 
Humanitarian task and its importance
Humanitarian task and its importanceHumanitarian task and its importance
Humanitarian task and its importance
 
Structure
StructureStructure
Structure
 
Pointers
 Pointers Pointers
Pointers
 
Loops
LoopsLoops
Loops
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Array
ArrayArray
Array
 
Constants, Variables, and Data Types
Constants, Variables, and Data TypesConstants, Variables, and Data Types
Constants, Variables, and Data Types
 
C Programming language
C Programming languageC Programming language
C Programming language
 
User defined functions
User defined functionsUser defined functions
User defined functions
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Numerical Method
Numerical Method Numerical Method
Numerical Method
 
Data structures
Data structuresData structures
Data structures
 
Data structures
Data structures Data structures
Data structures
 

Recently uploaded

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
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
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
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 

Recently uploaded (20)

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
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
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 ...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

Set Theory DM

  • 1. Discrete Mathematics Lecture 02 Rubya Afrin Lecturer Northern University of Business and Technology
  • 3. SET THEORY • Set: Collection of objects (“elements”) • aA “a is an element of A” “a is a member of A” • aA “a is not an element of A” • A = {a1, a2, …, an} “A contains…” • Order of elements is meaningless • It does not matter how often the same element is listed. 3
  • 4. SET EQUALITY Sets A and B are equal if and only if they contain exactly the same elements. Examples: 4 • A = {9, 2, 7, -3}, B = {7, 9, -3, 2} : A = B • A = {dog, cat, horse}, B = {cat, horse, squirrel, dog} : A  B • A = {dog, cat, horse}, B = {cat, horse, dog, dog} : A = B
  • 5. EXAMPLES FOR SETS  “Standard” Sets: • Natural numbers N = {0, 1, 2, 3, …} • Integers Z = {…, -2, -1, 0, 1, 2, …} • Positive Integers Z+ = {1, 2, 3, 4, …} • Real Numbers R = {47.3, -12, , …} • Rational Numbers Q = {1.5, 2.6, -3.8, 15, …} (correct definition will follow) 5
  • 6. EXAMPLES FOR SETS • A =  “empty set/null set” • A = {z} Note: zA, but z  {z} • A = {{b, c}, {c, x, d}} • A = {{x, y}} Note: {x, y} A, but {x, y}  {{x, y}} • A = {x | P(x)} “set of all x such that P(x)” • A = {x | xN  x > 7} = {8, 9, 10, …} “set builder notation” 6
  • 7. EXAMPLES FOR SETS We are now able to define the set of rational numbers Q: Q = {a/b | aZ  bZ+} or Q = {a/b | aZ  bZ  b0} And how about the set of real numbers R? R = {r | r is a real number} That is the best we can do. 7
  • 8. SUBSETS A  B “A is a subset of B” A  B if and only if every element of A is also an element of B. We can completely formalize this: A  B  x (xA  xB) Examples: 8 A = {3, 9}, B = {5, 9, 1, 3}, A  B ? true A = {3, 3, 3, 9}, B = {5, 9, 1, 3}, A  B ? false true A = {1, 2, 3}, B = {2, 3, 4}, A  B ?
  • 9. SUBSETS  Useful rules: • A = B  (A  B)  (B  A) • (A  B)  (B  C)  A  C (see Venn Diagram) 9 U A B C
  • 10. SUBSETS Useful rules: •   A for any set A • A  A for any set A Proper subsets: A  B “A is a proper subset of B” A  B  x (xA  xB)  x (xB  xA) or A  B  x (xA  xB)  x (xB  xA) 10
  • 11. CARDINALITY OF SETS If a set S contains n distinct elements, nN, we call S a finite set with cardinality n. Examples: A = {Mercedes, BMW, Porsche}, |A| = 3 11 B = {1, {2, 3}, {4, 5}, 6} |B| = 4 C =  |C| = 0 D = { xN | x  7000 } |D| = 7001 E = { xN | x  7000 } E is infinite!
  • 12. THE POWER SET  P(A) “power set of A”  P(A) = {B | B  A} (contains all subsets of A)  Examples:  A = {x, y, z}  P(A) = {, {x}, {y}, {z}, {x, y}, {x, z}, {y, z}, {x, y, z}}  A =   P(A) = {}  Note: |A| = 0, |P(A)| = 1 12
  • 13. THE POWER SET  Cardinality of power sets:  | P(A) | = 2|A| • Imagine each element in A has an “on/off” switch • Each possible switch configuration in A corresponds to one element in 2A 13 zzzzzzzzz yyyyyyyyy xxxxxxxxx 87654321A • For 3 elements in A, there are 222 = 8 elements in P(A)
  • 14. CARTESIAN PRODUCT The ordered n-tuple (a1, a2, a3, …, an) is an ordered collection of objects. Two ordered n-tuples (a1, a2, a3, …, an) and (b1, b2, b3, …, bn) are equal if and only if they contain exactly the same elements in the same order, i.e. ai = bi for 1  i  n. The Cartesian product of two sets is defined as: AB = {(a, b) | aA  bB} Example: A = {x, y}, B = {a, b, c} AB = {(x, a), (x, b), (x, c), (y, a), (y, b), (y, c)} 14
  • 15. CARTESIAN PRODUCT The Cartesian product of two sets is defined as: AB = {(a, b) | aA  bB} Example: A = {good, bad}, B = {student, prof} AB = { 15 (good, student), (good, prof), (bad, student), (bad, prof)} (student, good), (prof, good), (student, bad), (prof, bad)}BA = {
  • 16. CARTESIAN PRODUCT Note that: • A =  • A =  • For non-empty sets A and B: AB  AB  BA • |AB| = |A||B| The Cartesian product of two or more sets is defined as: A1A2…An = {(a1, a2, …, an) | aiA for 1  i  n} 16
  • 17. SET OPERATIONS Union: AB = {x | xA  xB} Example: A = {a, b}, B = {b, c, d}  AB = {a, b, c, d} Intersection: AB = {x | xA  xB} Example: A = {a, b}, B = {b, c, d}  AB = {b} 17
  • 18. SET OPERATIONS Two sets are called disjoint if their intersection is empty, that is, they share no elements: AB =  The difference between two sets A and B contains exactly those elements of A that are not in B: A-B = {x | xA  xB} Example: A = {a, b}, B = {b, c, d}, A-B = {a} 18
  • 19. SET OPERATIONS The complement of a set A contains exactly those elements under consideration that are not in A: Ac = U-A Example: U = N, B = {250, 251, 252, …}  Bc = {0, 1, 2, …, 248, 249} 19
  • 20. SET OPERATIONS  Table 1 in Section 1.5 shows many useful equations.  How can we prove A(BC) = (AB)(AC)?  Method I:  xA(BC)  xA  x(BC)  xA  (xB  xC)  (xA  xB)  (xA  xC) (distributive law for logical expressions)  x(AB)  x(AC)  x(AB)(AC) 20
  • 21. SET OPERATIONS Method II: Membership table 1 means “x is an element of this set” 0 means “x is not an element of this set” 21111111 1 1 111101 1 0 111101 0 1 111101 0 0 111110 1 1 001000 1 0 010000 0 1 000000 0 0 (AB) (AC)ACABA(BC)BCA B C