SlideShare a Scribd company logo
Discrete
Mathematics
Set?
A set is said to contain its elements.
A set is an unordered collection of objects, called elements or
members of the set.
{1, 2, 3} is the set containing “1” and “2” and “3.” list the members
between braces.
{1, 1, 2, 3, 3} = {1, 2, 3} since repetition is irrelevant.
{1, 2, 3} = {3, 2, 1} since sets are unordered.
{1,2,3, …, 99} is the set of positive integers less than 100
{1, 2, 3, …} is a way we denote an infinite set (in this case, the
natural numbers).
∅ = {} is the empty set, or the set containing no elements.
Note: ∅ ≠ {∅}
Some examples
• The set V of all vowels in the English alphabet V = {a,
e, i, o, u}.
• The set of positive integers less than 100 can be
denoted by {1, 2, 3, . . . , 99}. ellipses (. . .) are used
when the general pattern of the elements is obvious.
• {a, 2, Fred, New Jersey} is the set containing the four
elements a, 2, Fred, and New Jersey.
Element of Set
• A set is an unordered collection of objects
referred to as elements.
• A set is said to contain its elements. We write
a A to denote that a is an element of the set∈
A.
• The notation a A denotes that a is not an∈
element of the set A.
Try Yourself
• Let A = {1, 3, { { 1,2}, ø},{ø } }. State whether
the following statements are true or not. Give
reason.
• {{1, 2},{ø } } Aϵ
• {1, 4,{ø } } Aϵ
• ø Aϵ
Some Sets
N = {0,1,2,3,…}, the set of natural numbers, non negative integers, (occasionally IN)
Z = { …, -2, -1, 0, 1, 2,3, …), the set of integers
Z+
= {1,2,3,…} set of positive integers
Q = {p/q | p ∈ Z, q ∈Z, and q≠0}, set of rational numbers
R, the set of real numbers
R+, the set of positive real numbers
C, the set of complex numbers.
Set builder notation
• Another way to describe a set is to use set
builder notation.
• O = {x | x is an odd positive integer less than
10}
• or, specifying the universe as the set of
positive integers, as
• O = {x Z+ | x is odd and x < 10}.∈
Empty Set
• 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∅
{ }
Common error is to confuse the empty set with the set { }∅ ∅
• 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.
• Determine whether these statements are true or false.
• a) { } b) {∅ ∈ ∅ ∅ ∈ ∅, { }}∅
• c) { } { } d) { } {{ }}∅ ∈ ∅ ∅ ∈ ∅
Subset
• The set A is a subset of B if and only if every
element of A is also an element of B. We use
the notation
A B to indicate that A is a subset of the set B.⊆
Ven diagram of Subset
U
B
A
Fig: A Is a Subset of B.
Try Yourself
• Let A = {1, 5, { { 1,2}, ø},{ø } }. State whether
the following statements are true or not. Give
reason.
• {1, 3, ø} A⊆
• {1, 5, ø} A⊆
• { } A⊆
Proper subset
• When we wish to emphasize that a set A is a
subset of a set B but that
A = B, we write A B and say that A is a proper⊂
subset of B.
∀x(x A → x B) x(x B x A)∈ ∈ ∧ ∃ ∈ ∧ ∈
Try Yourself
A is the set of prime numbers less than 10 , B is the set of odd
numbers less than 10, C is the set of even numbers less than
10.
How many of the following statements are true? Explain
• i. A B⊂ Is ∀x(x A → x B) x(x B x A) true?∈ ∈ ∧ ∃ ∈ ∧ ∈
• ii. B A⊂
• iii. A C⊂
• iv. C A⊂
• v. B C⊂
• vi. C A⊂
• Prime numbers less than 10 are: 2,3,5,7
Set Theory - Definitions and notation
A few more:
Is {a} ⊆ {a}?
Is {a} ∈ {a,{a}}?
Is {a} ⊆ {a,{a}}?
Is {a} ∈ {a}?
Yes
Yes
Yes
No
Power set
• The power set of S is denoted by P(S).
• The power set P({0, 1, 2}) is the set of all subsets of {0, 1, 2}. Hence,
• P({0, 1, 2}) = { , {0}, {1}, {2}, {0, 1}, {0, 2}, {1, 2}, {0, 1, 2}}.∅
• Note that the empty set and the set itself are members of this set of
subsets.
Examples
If S is a set, then the power set of S is 2S
= { x : x ⊆ S }.
If S = {a},
If S = {a,b},
If S = ∅,
If S = {∅,{∅}},
We say, “P(S) is
the set of all
subsets of S.”
2S
= {∅, {a}}.
2S
= {∅, {a}, {b}, {a,b}}.
2S
= {∅}.
2S
= {∅, {∅}, {{∅}}, {∅,{∅}}}.
Fact: if S is finite, |2S
| = 2|S|
. (if |S| = n, |2S
| = 2n
) Why?
Set Theory - Definitions and notation
Quick examples:
{1,2,3} ⊆ {1,2,3,4,5}
{1,2,3} ⊂ {1,2,3,4,5}
Is ∅ ⊆ {1,2,3}?
Yes! ∀x (x ∈ ∅) → (x ∈ {1,2,3}) holds (for all
over empty domain)
Is ∅ ∈ {1,2,3}? No!
Is ∅ ⊆ {∅,1,2,3}? Yes!
Is ∅ ∈ {∅,1,2,3}? Yes!
Set operators
The union of two sets A and B is:
A ∪ B = { x : x ∈ A v x ∈ B}
If A = {Charlie, Lucy, Linus}, and B = {Lucy, Desi},
then
A ∪ B = {Charlie, Lucy, Linus, Desi}
A
B
Set Theory -Operators
The intersection of two sets A and B is:
A ∩ B = { x : x ∈ A ∧ x ∈ B}
If A = {Charlie, Lucy, Linus}, and B = {Lucy, Desi},
then
A ∩ B = {Lucy}
A
B
Set Theory -Operators
The intersection of two sets A and B is:
A ∩ B = { x : x ∈ A ∧ x ∈ B}
20
If A = {x : x is a US president}, and B = {x : x is in this room}, then
A ∩ B = {x : x is a US president in this room} = ∅
A
B
Sets whose
intersection is
empty are called
disjoint sets
Set Theory -Operators
The complement of a set A is:
A = { x : x ∉ A}
If A = {x : x is bored}, then
A = {x : x is not bored}
A ∅= U
and
U = ∅
U
I.e., A = U – A, where U is the universal set.
“A set fixed within the framework of a theory and consisting of all objects
considered in the theory. “
Try yourself
• (i) Identify the area ¬ R(x) I(x) ¬ M(x)˄ ˄
• Determine True or False: ∀x R(x) M(x) I(x) → D(x)˄ ˄
Rules of Inference
• We can always use a truth table to show that
an argument form is valid. We do this by
showing that whenever the premises are true,
the conclusion must also be true.
Example
• “If you have a current password, then you can log onto the network.”
“You have a current password.”
• Therefore, “You can log onto the network.”
• We would like to determine whether this is a valid argument.
• That is, we would like to determine whether the conclusion “You can log onto the
network” must be true when the premises “If you have a current password, then
you can log onto the network” and “You have a current password” are both true.
• Use p to represent “You have a current password” and q to represent “You can log
onto the network.”
• Then, the argument has the form
• p → q
• p
• ∴ q
• where is the symbol that denotes “therefore.” the statement∴ ((p → q) ∧
p) → q is a tautology
• This argument is valid because when (premises) p → q and p are both
true, then the (conclusion) q is true.
p q p q
T T T
T F F
F T T
F F T
Try Yourself
• . Verify whether the following argument is valid or not.
a) ¬ q
p → q
∴ ¬ p
b) p → q
q → p
∴ p q˅

