SlideShare a Scribd company logo
1 of 25
Discrete Mathematics
SETS
R.RajaSangeetha
Assistant Professor
Department of information technology
2
Outline
 Introduction
 Sets
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
 It is assumed that you have studied
set theory before.
 The remaining slides in this section
are for your review. They will not
all be covered in class.
 If you need extra help in this area,
a special help session will be
scheduled.
5
Sets: Learning Objectives
 Learn about sets
 Explore various operations on sets
 Become familiar with Venn diagrams
 Learn how to represent sets in computer
memory
 Learn how to implement set operations in
programs
© Discrete Mathematical
Structures: Theory and
Applications 6
Sets
 Definition: Well-defined collection of distinct objects
 Members or Elements: part of the collection
 Roster Method: Description of a set by listing the
elements, enclosed with braces
 Examples:
 Vowels = {a,e,i,o,u}
 Primary colors = {red, blue, yellow}
 Membership examples
 “a belongs to the set of Vowels” is written as:
a  Vowels
 “j does not belong to the set of Vowels:
j  Vowels
© Discrete Mathematical
Structures: Theory and
Applications 7
Sets
 Set-builder method
 A = { x | x  S, P(x) } or A = { x  S | P(x) }
 A is the set of all elements x of S, such that x
satisfies the property P
 Example:
 If X = {2,4,6,8,10}, then in set-builder
notation, X can be described as
X = {n  Z | n is even and 2  n  10}
© Discrete Mathematical
Structures: Theory and
Applications 8
Sets
 Standard Symbols which denote sets of numbers
 N : The set of all natural numbers (i.e.,all positive integers)
 Z : The set of all integers
 Z+ : The set of all positive integers
 Z* : The set of all nonzero integers
 E : The set of all even integers
 Q : The set of all rational numbers
 Q* : The set of all nonzero rational numbers
 Q+ : The set of all positive rational numbers
 R : The set of all real numbers
 R* : The set of all nonzero real numbers
 R+ : The set of all positive real numbers
 C : The set of all complex numbers
 C* : The set of all nonzero complex numbers
© Discrete Mathematical
Structures: Theory and
Applications 9
Sets
 Subsets
 “X is a subset of Y” is written as X  Y
 “X is not a subset of Y” is written as X Y
 Example:
 X = {a,e,i,o,u}, Y = {a, i, u} and
Z= {b,c,d,f,g}
 Y  X, since every element of Y is an element of X
 Y Z, since a  Y, but a  Z
© Discrete Mathematical
Structures: Theory and
Applications 10
Sets
 Superset
 X and Y are sets. If X  Y, then “X is contained in
Y” or “Y contains X” or Y is a superset of X,
written Y  X
 Proper Subset
 X and Y are sets. X is a proper subset of Y if X 
Y and there exists at least one element in Y that
is not in X. This is written X  Y.
 Example:
 X = {a,e,i,o,u}, Y = {a,e,i,o,u,y}
 X  Y , since y  Y, but y  X
© Discrete Mathematical
Structures: Theory and
Applications 11
Sets
 Set Equality
 X and Y are sets. They are said to be equal if every
element of X is an element of Y and every element of Y is
an element of X, i.e. X  Y and Y  X
 Examples:
 {1,2,3} = {2,3,1}
 X = {red, blue, yellow} and Y = {c | c is a primary
color} Therefore, X=Y
 Empty (Null) Set
 A Set is Empty (Null) if it contains no elements.
 The Empty Set is written as 
 The Empty Set is a subset of every set
© Discrete Mathematical
Structures: Theory and
Applications 12
Sets
 Finite and Infinite Sets
 X is a set. If there exists a nonnegative integer n such
that X has n elements, then X is called a finite set with n
elements.
 If a set is not finite, then it is an infinite set.
 Examples:
 Y = {1,2,3} is a finite set
 P = {red, blue, yellow} is a finite set
 E , the set of all even integers, is an infinite set
  , the Empty Set, is a finite set with 0 elements
© Discrete Mathematical
Structures: Theory and
Applications 13
Sets
 Cardinality of Sets
 Let S be a finite set with n distinct elements,
where n ≥ 0. Then |S| = n , where the
cardinality (number of elements) of S is n
 Example:
 If P = {red, blue, yellow}, then |P| = 3
 Singleton
 A set with only one element is a singleton
 Example:
 H = { 4 }, |H| = 1, H is a singleton
