SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Discrete Structure
Mathematics
Course: Discrete
Structures
(501215-3)
Prepared by : DR. AMR RASHED
PhD in Electronics &
Communication Engineering
References
1-Rosen, Kenneth H. "Discrete Mathematics and
Its Applications.“ seventh edition
2-introduction to set theory
3-rational numbers
4-Introduction to rational and irrational numbers
5-Classification of Numbers
6-SUBSETS AND POWER SETS
Course Content:
Chapter 2: Basic
Structures: Sets,
Functions, Sequences,
Sums, and Matrices
Chapter 8: Advanced
Counting Techniques
Chapter 1: The
Foundations: Logic and
Proofs
Chapter 4: Number
Theory and Cryptography
Chapter 5: Induction and
Recursion
Chapter 6: Counting
Chapter 2
Basic Structures: Sets,
Functions, Sequences,
and Sums
Contents 2.1 Sets
2.2 Set Operations
2.3 Functions
2.4 Sequences and Summations
Set Theory
• Definition 1: A set is an unordered collection of objects
• A={1,2,3}
• Definition 2: Objects in a set are called elements, or members of the
set.
• We write a  A to denote that a is an element of the set A.
• we write a  A to denote that a is not an element of the set A.
• It is common for sets to be denoted using uppercase letters.
• Lowercase letters are usually used to denote elements of sets.
• There are several ways to describe a set. One way is to list all the
members of a set, when this is possible. We use a notation where
all members of the set are listed between braces. For example, the
notation {a, b, c, d} represents the set with the four elements a, b, c,
and d. This way of describing a set is known as the roster method.
.1 .2
.3
Visual
List Notation
• The set V of all vowels in the English alphabet can be
written as
• V = {a, e, i, o, u}
• The set O of odd positive integers less than 10 can be
expressed by
• O = {1, 3, 5, 7, 9}
• Although sets are usually used to group together elements with
common properties, there is nothing that prevents a set from
having seemingly unrelated elements. For instance, {a, 2, Fred,
New Jersey} is the set containing the four elements a, 2, Fred,
and New Jersey.
• Sometimes the roster method is used to describe a set without
listing all its members. Some members of the set are listed, and
then ellipses (. . .) are used when the general pattern of three
elements is obvious.
• The set of positive integers less than 100 can be denoted by {1,
2, 3, . . . , 99}.
Set builder notation
• Another way to describe a set is to use set builder
notation. We characterize all those elements in the
set by stating the property or properties they must
have to be members. For instance, the set O of all
odd positive integers less than 10 can be written as
• O = {x|x is an odd positive integer less than 10}
or O = {x ℤ +|x is odd and x<10}
• Q={…,
1
1
,
1
2
,
1
3
,…} ={
𝑚
𝑛
| m, n ∈ ℤ n≠ 0}
• Even integers:
• 2 ℤ={…,-4,-2,0,2,4,…}={2n | n ∈ ℤ}
Additional points
• Sets can be finite or infinite
• A={1, 2, 3, 4, 5, 6}
• Z+ = 1, 2, 3, 4, … all positive integers
• Repeated elements are listed once
• {a, b, a, c, b, a, c}={a, b, c}
• There is no order in a set
• {3,2,1}={1,2,3}={2,1,3}
.a .b
.c
Number systems
• N={1, 2, 3, …}, or {0,1,2,3,…}natural numbers or counting numbers
• W={0,1,2,3,…},whole numbers
• Z={…,-2, -1, 0, 1, 2, …}, integers
• Z+={1, 2, 3, …}, positive integers, zero is neither positive nor negative
• Q={p/q|pZ, qZ, and q0}, rational numbers (fraction numbers and decimals numbers)
• Q+={xR|x=p/q, for positive integers p and q}
• C, the set of complex numbers.
• R, real numbers, i = −1 is not real number
• R+, the set of positive real numbers
• Terminating decimal numbers (finite) and recurring decimal numbers( infinite and repeating)
• Irrational number never terminate and never repeated, there is only one irrational number between any two rational
numbers.
• To get irrational numbers (square ,sum with irrational (rational+irr) , prod with irrational (rational *irr))
Rational numbers
• Rational numbers=
𝑃
𝑄
p,q are integers , q≠ 0
• 3=
9
3
=
3
1
also 2.5=
25
10
=
5
2
• Terminating decimal (finite)
• 2.5, 3.1, 4.65
• Recurring decimal (infinite and repeating)
•
2
3
= 0.666 = 0.6
•
1
6
= 0.1666 = 0.16
• Test :
37
250
=
37
5∗5∗2∗5
Common sets
Intervals
• Recall the notation for intervals of real numbers. When a and b are
real numbers with a < b, we write
• [a, b] = {x | a ≤ x ≤ b} closed interval
• [a, b) = {x | a ≤ x < b}
• (a, b] = {x |a < x ≤ b}
• (a, b) = {x |a < x < b} open interval
Example
• The set {N,Z,Q,R} is a set containing four elements, each of which is
a set. The four elements of this set are N, the set of natural
numbers; Z, the set of integers; Q, the set of rational numbers; and
R, the set of real numbers.
• Remark: Note that the concept of a datatype, or type, in computer
science is built upon the concept of a set. In particular, a datatype
or type is the name of a set, together with a set of operations that
can be performed on objects from that set. For example, boolean is
the name of the set {0, 1} together with operators on one or more
elements of this set, such as AND, OR, and NOT.
Definition 3
• Definition 3: Two sets are equal if and only if they
have the same elements.
A=B if x(x  A  x  B)
• {1, 3, 5} and {3, 5, 1} are equal
• The sets {1, 3, 5} and {3, 5, 1} are equal, because they have the
same elements. Note that the order in which the elements of a set
are listed does not matter. Note also that it does not matter if an
element of a set is listed more than once, so {1, 3, 3, 3, 5, 5, 5, 5} is
the same as the set {1, 3, 5} because they have the same elements.
The Empty set
• Empty set (null set):  (or {})
• There is a special set that has no elements. This set is called the
empty set or null set, and is denoted by ∅. The empty set can also
be denoted by { } (that is, we represent the empty set with a pair of
braces that encloses all the elements in this set). Often, a set of
elements with certain properties turns out to be the null set. For
instance, the set of all positive integers that are greater than their
squares is the null set.
• A set with one element is called a singleton set. A common error is
to confuse the empty set ∅ with the set {∅}, which is a singleton set.
The single element of the set {∅} is the empty set itself ! A useful
analogy for remembering this difference is to think of folders in a
computer file system. The empty set can be thought of as an empty
folder and the set consisting of just the empty set can be thought of
as a folder with exactly one folder inside, namely, the empty folder.
Venn diagram
• Venn diagram to graphically represent sets
• Universal set U: rectangle
• Sets: circles
• Elements of a set: point
FIGURE 1 Venn Diagram for the Set of Vowels.
Subsets
• Definition 4: The set A is a subset of B if and only if
every element of A is also an element of B.
A  B if x(x  A  x  B)
• Theorem 1: For every set S,
(1)   S and (2) S  S.
• Proper subset: A is a proper subset of B, we note
A  B, if
x(x  A  x  B)  x(x  B  x  A)
Subsets
• If AB and BA, then A=B
• Sets may have other sets as members
• A={, {a}, {b}, {a,b}}
B={x|x is a subset of the set {a,b}}
• A=B
FIGURE 2 Venn Diagram Showing that A Is a Subset of B.
The Size of a Set
• Definition 5: If there are exactly n distinct members
in the set S (n is a nonnegative integer), we say
that S is a finite set and that n is the cardinality of
S.
• |S|= n
• ||=0 , |{}|=1 ,|{ }|=0
• Definition 6: a set is infinite if it’s not finite.
• Z+
Elements and cardinality
• Let C={yellow, blue, red}
• Yellow is an element of C ,yellow∈ 𝐶
• Green is not an element of C, Green ∉ 𝐶
• The cardinality (size) of C is 3 ,|c|=3
Exercise
• List the elements of D. D={x ∈ ℤ+
| x<6}
• 1,2,3,4,5
• What is the cardinality of D?
• |D|=5
• What is the cardinality of {,{a,b}}
• 2
• What is the cardinality of {,{a},{b}}
• 3
• What is the cardinality of {,a,{b}}
• 3