More Related Content

What's hot

Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
Rachana Pathak
 
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
 
Topological Sorting
Topological SortingTopological Sorting
Topological Sorting
ShahDhruv21
 
Set Theory
Set TheorySet Theory
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
Muhammad Adnan Ejaz
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional LogicJanet Stemwedel
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
allyn joy calcaben
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
FellowBuddy.com
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
IIUM
 
Prim's algorithm
Prim's algorithmPrim's algorithm
Prim's algorithm
Pankaj Thakur
 
Maximal and minimal elements of poset.pptx
Maximal and minimal elements of poset.pptxMaximal and minimal elements of poset.pptx
Maximal and minimal elements of poset.pptx
Kiran Kumar Malik
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
nszakir
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
Rajendran
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principlenielsoli
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
Kriti Varshney
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
giki67
 
Set theory
Set theory Set theory
Sets
SetsSets
Sets
nischayyy
 

What's hot (20)

Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
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, ...
 
Topological Sorting
Topological SortingTopological Sorting
Topological Sorting
 
Set Theory
Set TheorySet Theory
Set Theory
 
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional Logic
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
 
Prim's algorithm
Prim's algorithmPrim's algorithm
Prim's algorithm
 
Maximal and minimal elements of poset.pptx
Maximal and minimal elements of poset.pptxMaximal and minimal elements of poset.pptx
Maximal and minimal elements of poset.pptx
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Set theory
Set theory Set theory
Set theory
 