14
Sets
 Power Set
 For any set X ,the power set of X ,written P(X),is
the set of all subsets of X
 Example:
 If X = {red, blue, yellow}, then P(X) = {  ,
{red}, {blue}, {yellow}, {red,blue}, {red,
yellow}, {blue, yellow}, {red, blue, yellow} }
 Universal Set
 An arbitrarily chosen, but fixed set
15
Sets
 Venn Diagrams
 Abstract visualization
of a Universal set, U
as a rectangle, with all
subsets of U shown as
circles.
 Shaded portion
represents the
corresponding set
 Example:
 In Figure 1, Set X,
shaded, is a subset
of the Universal set,
U
16
Set Operations and Venn
Diagrams
 Union of Sets
Example: If X = {1,2,3,4,5} and Y = {5,6,7,8,9}, then
XUY = {1,2,3,4,5,6,7,8,9}
© Discrete Mathematical
Structures: Theory and
Applications 17
Sets
 Intersection of Sets
Example: If X = {1,2,3,4,5} and Y = {5,6,7,8,9}, then X ∩ Y = {5}
18
Sets
 Disjoint Sets
Example: If X = {1,2,3,4,} and Y = {6,7,8,9}, then X ∩ Y = 
19
Sets
 Difference
• Example: If X = {a,b,c,d} and Y =
{c,d,e,f}, then X – Y = {a,b} and Y – X =
{e,f}
20
 Complement
The complement of a set X with respect to a universal set U,
denoted by , is defined to be = {x |x  U, but x  X}
Sets
X
Example: If U = {a,b,c,d,e,f} and X = {c,d,e,f}, then = {a,b}
X
X
21
Sets
22
Sets
 Ordered Pair
 X and Y are sets. If x  X and y  Y, then an
ordered pair is written (x,y)
 Order of elements is important. (x,y) is not
necessarily equal to (y,x)
 Cartesian Product
 The Cartesian product of two sets X and Y ,written X
× Y ,is the set
 X × Y ={(x,y)|x ∈ X , y ∈ Y}
 For any set X, X ×  =  =  × X
 Example:
 X = {a,b}, Y = {c,d}
 X × Y = {(a,c), (a,d), (b,c), (b,d)}
 Y × X = {(c,a), (d,a), (c,b), (d,b)}
23
24
Computer Representation of Sets
 A Set may be stored in a computer in an array as an
unordered list
 Problem: Difficult to perform operations on the set.
 Linked List
 Solution: use Bit Strings (Bit Map)
 A Bit String is a sequence of 0s and 1s
 Length of a Bit String is the number of digits in the
string
 Elements appear in order in the bit string
 A 0 indicates an element is absent, a 1 indicates
that the element is present
 A set may be implemented as a file
25
Computer Implementation of Set
Operations
 Bit Map
 File
 Operations
 Intersection
 Union
 Element of
 Difference
 Complement
 Power Set

More Related Content

What's hot

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
 
Theorems on polynomial functions
Theorems on polynomial functionsTheorems on polynomial functions
Theorems on polynomial functionsLeo Crisologo
 
Math 4 graphing rational functions
Math 4 graphing rational functionsMath 4 graphing rational functions
Math 4 graphing rational functionsLeo Crisologo
 
Discrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityDiscrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityWongyos Keardsri
 
An approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansAn approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansijsc
 
1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear Systems1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear SystemsCeni Babaoglu, PhD
 
Introduction to Stochastic calculus
Introduction to Stochastic calculusIntroduction to Stochastic calculus
Introduction to Stochastic calculusAshwin Rao
 
2 linear equations in x&y lines x
2 linear equations in x&y lines x2 linear equations in x&y lines x
2 linear equations in x&y lines xTzenma
 
Algebras for programming languages
Algebras for programming languagesAlgebras for programming languages
Algebras for programming languagesYoshihiro Mizoguchi
 
Defining Functions on Equivalence Classes
Defining Functions on Equivalence ClassesDefining Functions on Equivalence Classes
Defining Functions on Equivalence ClassesLawrence Paulson
 