Weitere ähnliche Inhalte

Was ist angesagt?

4 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-24 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-2Malika khalil
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relationsnszakir
 
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
 
2.1 Union, intersection and complement
2.1 Union, intersection and complement2.1 Union, intersection and complement
2.1 Union, intersection and complementJan Plaza
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theoryTarun Gehlot
 
Eigen values and eigen vectors
Eigen values and eigen vectorsEigen values and eigen vectors
Eigen values and eigen vectorstirath prajapati
 
The principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariThe principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariDeogiri College Student
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & DimensionManikanta satyala
 
Partial-Orderings in Discrete Mathematics
 Partial-Orderings in Discrete Mathematics Partial-Orderings in Discrete Mathematics
Partial-Orderings in Discrete MathematicsMeghaj Mallick
 
Bisection method
Bisection methodBisection method
Bisection methoduis
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure Abdullah Jan
 
Function and Its Types.
Function and Its Types.Function and Its Types.
Function and Its Types.Awais Bakshy
 
Rank nullity theorem
Rank nullity theoremRank nullity theorem
Rank nullity theoremRoqui Gonzaga
 

Was ist angesagt? (20)

4 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-24 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-2
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
lattice
 lattice lattice
lattice
 
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, ...
 
Sets and relations
Sets and relationsSets and relations
Sets and relations
 