Sets
SetsSets
Sets
 

Viewers also liked

Per4 function1
Per4 function1Per4 function1
Per4 function1
Evert Sandye Taasiringan
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
Ali HamZa
 
number theory Rosen
number theory Rosen   number theory Rosen
number theory Rosen
Vui Lên Bạn Nhé
 
Combinatorics - Counting 5 Digit Numbers
Combinatorics - Counting 5 Digit NumbersCombinatorics - Counting 5 Digit Numbers
Combinatorics - Counting 5 Digit Numbers
2IIM
 
Number theory
Number theory Number theory
Number theory tes31
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
University of Potsdam
 
Discrete lecture 01
Discrete lecture 01Discrete lecture 01
Discrete lecture 01Raja Hamid
 
Number theory
Number theoryNumber theory
Number theory
Samsil Arefin
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
Probability - Probability and Number Theory
Probability - Probability and Number TheoryProbability - Probability and Number Theory
Probability - Probability and Number Theory
2IIM
 
Combinatorics - Possible Solutions for given variables
Combinatorics - Possible Solutions for given variablesCombinatorics - Possible Solutions for given variables
Combinatorics - Possible Solutions for given variables
2IIM
 
Mathematical Concepts & Skills in Primary 1 Mathematics
Mathematical Concepts & Skills in Primary 1 MathematicsMathematical Concepts & Skills in Primary 1 Mathematics
Mathematical Concepts & Skills in Primary 1 Mathematics
mathz4kidz Learning Centre
 
Applications of Discrete Structures
Applications of Discrete StructuresApplications of Discrete Structures
Applications of Discrete Structures
aviban
 
Graph theory
Graph theoryGraph theory
Graph theoryKumar
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inferenceSlideshare
 
Game Theory: an Introduction
Game Theory: an IntroductionGame Theory: an Introduction
Game Theory: an Introduction
Ali Abbasi
 
Time Series Analysis and Mining with R
Time Series Analysis and Mining with RTime Series Analysis and Mining with R
Time Series Analysis and Mining with R
Yanchang Zhao
 
Discrete Structures. Lecture 1
 Discrete Structures. Lecture 1  Discrete Structures. Lecture 1
Discrete Structures. Lecture 1 Ali Usman
 

Viewers also liked (20)

Per4 function1
Per4 function1Per4 function1
Per4 function1
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 
number theory Rosen
number theory Rosen   number theory Rosen
number theory Rosen
 