Theory of Relational Calculus and its Formalization
Theory of Relational Calculus and its FormalizationTheory of Relational Calculus and its Formalization
Theory of Relational Calculus and its FormalizationYoshihiro Mizoguchi
 
Lecture 12 orhogonality - 6.1 6.2 6.3
Lecture 12   orhogonality - 6.1 6.2 6.3Lecture 12   orhogonality - 6.1 6.2 6.3
Lecture 12 orhogonality - 6.1 6.2 6.3njit-ronbrown
 
A Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational CalculusA Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational CalculusYoshihiro Mizoguchi
 
Class7 converted
Class7 convertedClass7 converted
Class7 convertedshouryasree
 

What's hot (20)

Set theory
Set theorySet theory
Set theory
 
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, ...
 
Theorems on polynomial functions
Theorems on polynomial functionsTheorems on polynomial functions
Theorems on polynomial functions
 
Math 4 graphing rational functions
Math 4 graphing rational functionsMath 4 graphing rational functions
Math 4 graphing rational functions
 
Discrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityDiscrete-Chapter 07 Probability
Discrete-Chapter 07 Probability
 
An approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansAn approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-means
 
1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear Systems1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear Systems
 
Introduction to Stochastic calculus
Introduction to Stochastic calculusIntroduction to Stochastic calculus
Introduction to Stochastic calculus
 
2 linear equations in x&y lines x
2 linear equations in x&y lines x2 linear equations in x&y lines x
2 linear equations in x&y lines x
 
Stochastic calculus
Stochastic calculus Stochastic calculus
Stochastic calculus
 
Algebras for programming languages
Algebras for programming languagesAlgebras for programming languages
Algebras for programming languages
 
Defining Functions on Equivalence Classes
Defining Functions on Equivalence ClassesDefining Functions on Equivalence Classes
Defining Functions on Equivalence Classes
 
Sets
SetsSets
Sets
 
Theory of Relational Calculus and its Formalization
Theory of Relational Calculus and its FormalizationTheory of Relational Calculus and its Formalization
Theory of Relational Calculus and its Formalization
 
Lecture 12 orhogonality - 6.1 6.2 6.3
Lecture 12   orhogonality - 6.1 6.2 6.3Lecture 12   orhogonality - 6.1 6.2 6.3
Lecture 12 orhogonality - 6.1 6.2 6.3
 
A Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational CalculusA Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational Calculus
 
03 Machine Learning Linear Algebra
03 Machine Learning Linear Algebra03 Machine Learning Linear Algebra
03 Machine Learning Linear Algebra
 
Class7 converted
Class7 convertedClass7 converted
Class7 converted
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Aieee mathematics- 2010
Aieee mathematics- 2010Aieee mathematics- 2010
Aieee mathematics- 2010
 

Similar to Discrete Sets

Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Set Theory - Unit -II (Mathematical Foundation Of Computer Science).pptx
Set Theory - Unit -II (Mathematical Foundation  Of  Computer Science).pptxSet Theory - Unit -II (Mathematical Foundation  Of  Computer Science).pptx
Set Theory - Unit -II (Mathematical Foundation Of Computer Science).pptxKalirajMariappan
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure Abdullah Jan
 
Presentation on set in discrete mathe
Presentation on set in discrete mathePresentation on set in discrete mathe
Presentation on set in discrete mathetopu93
 
Set Concepts
Set ConceptsSet Concepts
Set Conceptsshbest
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercisesRoshayu Mohamad
 
Definationofset
DefinationofsetDefinationofset
DefinationofsetJoy Saha
 
SETS in Discrete Structure
SETS in Discrete StructureSETS in Discrete Structure
SETS in Discrete StructureNANDINI SHARMA
 
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
 
Set and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNSet and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNbaberexha
 
Set and function.pptx
Set and function.pptxSet and function.pptx
Set and function.pptxahsanalmani2
 
Basic structures of SETS in Discrete Mathematics.
Basic structures of SETS in Discrete Mathematics.Basic structures of SETS in Discrete Mathematics.
Basic structures of SETS in Discrete Mathematics.AbdulRehman378540
 

Similar to Discrete Sets (20)

Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
 
part1.ppt
part1.pptpart1.ppt
part1.ppt
 
