SlideShare a Scribd company logo
1 of 22
Unit 18
Discrete Mathematics
Why Mathematics?
Design efficient computer systems.
 How did Google manage to build a fast search engine?
 What is the foundation of internet security?
algorithms, data structures, database,
parallel computing, distributed systems,
cryptography, computer networks…
Logic, number theory, counting, set, graph theory…
3
What Is Discrete Mathematics?
• What it isn’t: continuous
• Discrete: consisting of distinct or unconnected
elements
• Countably Infinite
• Definition Discrete Mathematics
• Discrete Mathematics is a collection of
mathematical topics that examine and use finite or
countably infinite mathematical objects.
What is Discrete Mathematics?
• Discrete mathematics is the branch of mathematics handling objects
that only considers distinct, separated values.
• It is steadily being applied in the multiple domains of mathematics
and computer science. It is accounted as a very effective approach for
developing and problem-solving strength.
• Discrete Mathematics focuses on the systematic study of
Mathematical structures that are essentially discrete in nature and
does not demand the belief of continuity.
What is Discrete Mathematics?
• In simple words, discrete mathematics gives an individual the ability
to understand mathematical language that can be learned through
various branches of it.
Set Theory
• A set is a collection of some items (elements). We often use capital
letters to denote a set. To define a set we can simply list all the
elements in curly brackets { } separated by commas.
• for example to define a set A that consists of the two elements ♣ and ♢,
we write A={♣,♢}
• To say that ♢ belongs to A, we write ♢∈A, where "∈" is pronounced
"belongs to." To say that an element does not belong to a set, we use ∉.
For example, we may write ♡∉A.
• Note that ordering does not matter, so the two
sets {♣,♢}{♣,♢} and {♢,♣}{♢,♣} are equal.
A set is a collection of things (elements).
Set Theory
Set Theory
Set Builder Notation
• We can also define a set by mathematically stating the properties satisfied by the
elements in the set. In particular, we may write
• A={x|x satisfies some property}A={x|x satisfies some property}
or
A={x:x satisfies some property}A={x:x satisfies some property}
The symbols "|" and ":" are pronounced "such that."
Example
•If the set C is defined as C={x|x∈Z,−2≤x<10}C={x|x∈Z,−2≤x<10}, then C={−2,−1,0,⋯,9}
• If the set D is defined as D={x2|x∈N}D={x2|x∈N}, then D={1,4,9,16,⋯}D={1,4,9,16,⋯}.
•The set of rational numbers can be defined as Q={a/b|a,b∈Z,b≠0}Q={ab|a,b∈Z,b≠0}.
Sep 2021 Unit 18- Discrete Mathematics 9
Set Theory
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, …}
Sep 2021 Unit 18- Discrete Mathematics 10
Set Theory
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”
Set Theory
• Venn Diagrams
Venn diagrams are very useful in
visualizing relation between sets. In
a Venn diagram any set is depicted by a
closed region.
• In this figure, the big rectangle shows the
universal set S. The shaded area shows
another set A
Set Theory
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.
• Useful rules:
•   A for any set A
• A  A for any set A
• Equivalently, we say B is a superset of A, or B ⊇ A. .
•Examples:
Venn Diagram for two sets A and B, where B⊂A.
Set Theory
• Proper Subsets
Set A is considered to be a proper subset of Set B if Set B
contains at least one element that is not present in Set A.
• A proper subset is denoted by ⊂
• If A and B are two sets, then A is called the proper
subset of B if A ⊆ B but B ⊇ A i.e., A ≠ B
example;
1) A = {1, 2, 3, 4}, Here n(A) = 4,
B = {1, 2, 3, 4, 5}, Here n(B) = 5
We observe that, all the elements of A are present in B but the
element ‘5’ of B is not present in A.
So, we say that A is a proper subset of B.
Symbolically, we write it as A ⊂ B
example;
• 2. A = {p, q, r}
B = {p, q, r, s, t}
Here A is a proper subset
of B as all the elements of
set A are in set B and also
A ≠ B.
Notes:
• No set is a proper subset of itself.
• Null set or ∅ is a proper subset of
every set.
Sep 2021 Unit 18- Discrete Mathematics 13
Set Theory
• How many subsets and
proper subsets does a set
have?
If a set has “n” elements, then the
number of subset of the given set
is 2n
And
the number of proper subsets of
the given subset is given by 2n-1.
Example
If set A has the
elements, A = {a, b},
then what is the subset
& proper subset of the
given set?
Sep 2021 Unit 18- Discrete Mathematics 15
Set Theory
• Power Set
• The power set is said to be the collection of all the subsets. It is represented by P(A).
• If A is set having elements {a, b}. Then the power set of A will be;
• P(A) = {∅, {a}, {b}, {a, b}}
• For example;
If A = {p, q} then all the subsets of A will be
P(A) = {∅, {p}, {q}, {p, q}}
Number of elements of P(A) = n[P(A)] = 4 =2^2
In general, n[P(A)] = 2^m where m is the number of elements in set A.
Sep 2021 Unit 18- Discrete Mathematics 16
Set Theory
• Universal Set
• A set which contains all the elements of other given sets is called
a universal set. The symbol for denoting a universal set is ∪ or ξ.
• For example;
If A = {1, 2, 3} B = {2, 3, 4} C = {3, 5, 7}
then U = {1, 2, 3, 4, 5, 7}
[Here A ⊆ U, B ⊆ U, C ⊆ U and U ⊇ A, U ⊇ B, U ⊇ C]
Set Theory
• Set Operations
• The union of two sets is a set containing all
elements that are in A or in B
• For example;
{1,2}∪{2,3}={1,2,3}
Thus, we can write x∈(A∪B) if and only
if (x∈A) or (x∈B)
Note that A∪B=B∪A
Sep 2021 Unit 18- Discrete Mathematics 17
Set Theory
• Set Operations
The intersection of two
sets A and B, denoted by A∩B,
consists of all elements that are both
in A and B
• For example;
{1,2}∩{2,3}={2}
Sep 2021 Unit 18- Discrete Mathematics 18
Set Theory
• Set Operations
The complement of a set A,
denoted by Ac or A¯ is the set of
all elements that are in the
universal set S but are not in A
Sep 2021 Unit 18- Discrete Mathematics 19
Set Theory
• Set Operations
The difference (subtraction) is
defined as follows. The
set A−B consists of elements that
are in A but not in B
For example
A={1,2,3} and B={3,5},
then A−B={1,2}.
Sep 2021 Unit 18- Discrete Mathematics 20
i
Set Theory
• Set Operations
i.e., their intersection is the empty
set, A∩B=∅A∩B=∅.
Sep 2021 Unit 18- Discrete Mathematics 21
i
Two sets A and B are mutually
exclusive or disjoint if they do not have
any shared elements;
Set Theory
A Cartesian product
of two sets A and B, written as A×B, is the
set containing ordered pairs from A and B.
That is, if C=A×B, then each element
of C is of the form (x,y),
where x∈A and y∈B:
A×B={(x,y)|x∈A and y∈B}.
Sep 2021 Unit 18- Discrete Mathematics 22
i
For example,
If A={1,2,3} and B={H,T},
then
A×B={(1,H),(1,T),(2,H),(2,T)
,(3,H),(3,T)}.
A×B is not the same as B×A.