Combinatorics - Counting 5 Digit Numbers
Combinatorics - Counting 5 Digit NumbersCombinatorics - Counting 5 Digit Numbers
Combinatorics - Counting 5 Digit Numbers
 
Number theory
Number theory Number theory
Number theory
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Discrete lecture 01
Discrete lecture 01Discrete lecture 01
Discrete lecture 01
 
combinatorics
combinatoricscombinatorics
combinatorics
 
Number theory
Number theoryNumber theory
Number theory
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Probability - Probability and Number Theory
Probability - Probability and Number TheoryProbability - Probability and Number Theory
Probability - Probability and Number Theory
 
Combinatorics - Possible Solutions for given variables
Combinatorics - Possible Solutions for given variablesCombinatorics - Possible Solutions for given variables
Combinatorics - Possible Solutions for given variables
 
Mathematical Concepts & Skills in Primary 1 Mathematics
Mathematical Concepts & Skills in Primary 1 MathematicsMathematical Concepts & Skills in Primary 1 Mathematics
Mathematical Concepts & Skills in Primary 1 Mathematics
 
Applications of Discrete Structures
Applications of Discrete StructuresApplications of Discrete Structures
Applications of Discrete Structures
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Game Theory: an Introduction
Game Theory: an IntroductionGame Theory: an Introduction
Game Theory: an Introduction
 
Time Series Analysis and Mining with R
Time Series Analysis and Mining with RTime Series Analysis and Mining with R
Time Series Analysis and Mining with R
 
graph theory
graph theory graph theory
graph theory
 
Discrete Structures. Lecture 1
 Discrete Structures. Lecture 1  Discrete Structures. Lecture 1
Discrete Structures. Lecture 1
 

Similar to Set in discrete mathematics

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
KhalidSyfullah6
 
Set theory
Set theorySet theory
Set theory
Robert Geofroy
 
7-Sets-1.ppt
7-Sets-1.ppt7-Sets-1.ppt
7-Sets-1.ppt
jaffarbikat
 
9108528.ppt
9108528.ppt9108528.ppt
9108528.ppt
ntabdelnaiem
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operations
allyn joy calcaben
 
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
baberexha
 
Set concepts
Set conceptsSet concepts
Chpt 2-sets v.3
Chpt 2-sets v.3Chpt 2-sets v.3
Chpt 2-sets v.3
ShahidAkbar22
 
file_5.pptx
file_5.pptxfile_5.pptx
Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1
Amr Rashed
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
ramlahmailok
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
Manik Bhola
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
bryanchristianbrione1
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
sanjeevnandwani
 
Introduction to set theory with application
Introduction to set theory with applicationIntroduction to set theory with application
Introduction to set theory with application
Okunlola Oluyemi Adewole
 
1. set theory
1. set theory1. set theory
1. set theory
caymulb
 
A set is a structure, representing an unordered collection (group, plurality)...
A set is a structure, representing an unordered collection (group, plurality)...A set is a structure, representing an unordered collection (group, plurality)...
A set is a structure, representing an unordered collection (group, plurality)...
OluyemiOkunlola
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
Roshayu Mohamad
 
Set theory
Set theorySet theory
Set theory
Shiwani Gupta
 

Similar to Set in discrete mathematics (20)

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
 
4898850.ppt
4898850.ppt4898850.ppt
4898850.ppt
 
Set theory
Set theorySet theory
Set theory
 
7-Sets-1.ppt
7-Sets-1.ppt7-Sets-1.ppt
7-Sets-1.ppt
 
9108528.ppt
9108528.ppt9108528.ppt
9108528.ppt
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operations
 
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
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Chpt 2-sets v.3
Chpt 2-sets v.3Chpt 2-sets v.3
Chpt 2-sets v.3
 
file_5.pptx
file_5.pptxfile_5.pptx
file_5.pptx
 
Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
 
SetTheory.ppt
SetTheory.pptSetTheory.ppt
SetTheory.ppt
 