discrete maths notes.ppt
discrete maths notes.pptdiscrete maths notes.ppt
discrete maths notes.ppt
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Set Theory - Unit -II (Mathematical Foundation Of Computer Science).pptx
Set Theory - Unit -II (Mathematical Foundation  Of  Computer Science).pptxSet Theory - Unit -II (Mathematical Foundation  Of  Computer Science).pptx
Set Theory - Unit -II (Mathematical Foundation Of Computer Science).pptx
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure
 
Presentation on set in discrete mathe
Presentation on set in discrete mathePresentation on set in discrete mathe
Presentation on set in discrete mathe
 
Set Concepts
Set ConceptsSet Concepts
Set Concepts
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
Discmath
DiscmathDiscmath
Discmath
 
Definationofset
DefinationofsetDefinationofset
Definationofset
 
SETS in Discrete Structure
SETS in Discrete StructureSETS in Discrete Structure
SETS in Discrete Structure
 
Set concepts
Set conceptsSet concepts
Set concepts
 
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
 
Per6 basis2_NUMBER SYSTEMS
Per6 basis2_NUMBER SYSTEMSPer6 basis2_NUMBER SYSTEMS
Per6 basis2_NUMBER SYSTEMS
 
Set and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNSet and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUN
 
4898850.ppt
4898850.ppt4898850.ppt
4898850.ppt
 
Set and function.pptx
Set and function.pptxSet and function.pptx
Set and function.pptx
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Basic structures of SETS in Discrete Mathematics.
Basic structures of SETS in Discrete Mathematics.Basic structures of SETS in Discrete Mathematics.
Basic structures of SETS in Discrete Mathematics.
 

Recently uploaded

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 