More Related Content

Similar to Lecture 1- DM Intro.pptx

Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematicNaralaswapna
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set TheoryUsama ahmad
 
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
 
Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Amr Rashed
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Manik Bhola
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure Abdullah Jan
 
1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptx1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptxmxian444
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdfAneeshRenu
 
set an introduction.pptx
set an introduction.pptxset an introduction.pptx
set an introduction.pptxhoneybal egipto
 
Set Theory
Set TheorySet Theory
Set Theoryitutor
 

Similar to Lecture 1- DM Intro.pptx (20)

Set theory
Set theorySet theory
Set theory
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematic
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set Theory
 
discrete maths notes.ppt
discrete maths notes.pptdiscrete maths notes.ppt
discrete maths notes.ppt
 
Set Theory
Set Theory Set Theory
Set Theory
 
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
 
Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1
 
2.1 Sets
2.1 Sets2.1 Sets
2.1 Sets
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptx1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptx
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
sets.pptx
sets.pptxsets.pptx
sets.pptx
 
maths
mathsmaths
maths
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
Set concepts
Set conceptsSet concepts
Set concepts
 
set an introduction.pptx
set an introduction.pptxset an introduction.pptx
set an introduction.pptx
 
Set Theory
Set TheorySet Theory
Set Theory
 