Introduction to set theory with application
Introduction to set theory with applicationIntroduction to set theory with application
Introduction to set theory with application
 
1. set theory
1. set theory1. set theory
1. set theory
 
A set is a structure, representing an unordered collection (group, plurality)...
A set is a structure, representing an unordered collection (group, plurality)...A set is a structure, representing an unordered collection (group, plurality)...
A set is a structure, representing an unordered collection (group, plurality)...
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
Set theory
Set theorySet theory
Set theory
 

More from University of Potsdam

Computer fundamentals 01
Computer fundamentals 01Computer fundamentals 01
Computer fundamentals 01
University of Potsdam
 
Workshop on android apps development
Workshop on android apps developmentWorkshop on android apps development
Workshop on android apps development
University of Potsdam
 
Transparency and concurrency
Transparency and concurrencyTransparency and concurrency
Transparency and concurrency
University of Potsdam
 
Database System Architecture
Database System ArchitectureDatabase System Architecture
Database System Architecture
University of Potsdam
 
Functional dependency and normalization
Functional dependency and normalizationFunctional dependency and normalization
Functional dependency and normalization
University of Potsdam
 
indexing and hashing
indexing and hashingindexing and hashing
indexing and hashing
University of Potsdam
 
data recovery-raid
data recovery-raiddata recovery-raid
data recovery-raid
University of Potsdam
 
Query processing
Query processingQuery processing
Query processing
University of Potsdam
 
Machine Learning for Data Mining
Machine Learning for Data MiningMachine Learning for Data Mining
Machine Learning for Data Mining
University of Potsdam
 
Tree, function and graph
Tree, function and graphTree, function and graph
Tree, function and graph
University of Potsdam
 
Sonet
SonetSonet
Series parallel ac rlc networks
Series parallel ac rlc networksSeries parallel ac rlc networks
Series parallel ac rlc networks
University of Potsdam
 
Series parallel ac networks
Series parallel ac networksSeries parallel ac networks
Series parallel ac networks
University of Potsdam
 
Relations
RelationsRelations
Relations
RelationsRelations
Propositional logic
Propositional logicPropositional logic
Propositional logic
University of Potsdam
 
Prim algorithm
Prim algorithmPrim algorithm
Prim algorithm
University of Potsdam
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
University of Potsdam
 
Number system
Number systemNumber system
Number system
University of Potsdam
 
Graph
GraphGraph

More from University of Potsdam (20)

Computer fundamentals 01
Computer fundamentals 01Computer fundamentals 01
Computer fundamentals 01
 
Workshop on android apps development
Workshop on android apps developmentWorkshop on android apps development
Workshop on android apps development
 
Transparency and concurrency
Transparency and concurrencyTransparency and concurrency
Transparency and concurrency
 
Database System Architecture
Database System ArchitectureDatabase System Architecture
Database System Architecture
 
Functional dependency and normalization
Functional dependency and normalizationFunctional dependency and normalization
Functional dependency and normalization
 
indexing and hashing
indexing and hashingindexing and hashing
indexing and hashing
 
data recovery-raid
data recovery-raiddata recovery-raid
data recovery-raid
 
Query processing
Query processingQuery processing
Query processing
 
Machine Learning for Data Mining
Machine Learning for Data MiningMachine Learning for Data Mining
Machine Learning for Data Mining
 
Tree, function and graph
Tree, function and graphTree, function and graph
Tree, function and graph
 
Sonet
SonetSonet
Sonet
 
Series parallel ac rlc networks
Series parallel ac rlc networksSeries parallel ac rlc networks
Series parallel ac rlc networks
 
Series parallel ac networks
Series parallel ac networksSeries parallel ac networks
Series parallel ac networks
 
Relations
RelationsRelations
Relations
 
Relations
RelationsRelations
Relations
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Prim algorithm
Prim algorithmPrim algorithm
Prim algorithm
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
 