Recently uploaded (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 

Discrete Sets

  • 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. 4  It is assumed that you have studied set theory before.  The remaining slides in this section are for your review. They will not all be covered in class.  If you need extra help in this area, a special help session will be scheduled.
  • 5. 5 Sets: Learning Objectives  Learn about sets  Explore various operations on sets  Become familiar with Venn diagrams  Learn how to represent sets in computer memory  Learn how to implement set operations in programs
  • 6. © Discrete Mathematical Structures: Theory and Applications 6 Sets  Definition: Well-defined collection of distinct objects  Members or Elements: part of the collection  Roster Method: Description of a set by listing the elements, enclosed with braces  Examples:  Vowels = {a,e,i,o,u}  Primary colors = {red, blue, yellow}  Membership examples  “a belongs to the set of Vowels” is written as: a  Vowels  “j does not belong to the set of Vowels: j  Vowels
  • 7. © Discrete Mathematical Structures: Theory and Applications 7 Sets  Set-builder method  A = { x | x  S, P(x) } or A = { x  S | P(x) }  A is the set of all elements x of S, such that x satisfies the property P  Example:  If X = {2,4,6,8,10}, then in set-builder notation, X can be described as X = {n  Z | n is even and 2  n  10}
  • 8. © Discrete Mathematical Structures: Theory and Applications 8 Sets  Standard Symbols which denote sets of numbers  N : The set of all natural numbers (i.e.,all positive integers)  Z : The set of all integers  Z+ : The set of all positive integers  Z* : The set of all nonzero integers  E : The set of all even integers  Q : The set of all rational numbers  Q* : The set of all nonzero rational numbers  Q+ : The set of all positive rational numbers  R : The set of all real numbers  R* : The set of all nonzero real numbers  R+ : The set of all positive real numbers  C : The set of all complex numbers  C* : The set of all nonzero complex numbers
  • 9. © Discrete Mathematical Structures: Theory and Applications 9 Sets  Subsets  “X is a subset of Y” is written as X  Y  “X is not a subset of Y” is written as X Y  Example:  X = {a,e,i,o,u}, Y = {a, i, u} and Z= {b,c,d,f,g}  Y  X, since every element of Y is an element of X  Y Z, since a  Y, but a  Z
  • 10. © Discrete Mathematical Structures: Theory and Applications 10 Sets  Superset  X and Y are sets. If X  Y, then “X is contained in Y” or “Y contains X” or Y is a superset of X, written Y  X  Proper Subset  X and Y are sets. X is a proper subset of Y if X  Y and there exists at least one element in Y that is not in X. This is written X  Y.  Example:  X = {a,e,i,o,u}, Y = {a,e,i,o,u,y}  X  Y , since y  Y, but y  X
  • 11. © Discrete Mathematical Structures: Theory and Applications 11 Sets  Set Equality  X and Y are sets. They are said to be equal if every element of X is an element of Y and every element of Y is an element of X, i.e. X  Y and Y  X  Examples:  {1,2,3} = {2,3,1}  X = {red, blue, yellow} and Y = {c | c is a primary color} Therefore, X=Y  Empty (Null) Set  A Set is Empty (Null) if it contains no elements.  The Empty Set is written as   The Empty Set is a subset of every set
  • 12. © Discrete Mathematical Structures: Theory and Applications 12 Sets  Finite and Infinite Sets  X is a set. If there exists a nonnegative integer n such that X has n elements, then X is called a finite set with n elements.  If a set is not finite, then it is an infinite set.  Examples:  Y = {1,2,3} is a finite set  P = {red, blue, yellow} is a finite set  E , the set of all even integers, is an infinite set   , the Empty Set, is a finite set with 0 elements
  • 13. © Discrete Mathematical Structures: Theory and Applications 13 Sets  Cardinality of Sets  Let S be a finite set with n distinct elements, where n ≥ 0. Then |S| = n , where the cardinality (number of elements) of S is n  Example:  If P = {red, blue, yellow}, then |P| = 3  Singleton  A set with only one element is a singleton  Example:  H = { 4 }, |H| = 1, H is a singleton
  • 14. 14 Sets  Power Set  For any set X ,the power set of X ,written P(X),is the set of all subsets of X  Example:  If X = {red, blue, yellow}, then P(X) = {  , {red}, {blue}, {yellow}, {red,blue}, {red, yellow}, {blue, yellow}, {red, blue, yellow} }  Universal Set  An arbitrarily chosen, but fixed set
  • 15. 15 Sets  Venn Diagrams  Abstract visualization of a Universal set, U as a rectangle, with all subsets of U shown as circles.  Shaded portion represents the corresponding set  Example:  In Figure 1, Set X, shaded, is a subset of the Universal set, U
  • 16. 16 Set Operations and Venn Diagrams  Union of Sets Example: If X = {1,2,3,4,5} and Y = {5,6,7,8,9}, then XUY = {1,2,3,4,5,6,7,8,9}
  • 17. © Discrete Mathematical Structures: Theory and Applications 17 Sets  Intersection of Sets Example: If X = {1,2,3,4,5} and Y = {5,6,7,8,9}, then X ∩ Y = {5}
  • 18. 18 Sets  Disjoint Sets Example: If X = {1,2,3,4,} and Y = {6,7,8,9}, then X ∩ Y = 
  • 19. 19 Sets  Difference • Example: If X = {a,b,c,d} and Y = {c,d,e,f}, then X – Y = {a,b} and Y – X = {e,f}
  • 20. 20  Complement The complement of a set X with respect to a universal set U, denoted by , is defined to be = {x |x  U, but x  X} Sets X Example: If U = {a,b,c,d,e,f} and X = {c,d,e,f}, then = {a,b} X X
  • 22. 22 Sets  Ordered Pair  X and Y are sets. If x  X and y  Y, then an ordered pair is written (x,y)  Order of elements is important. (x,y) is not necessarily equal to (y,x)  Cartesian Product  The Cartesian product of two sets X and Y ,written X × Y ,is the set  X × Y ={(x,y)|x ∈ X , y ∈ Y}  For any set X, X ×  =  =  × X  Example:  X = {a,b}, Y = {c,d}  X × Y = {(a,c), (a,d), (b,c), (b,d)}  Y × X = {(c,a), (d,a), (c,b), (d,b)}
  • 23. 23
  • 24. 24 Computer Representation of Sets  A Set may be stored in a computer in an array as an unordered list  Problem: Difficult to perform operations on the set.  Linked List  Solution: use Bit Strings (Bit Map)  A Bit String is a sequence of 0s and 1s  Length of a Bit String is the number of digits in the string  Elements appear in order in the bit string  A 0 indicates an element is absent, a 1 indicates that the element is present  A set may be implemented as a file
  • 25. 25 Computer Implementation of Set Operations  Bit Map  File  Operations  Intersection  Union  Element of  Difference  Complement  Power Set