2.1 Union, intersection and complement
2.1 Union, intersection and complement2.1 Union, intersection and complement
2.1 Union, intersection and complement
 
Sets.pptx
Sets.pptxSets.pptx
Sets.pptx
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
 
Eigen values and eigen vectors
Eigen values and eigen vectorsEigen values and eigen vectors
Eigen values and eigen vectors
 
Relations
RelationsRelations
Relations
 
Concept of set.
Concept of set.Concept of set.
Concept of set.
 
The principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvariThe principle of inclusion and exclusion for three sets by sharvari
The principle of inclusion and exclusion for three sets by sharvari
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & Dimension
 
Partial-Orderings in Discrete Mathematics
 Partial-Orderings in Discrete Mathematics Partial-Orderings in Discrete Mathematics
Partial-Orderings in Discrete Mathematics
 
Bisection method
Bisection methodBisection method
Bisection method
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure
 
Function and Its Types.
Function and Its Types.Function and Its Types.
Function and Its Types.
 
Rank nullity theorem
Rank nullity theoremRank nullity theorem
Rank nullity theorem
 
Set Theory
Set Theory Set Theory
Set Theory
 

Ähnlich wie Discrete Structure Mathematics lecture 1

Ähnlich wie Discrete Structure Mathematics lecture 1 (20)

set an introduction.pptx
set an introduction.pptxset an introduction.pptx
set an introduction.pptx
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
sets.pptx
sets.pptxsets.pptx
sets.pptx
 
Set theory
Set theorySet 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
 
Blackbox task 2
Blackbox task 2Blackbox task 2
Blackbox task 2
 
Set theory
Set theorySet theory
Set theory
 
INTRODUCTION TO SETS.pptx
INTRODUCTION TO SETS.pptxINTRODUCTION TO SETS.pptx
INTRODUCTION TO SETS.pptx
 
Set and function.pptx
Set and function.pptxSet and function.pptx
Set and function.pptx
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set Theory
 
Theory of Computation "Chapter 1, introduction"
Theory of Computation "Chapter 1, introduction"Theory of Computation "Chapter 1, introduction"
Theory of Computation "Chapter 1, introduction"
 
1. sets
1. sets1. sets
1. sets
 