SETS PPT-XI.pptx
SETS PPT-XI.pptxSETS PPT-XI.pptx
SETS PPT-XI.pptx
 

Recently uploaded

Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Recently uploaded (20)

Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
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
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

Lecture 1- DM Intro.pptx

  • 2. Why Mathematics? Design efficient computer systems.  How did Google manage to build a fast search engine?  What is the foundation of internet security? algorithms, data structures, database, parallel computing, distributed systems, cryptography, computer networks… Logic, number theory, counting, set, graph theory…
  • 3. 3 What Is Discrete Mathematics? • What it isn’t: continuous • Discrete: consisting of distinct or unconnected elements • Countably Infinite • Definition Discrete Mathematics • Discrete Mathematics is a collection of mathematical topics that examine and use finite or countably infinite mathematical objects.
  • 4. What is Discrete Mathematics? • Discrete mathematics is the branch of mathematics handling objects that only considers distinct, separated values. • It is steadily being applied in the multiple domains of mathematics and computer science. It is accounted as a very effective approach for developing and problem-solving strength. • Discrete Mathematics focuses on the systematic study of Mathematical structures that are essentially discrete in nature and does not demand the belief of continuity.
  • 5. What is Discrete Mathematics? • In simple words, discrete mathematics gives an individual the ability to understand mathematical language that can be learned through various branches of it.
  • 6. Set Theory • A set is a collection of some items (elements). We often use capital letters to denote a set. To define a set we can simply list all the elements in curly brackets { } separated by commas. • for example to define a set A that consists of the two elements ♣ and ♢, we write A={♣,♢} • To say that ♢ belongs to A, we write ♢∈A, where "∈" is pronounced "belongs to." To say that an element does not belong to a set, we use ∉. For example, we may write ♡∉A. • Note that ordering does not matter, so the two sets {♣,♢}{♣,♢} and {♢,♣}{♢,♣} are equal. A set is a collection of things (elements).
  • 8. Set Theory Set Builder Notation • We can also define a set by mathematically stating the properties satisfied by the elements in the set. In particular, we may write • A={x|x satisfies some property}A={x|x satisfies some property} or A={x:x satisfies some property}A={x:x satisfies some property} The symbols "|" and ":" are pronounced "such that." Example •If the set C is defined as C={x|x∈Z,−2≤x<10}C={x|x∈Z,−2≤x<10}, then C={−2,−1,0,⋯,9} • If the set D is defined as D={x2|x∈N}D={x2|x∈N}, then D={1,4,9,16,⋯}D={1,4,9,16,⋯}. •The set of rational numbers can be defined as Q={a/b|a,b∈Z,b≠0}Q={ab|a,b∈Z,b≠0}.
  • 9. Sep 2021 Unit 18- Discrete Mathematics 9 Set Theory 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, …}
  • 10. Sep 2021 Unit 18- Discrete Mathematics 10 Set Theory 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”
  • 11. Set Theory • Venn Diagrams Venn diagrams are very useful in visualizing relation between sets. In a Venn diagram any set is depicted by a closed region. • In this figure, the big rectangle shows the universal set S. The shaded area shows another set A
  • 12. Set Theory 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. • Useful rules: •   A for any set A • A  A for any set A • Equivalently, we say B is a superset of A, or B ⊇ A. . •Examples: Venn Diagram for two sets A and B, where B⊂A.
  • 13. Set Theory • Proper Subsets Set A is considered to be a proper subset of Set B if Set B contains at least one element that is not present in Set A. • A proper subset is denoted by ⊂ • If A and B are two sets, then A is called the proper subset of B if A ⊆ B but B ⊇ A i.e., A ≠ B example; 1) A = {1, 2, 3, 4}, Here n(A) = 4, B = {1, 2, 3, 4, 5}, Here n(B) = 5 We observe that, all the elements of A are present in B but the element ‘5’ of B is not present in A. So, we say that A is a proper subset of B. Symbolically, we write it as A ⊂ B example; • 2. A = {p, q, r} B = {p, q, r, s, t} Here A is a proper subset of B as all the elements of set A are in set B and also A ≠ B. Notes: • No set is a proper subset of itself. • Null set or ∅ is a proper subset of every set. Sep 2021 Unit 18- Discrete Mathematics 13
  • 14. Set Theory • How many subsets and proper subsets does a set have? If a set has “n” elements, then the number of subset of the given set is 2n And the number of proper subsets of the given subset is given by 2n-1. Example If set A has the elements, A = {a, b}, then what is the subset & proper subset of the given set?
  • 15. Sep 2021 Unit 18- Discrete Mathematics 15 Set Theory • Power Set • The power set is said to be the collection of all the subsets. It is represented by P(A). • If A is set having elements {a, b}. Then the power set of A will be; • P(A) = {∅, {a}, {b}, {a, b}} • For example; If A = {p, q} then all the subsets of A will be P(A) = {∅, {p}, {q}, {p, q}} Number of elements of P(A) = n[P(A)] = 4 =2^2 In general, n[P(A)] = 2^m where m is the number of elements in set A.
  • 16. Sep 2021 Unit 18- Discrete Mathematics 16 Set Theory • Universal Set • A set which contains all the elements of other given sets is called a universal set. The symbol for denoting a universal set is ∪ or ξ. • For example; If A = {1, 2, 3} B = {2, 3, 4} C = {3, 5, 7} then U = {1, 2, 3, 4, 5, 7} [Here A ⊆ U, B ⊆ U, C ⊆ U and U ⊇ A, U ⊇ B, U ⊇ C]
  • 17. Set Theory • Set Operations • The union of two sets is a set containing all elements that are in A or in B • For example; {1,2}∪{2,3}={1,2,3} Thus, we can write x∈(A∪B) if and only if (x∈A) or (x∈B) Note that A∪B=B∪A Sep 2021 Unit 18- Discrete Mathematics 17
  • 18. Set Theory • Set Operations The intersection of two sets A and B, denoted by A∩B, consists of all elements that are both in A and B • For example; {1,2}∩{2,3}={2} Sep 2021 Unit 18- Discrete Mathematics 18
  • 19. Set Theory • Set Operations The complement of a set A, denoted by Ac or A¯ is the set of all elements that are in the universal set S but are not in A Sep 2021 Unit 18- Discrete Mathematics 19
  • 20. Set Theory • Set Operations The difference (subtraction) is defined as follows. The set A−B consists of elements that are in A but not in B For example A={1,2,3} and B={3,5}, then A−B={1,2}. Sep 2021 Unit 18- Discrete Mathematics 20 i
  • 21. Set Theory • Set Operations i.e., their intersection is the empty set, A∩B=∅A∩B=∅. Sep 2021 Unit 18- Discrete Mathematics 21 i Two sets A and B are mutually exclusive or disjoint if they do not have any shared elements;
  • 22. Set Theory A Cartesian product of two sets A and B, written as A×B, is the set containing ordered pairs from A and B. That is, if C=A×B, then each element of C is of the form (x,y), where x∈A and y∈B: A×B={(x,y)|x∈A and y∈B}. Sep 2021 Unit 18- Discrete Mathematics 22 i For example, If A={1,2,3} and B={H,T}, then A×B={(1,H),(1,T),(2,H),(2,T) ,(3,H),(3,T)}. A×B is not the same as B×A.