Number system
Number systemNumber system
Number system
 
Graph
GraphGraph
Graph
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 

Recently uploaded (20)

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Set in discrete mathematics

  • 2. A set is said to contain its elements. A set is an unordered collection of objects, called elements or members of the set. {1, 2, 3} is the set containing “1” and “2” and “3.” list the members between braces. {1, 1, 2, 3, 3} = {1, 2, 3} since repetition is irrelevant. {1, 2, 3} = {3, 2, 1} since sets are unordered. {1,2,3, …, 99} is the set of positive integers less than 100 {1, 2, 3, …} is a way we denote an infinite set (in this case, the natural numbers). ∅ = {} is the empty set, or the set containing no elements. Note: ∅ ≠ {∅}
  • 3. Some examples • The set V of all vowels in the English alphabet V = {a, e, i, o, u}. • The set of positive integers less than 100 can be denoted by {1, 2, 3, . . . , 99}. ellipses (. . .) are used when the general pattern of the elements is obvious. • {a, 2, Fred, New Jersey} is the set containing the four elements a, 2, Fred, and New Jersey.
  • 4. Element of Set • A set is an unordered collection of objects referred to as elements. • A set is said to contain its elements. We write a A to denote that a is an element of the set∈ A. • The notation a A denotes that a is not an∈ element of the set A.
  • 5. Try Yourself • Let A = {1, 3, { { 1,2}, ø},{ø } }. State whether the following statements are true or not. Give reason. • {{1, 2},{ø } } Aϵ • {1, 4,{ø } } Aϵ • ø Aϵ
  • 6. Some Sets N = {0,1,2,3,…}, the set of natural numbers, non negative integers, (occasionally IN) Z = { …, -2, -1, 0, 1, 2,3, …), the set of integers Z+ = {1,2,3,…} set of positive integers Q = {p/q | p ∈ Z, q ∈Z, and q≠0}, set of rational numbers R, the set of real numbers R+, the set of positive real numbers C, the set of complex numbers.
  • 7. Set builder notation • Another way to describe a set is to use set builder notation. • O = {x | x is an odd positive integer less than 10} • or, specifying the universe as the set of positive integers, as • O = {x Z+ | x is odd and x < 10}.∈
  • 8. Empty Set • 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∅ { } Common error is to confuse the empty set with the set { }∅ ∅ • 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. • Determine whether these statements are true or false. • a) { } b) {∅ ∈ ∅ ∅ ∈ ∅, { }}∅ • c) { } { } d) { } {{ }}∅ ∈ ∅ ∅ ∈ ∅
  • 9. Subset • The set A is a subset of B if and only if every element of A is also an element of B. We use the notation A B to indicate that A is a subset of the set B.⊆
  • 10. Ven diagram of Subset U B A Fig: A Is a Subset of B.
  • 11. Try Yourself • Let A = {1, 5, { { 1,2}, ø},{ø } }. State whether the following statements are true or not. Give reason. • {1, 3, ø} A⊆ • {1, 5, ø} A⊆ • { } A⊆
  • 12. Proper subset • When we wish to emphasize that a set A is a subset of a set B but that A = B, we write A B and say that A is a proper⊂ subset of B. ∀x(x A → x B) x(x B x A)∈ ∈ ∧ ∃ ∈ ∧ ∈
  • 13. Try Yourself A is the set of prime numbers less than 10 , B is the set of odd numbers less than 10, C is the set of even numbers less than 10. How many of the following statements are true? Explain • i. A B⊂ Is ∀x(x A → x B) x(x B x A) true?∈ ∈ ∧ ∃ ∈ ∧ ∈ • ii. B A⊂ • iii. A C⊂ • iv. C A⊂ • v. B C⊂ • vi. C A⊂ • Prime numbers less than 10 are: 2,3,5,7
  • 14. Set Theory - Definitions and notation A few more: Is {a} ⊆ {a}? Is {a} ∈ {a,{a}}? Is {a} ⊆ {a,{a}}? Is {a} ∈ {a}? Yes Yes Yes No
  • 15. Power set • The power set of S is denoted by P(S). • The power set P({0, 1, 2}) is the set of all subsets of {0, 1, 2}. Hence, • P({0, 1, 2}) = { , {0}, {1}, {2}, {0, 1}, {0, 2}, {1, 2}, {0, 1, 2}}.∅ • Note that the empty set and the set itself are members of this set of subsets.
  • 16. Examples If S is a set, then the power set of S is 2S = { x : x ⊆ S }. If S = {a}, If S = {a,b}, If S = ∅, If S = {∅,{∅}}, We say, “P(S) is the set of all subsets of S.” 2S = {∅, {a}}. 2S = {∅, {a}, {b}, {a,b}}. 2S = {∅}. 2S = {∅, {∅}, {{∅}}, {∅,{∅}}}. Fact: if S is finite, |2S | = 2|S| . (if |S| = n, |2S | = 2n ) Why?
  • 17. Set Theory - Definitions and notation Quick examples: {1,2,3} ⊆ {1,2,3,4,5} {1,2,3} ⊂ {1,2,3,4,5} Is ∅ ⊆ {1,2,3}? Yes! ∀x (x ∈ ∅) → (x ∈ {1,2,3}) holds (for all over empty domain) Is ∅ ∈ {1,2,3}? No! Is ∅ ⊆ {∅,1,2,3}? Yes! Is ∅ ∈ {∅,1,2,3}? Yes!
  • 18. Set operators The union of two sets A and B is: A ∪ B = { x : x ∈ A v x ∈ B} If A = {Charlie, Lucy, Linus}, and B = {Lucy, Desi}, then A ∪ B = {Charlie, Lucy, Linus, Desi} A B
  • 19. Set Theory -Operators The intersection of two sets A and B is: A ∩ B = { x : x ∈ A ∧ x ∈ B} If A = {Charlie, Lucy, Linus}, and B = {Lucy, Desi}, then A ∩ B = {Lucy} A B
  • 20. Set Theory -Operators The intersection of two sets A and B is: A ∩ B = { x : x ∈ A ∧ x ∈ B} 20 If A = {x : x is a US president}, and B = {x : x is in this room}, then A ∩ B = {x : x is a US president in this room} = ∅ A B Sets whose intersection is empty are called disjoint sets
  • 21. Set Theory -Operators The complement of a set A is: A = { x : x ∉ A} If A = {x : x is bored}, then A = {x : x is not bored} A ∅= U and U = ∅ U I.e., A = U – A, where U is the universal set. “A set fixed within the framework of a theory and consisting of all objects considered in the theory. “
  • 22. Try yourself • (i) Identify the area ¬ R(x) I(x) ¬ M(x)˄ ˄ • Determine True or False: ∀x R(x) M(x) I(x) → D(x)˄ ˄
  • 23. Rules of Inference • We can always use a truth table to show that an argument form is valid. We do this by showing that whenever the premises are true, the conclusion must also be true.
  • 24. Example • “If you have a current password, then you can log onto the network.” “You have a current password.” • Therefore, “You can log onto the network.” • We would like to determine whether this is a valid argument. • That is, we would like to determine whether the conclusion “You can log onto the network” must be true when the premises “If you have a current password, then you can log onto the network” and “You have a current password” are both true. • Use p to represent “You have a current password” and q to represent “You can log onto the network.”
  • 25. • Then, the argument has the form • p → q • p • ∴ q • where is the symbol that denotes “therefore.” the statement∴ ((p → q) ∧ p) → q is a tautology • This argument is valid because when (premises) p → q and p are both true, then the (conclusion) q is true. p q p q T T T T F F F T T F F T
  • 26. Try Yourself • . Verify whether the following argument is valid or not. a) ¬ q p → q ∴ ¬ p b) p → q q → p ∴ p q˅