7-Sets-1.ppt
7-Sets-1.ppt7-Sets-1.ppt
7-Sets-1.ppt
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Joy Of Mathematics Ch 1 Sets.pptx
Joy Of Mathematics Ch 1 Sets.pptxJoy Of Mathematics Ch 1 Sets.pptx
Joy Of Mathematics Ch 1 Sets.pptx
 
maths
mathsmaths
maths
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
 
1. set theory
1. set theory1. set theory
1. set theory
 
sets.ppt
sets.pptsets.ppt
sets.ppt
 

Mehr von Amr Rashed

introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentationAmr Rashed
 
Discrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofsDiscrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofsAmr Rashed
 
Discrete Math Chapter: 8 Relations
Discrete Math Chapter: 8 RelationsDiscrete Math Chapter: 8 Relations
Discrete Math Chapter: 8 RelationsAmr Rashed
 
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsDiscrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsAmr Rashed
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learningAmr Rashed
 
Implementation of DNA sequence alignment algorithms using Fpga ,ML,and CNN
Implementation of DNA sequence alignment algorithms  using Fpga ,ML,and CNNImplementation of DNA sequence alignment algorithms  using Fpga ,ML,and CNN
Implementation of DNA sequence alignment algorithms using Fpga ,ML,and CNNAmr Rashed
 
امن نظم المعلومات وامن الشبكات
امن نظم المعلومات وامن الشبكاتامن نظم المعلومات وامن الشبكات
امن نظم المعلومات وامن الشبكاتAmr Rashed
 
Machine learning workshop using Orange datamining framework
Machine learning workshop using Orange datamining frameworkMachine learning workshop using Orange datamining framework
Machine learning workshop using Orange datamining frameworkAmr Rashed
 
مقدمة عن الفيجوال بيسك 9-2019
مقدمة عن الفيجوال بيسك  9-2019مقدمة عن الفيجوال بيسك  9-2019
مقدمة عن الفيجوال بيسك 9-2019Amr Rashed
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Amr Rashed
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning TutorialAmr Rashed
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plottingAmr Rashed
 
License Plate Recognition
License Plate RecognitionLicense Plate Recognition
License Plate RecognitionAmr Rashed
 
Introduction to FPGA, VHDL
Introduction to FPGA, VHDL  Introduction to FPGA, VHDL
Introduction to FPGA, VHDL Amr Rashed
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to MatlabAmr Rashed
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab Amr Rashed
 

Mehr von Amr Rashed (16)

introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
 
Discrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofsDiscrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofs
 
Discrete Math Chapter: 8 Relations
Discrete Math Chapter: 8 RelationsDiscrete Math Chapter: 8 Relations
Discrete Math Chapter: 8 Relations
 
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsDiscrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
Implementation of DNA sequence alignment algorithms using Fpga ,ML,and CNN
Implementation of DNA sequence alignment algorithms  using Fpga ,ML,and CNNImplementation of DNA sequence alignment algorithms  using Fpga ,ML,and CNN
Implementation of DNA sequence alignment algorithms using Fpga ,ML,and CNN
 
امن نظم المعلومات وامن الشبكات
امن نظم المعلومات وامن الشبكاتامن نظم المعلومات وامن الشبكات
امن نظم المعلومات وامن الشبكات
 
Machine learning workshop using Orange datamining framework
Machine learning workshop using Orange datamining frameworkMachine learning workshop using Orange datamining framework
Machine learning workshop using Orange datamining framework
 
مقدمة عن الفيجوال بيسك 9-2019
مقدمة عن الفيجوال بيسك  9-2019مقدمة عن الفيجوال بيسك  9-2019
مقدمة عن الفيجوال بيسك 9-2019
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
License Plate Recognition
License Plate RecognitionLicense Plate Recognition
License Plate Recognition
 
Introduction to FPGA, VHDL
Introduction to FPGA, VHDL  Introduction to FPGA, VHDL
Introduction to FPGA, VHDL
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab
 

Kürzlich hochgeladen

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 

Kürzlich hochgeladen (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 

Discrete Structure Mathematics lecture 1

  • 1. Discrete Structure Mathematics Course: Discrete Structures (501215-3) Prepared by : DR. AMR RASHED PhD in Electronics & Communication Engineering
  • 2. References 1-Rosen, Kenneth H. "Discrete Mathematics and Its Applications.“ seventh edition 2-introduction to set theory 3-rational numbers 4-Introduction to rational and irrational numbers 5-Classification of Numbers 6-SUBSETS AND POWER SETS
  • 3. Course Content: Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, and Matrices Chapter 8: Advanced Counting Techniques Chapter 1: The Foundations: Logic and Proofs Chapter 4: Number Theory and Cryptography Chapter 5: Induction and Recursion Chapter 6: Counting
  • 4. Chapter 2 Basic Structures: Sets, Functions, Sequences, and Sums
  • 5. Contents 2.1 Sets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations
  • 6. Set Theory • Definition 1: A set is an unordered collection of objects • A={1,2,3} • Definition 2: Objects in a set are called elements, or members of the set. • We write a  A to denote that a is an element of the set A. • we write a  A to denote that a is not an element of the set A. • It is common for sets to be denoted using uppercase letters. • Lowercase letters are usually used to denote elements of sets. • There are several ways to describe a set. One way is to list all the members of a set, when this is possible. We use a notation where all members of the set are listed between braces. For example, the notation {a, b, c, d} represents the set with the four elements a, b, c, and d. This way of describing a set is known as the roster method. .1 .2 .3 Visual List Notation
  • 7. • The set V of all vowels in the English alphabet can be written as • V = {a, e, i, o, u} • The set O of odd positive integers less than 10 can be expressed by • O = {1, 3, 5, 7, 9} • Although sets are usually used to group together elements with common properties, there is nothing that prevents a set from having seemingly unrelated elements. For instance, {a, 2, Fred, New Jersey} is the set containing the four elements a, 2, Fred, and New Jersey. • Sometimes the roster method is used to describe a set without listing all its members. Some members of the set are listed, and then ellipses (. . .) are used when the general pattern of three elements is obvious. • The set of positive integers less than 100 can be denoted by {1, 2, 3, . . . , 99}.
  • 8. Set builder notation • Another way to describe a set is to use set builder notation. We characterize all those elements in the set by stating the property or properties they must have to be members. For instance, the set O of all odd positive integers less than 10 can be written as • O = {x|x is an odd positive integer less than 10} or O = {x ℤ +|x is odd and x<10} • Q={…, 1 1 , 1 2 , 1 3 ,…} ={ 𝑚 𝑛 | m, n ∈ ℤ n≠ 0} • Even integers: • 2 ℤ={…,-4,-2,0,2,4,…}={2n | n ∈ ℤ}
  • 9. Additional points • Sets can be finite or infinite • A={1, 2, 3, 4, 5, 6} • Z+ = 1, 2, 3, 4, … all positive integers • Repeated elements are listed once • {a, b, a, c, b, a, c}={a, b, c} • There is no order in a set • {3,2,1}={1,2,3}={2,1,3} .a .b .c
  • 10. Number systems • N={1, 2, 3, …}, or {0,1,2,3,…}natural numbers or counting numbers • W={0,1,2,3,…},whole numbers • Z={…,-2, -1, 0, 1, 2, …}, integers • Z+={1, 2, 3, …}, positive integers, zero is neither positive nor negative • Q={p/q|pZ, qZ, and q0}, rational numbers (fraction numbers and decimals numbers) • Q+={xR|x=p/q, for positive integers p and q} • C, the set of complex numbers. • R, real numbers, i = −1 is not real number • R+, the set of positive real numbers • Terminating decimal numbers (finite) and recurring decimal numbers( infinite and repeating) • Irrational number never terminate and never repeated, there is only one irrational number between any two rational numbers. • To get irrational numbers (square ,sum with irrational (rational+irr) , prod with irrational (rational *irr))
  • 11.
  • 12. Rational numbers • Rational numbers= 𝑃 𝑄 p,q are integers , q≠ 0 • 3= 9 3 = 3 1 also 2.5= 25 10 = 5 2 • Terminating decimal (finite) • 2.5, 3.1, 4.65 • Recurring decimal (infinite and repeating) • 2 3 = 0.666 = 0.6 • 1 6 = 0.1666 = 0.16 • Test : 37 250 = 37 5∗5∗2∗5
  • 14.
  • 15. Intervals • Recall the notation for intervals of real numbers. When a and b are real numbers with a < b, we write • [a, b] = {x | a ≤ x ≤ b} closed interval • [a, b) = {x | a ≤ x < b} • (a, b] = {x |a < x ≤ b} • (a, b) = {x |a < x < b} open interval
  • 16. Example • The set {N,Z,Q,R} is a set containing four elements, each of which is a set. The four elements of this set are N, the set of natural numbers; Z, the set of integers; Q, the set of rational numbers; and R, the set of real numbers. • Remark: Note that the concept of a datatype, or type, in computer science is built upon the concept of a set. In particular, a datatype or type is the name of a set, together with a set of operations that can be performed on objects from that set. For example, boolean is the name of the set {0, 1} together with operators on one or more elements of this set, such as AND, OR, and NOT.
  • 17. Definition 3 • Definition 3: Two sets are equal if and only if they have the same elements. A=B if x(x  A  x  B) • {1, 3, 5} and {3, 5, 1} are equal • The sets {1, 3, 5} and {3, 5, 1} are equal, because they have the same elements. Note that the order in which the elements of a set are listed does not matter. Note also that it does not matter if an element of a set is listed more than once, so {1, 3, 3, 3, 5, 5, 5, 5} is the same as the set {1, 3, 5} because they have the same elements.
  • 18. The Empty set • Empty set (null set):  (or {}) • There is a special set that has no elements. This set is called the empty set or null set, and is denoted by ∅. The empty set can also be denoted by { } (that is, we represent the empty set with a pair of braces that encloses all the elements in this set). Often, a set of elements with certain properties turns out to be the null set. For instance, the set of all positive integers that are greater than their squares is the null set. • A set with one element is called a singleton set. A common error is to confuse the empty set ∅ with the set {∅}, which is a singleton set. The single element of the set {∅} is the empty set itself ! A useful analogy for remembering this difference is to think of folders in a computer file system. The empty set can be thought of as an empty folder and the set consisting of just the empty set can be thought of as a folder with exactly one folder inside, namely, the empty folder.
  • 19. Venn diagram • Venn diagram to graphically represent sets • Universal set U: rectangle • Sets: circles • Elements of a set: point FIGURE 1 Venn Diagram for the Set of Vowels.
  • 20. Subsets • Definition 4: The set A is a subset of B if and only if every element of A is also an element of B. A  B if x(x  A  x  B) • Theorem 1: For every set S, (1)   S and (2) S  S. • Proper subset: A is a proper subset of B, we note A  B, if x(x  A  x  B)  x(x  B  x  A)
  • 21.
  • 22. Subsets • If AB and BA, then A=B • Sets may have other sets as members • A={, {a}, {b}, {a,b}} B={x|x is a subset of the set {a,b}} • A=B FIGURE 2 Venn Diagram Showing that A Is a Subset of B.
  • 23. The Size of a Set • Definition 5: If there are exactly n distinct members in the set S (n is a nonnegative integer), we say that S is a finite set and that n is the cardinality of S. • |S|= n • ||=0 , |{}|=1 ,|{ }|=0 • Definition 6: a set is infinite if it’s not finite. • Z+
  • 24. Elements and cardinality • Let C={yellow, blue, red} • Yellow is an element of C ,yellow∈ 𝐶 • Green is not an element of C, Green ∉ 𝐶 • The cardinality (size) of C is 3 ,|c|=3
  • 25. Exercise • List the elements of D. D={x ∈ ℤ+ | x<6} • 1,2,3,4,5 • What is the cardinality of D? • |D|=5 • What is the cardinality of {,{a,b}} • 2 • What is the cardinality of {,{a},{b}} • 3 • What is the cardinality of {,a,{b}} • 3