SlideShare a Scribd company logo
Group # 1
Adnan Yousaf 1001
Humayun Naseer 5054
Aiza Mukhtar 1003
Ummema Ali Sher 5064
DS Presentation
Discrete Structures
OUTLINE:
 QUANTIFIERS
 TYPES OF QUANTIFIERS
 QUANTIFIERS WITH RESTRICTED DOMAIN
 NEGATION AND QUANTIFERS
 EXPRESS QUANTIFIER IN ENGLISH
 Nested QUANTIFIER
QUANTIFIERS:
In natural languages, a quantifier turns a sentence about something having some property into a
sentence about the number (quantity) of things having the property. Examples of quantifiers in
English are "all", "some", "many", "few", "most", and "no";
examples of quantified sentences are "all people are mortal", "some people are mortal", and
"no people are mortal", they are considered to be true, true, and
Quantifiers are expressions that indicate the scope of the term to which they are attached, here
predicates. A predicate is a property the subject of the statement can have.
For example, in the statement “the sum of x and y is greater than 5”, the predicate ‘Q’ is- sum
is greater than 5,
and the statement can be represented as Q(x, y) where x and y are variables
TYPES:
1) UNIVERSAL QUANTIFIER:
The universal quantification of a predicate P(x) is the proposition
“P(x) is true for all values of x in the universe of discourse [the universe of discourse is the set of all things
we wish to talk about; that is, the set of all objects that we can sensibly assign to a variable in a propositional function] ”
We use the notation
∀xP(x)
which can be read “for all x”
2) EXISTENTIAL QUANTIFIER:
The existential quantification of P(x) is the proposition
“There exists an element x in the universe of discourse such that P(x) is true.”
Notation:
“There exists x such that P(x)” or “There is at least one x such that P(x)” is written
∃xP(x).
NOTE:
Universal(∀) – The predicate is true for all values of x in the domain.
Existential(∃) – The predicate is true for at least one x in the domain
EXAMPLE 1:
Suppose P(x) is the predicate x + 2 = 2x, and the universe of
discourse for x is the set {1, 2, 3}. Then...
• ∀xP(x) is the proposition “For every x in {1, 2, 3} x + 2 = 2x.” This proposition is false.
• ∃xP(x) is the proposition “There exists x in {1, 2, 3} such that x + 2 = 2x.”
This proposition is true.
EXAMPLE 2:
Let P(x) be the predicate “x must take a discrete
mathematics course” and let Q(x) be the predicate “x is a
computer science student”.
The universe of discourse for both P(x) and Q(x) is all UNL
students.
Express the statement “Every computer science student must
take a discrete mathematics course”.
∀x(Q(x) → P(x))
Express the statement “Everybody must take a discrete
mathematics course or be a computer science student”.
∀x(Q(x) ∨ P(x))
EXAMPLE 3:
Express the statement “for every x and for every y, x + y > 10”
Let P(x, y) be the statement x + y > 10 where the universe of
discourse for x, y is the set of integers.
Answer:
∀x∀yP(x, y)
Note that we can also use the shorthand
∀x, yP(x, y)
 QUANTIFERS WITH RESTRICTED DOMAIN:
As we know that quantifiers are meaningless if the variables they bind do not have a
domain. The following abbreviated notation is used to restrict the domain of the
variables-
What is the truth value of ∀ x <0 -- (x^2 =1)
Domain is all real numbers.
Solution:
Find just 1 counter example to make ∀ x <0 -- (x^2 =1) FALSE
 It can be written as
∀ ( x <0 -- x^2 =1)
( -2 <0 ___> (-2)^ 2 =1)
( -2<0 ____> 4=1)
T_____> F =F
So , ∀ x <0 -- (x^2 =1) is FALSE
Q 2:
What is truth value of ∃ x p(x) “x^2 >0 “ domain “ positive integer not exceeding 4? {1,2,3,4}
Answer:
P(x) : x ^2 > 10
P(1) = (1)^2 > 10 FALSE
P(2) =2^2 > 10 FALSE
P(3) = 3^2 > 10 FALSE
P(4) =4^2 > 10 TRUE
Here ∃ x p(x) “x^2 >0 is true
 NEGATION AND QUANTIFIERS:
EXAMPLE :
All Dogs Barks ______
∀ dogs , d barks _____>
¬ (∀ dogs , d barks) ____>
∃ dogs , ¬ d barks ______>
∃ dogs , d does not bark ______>
“Some Dogs does not bark”
Example :
Problem:
• Express the statement “Not everybody can ride a bike” as a
logical expression.
Solution:
• Let P(x)=“x can ride a bike.”
• The statement “everybody can ride a bike,” can be
expressed as ∀x P(x).
• We want the negation of this, which is ¬∀x P(x).
• Another way to say this is “There is somebody that cannot
ride a bike,” which can be expressed as ∃x ¬P(x).
EXAMPLE :
• Express the statement “Nobody can fly.” as a logical
expression.
Solution:
• Let P(x)=“x can fly.”
• The statement “somebody can fly,” can be expressed as
∃x P(x).
• We want the negation of this, which is ¬∃x P(x).
• Another way to say this is “Everybody can not fly,” which
can be expressed as ∀x ¬P(x).
 EXPRESS QUANTIFIER IN ENGLISH STATEMENTS:
QUESTION 1:
∀x P(x). mean if p(x) “ x is perfect “
Domain is “of people in your locality”
ANSWER:
AS we know that ∀x P(x).
For all x P(x).
For every x P(x).
For each x P(x).
All of x P(x).
For any x P(x).
It can be written as :
1. All people in your locality are perfect .
2. Every people in your locality are perfect
3. Each people in your locality are perfect
QUESTION 2:
There is a student who has taken more than 21 credit hour in a semester and received all A grade
ANSWER:
Domain: “All student”
P(x) = x student who has taken more than 21 credit hour in a semester
And
S(x) = received all A grade
So;
∃x[ P(x) ^ s(x)]
QUESTION 3:
Let N(x) be the statement “ x has visited north korea “ where the domain is :
consist of the students in your school “ .. Express ∀x N(x) in English ?
ANSWER:
1. For every x in the domain of the students in your school , x has visited North korea.
2. All students in your school has visited north korea .
 NESTED QUANTIFIER:
Two quantifiers are nested if one is within the
scope of the other.
Example:
∀x ∃y (x + y = 0)
∀x Q(x)
Q(x) is ∃y P(x,y)
P(x,y) is (x + y = 0)
EXAMPLE:
Translate the following statement into English.
x y (x + y = y + x)
Domain: real numbers
Domain: real numbers
Solution:
For all real numbers x and y, x + y = y + x
Example-1:
∀x ∃y (x+y=5)
Here ‘∃’ (read as-there exists) and ‘∀’ (read as-for all) are quantifiers
for variables x and y.
The statement can be represented as-
∀x Q(x)
Q(x) is ∃y P(x, y) Q(x)-the predicate is a function of only x because the
quantifier applies only to variable x.
P(x, y) is (x + y = 5)
EXAMPLE :
Let x and y be the real numbers and p(x,y) denotes “x+y=0”
Find the truth value of :
a) ∀x ∀y p(x,y)
b) ∀x ∃y p(x,y)
c) ∃y ∀x p(x,y)
d) ∃x∃y p(x,y)
SOLUTION:
Domain : All real numbers
a) ∀x ∀y p(x,y) ≡ ∀x ∀y (x=y=0)
“for all real numbers x and y , x+y=0”
It is not TRUE
e.g 2+1 not equal to 0
so it is FALSE
b) ∀x ∃y p(x,y)
“for ever real numbers x ,there exist a real number y such that x+y=0”
IT IS TRUE:
For example:
X=1 ,-1 , 1/2
Y =-1 ,1 ,-1/2
STEPS:
Consider all different value of x.
Find just 1 value of y for each of x such that p(x,y) becomes true.
Value of y depend on the value of x
c) ∃y ∀x p(x,y)
“there exist some real number y such that for every real number x ,x+y=0”
IT IS not TRUE
Prove:
It is asking us to find a real number y for which p(x,y) becomes true by plugging in every real
number x.
As we know that :
P(x,y) =x+y=0
First take sum real number y=1
P(x,1) =x+1 =0
Now , plug in all real numbers of x
P(1/2,1) is false , p(1,1) is false and soo on…
No matter what y you choose , p(x,y) is always false for all real numbers
SO IT IS FALSE
d) ∃x∃y p(x,y)
“there exist some real numbes x and y such that x+y=0:”
Surely : There exist some combination of real numbers x and y exist for which
x +y=0
For example :
Take x=1 and y=-1
1+(-1) =0 is True
So this is true
Quantifiers and its Types

More Related Content

What's hot

Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
raksharao
 
Lesson 5: Continuity (slides)
Lesson 5: Continuity (slides)Lesson 5: Continuity (slides)
Lesson 5: Continuity (slides)
Matthew Leingang
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
IIUM
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
Suresh Ram
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficientSanjay Singh
 
Power series
Power seriesPower series
Power series
jaimin kemkar
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
SURBHI SAROHA
 
Conditional statement
Conditional statementConditional statement
Conditional statement
Maxie Santos
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
Rachana Pathak
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
FellowBuddy.com
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
Sathish Narayanan
 
Operators and expressions in c language
Operators and expressions in c languageOperators and expressions in c language
Operators and expressions in c language
tanmaymodi4
 
User defined functions in C
User defined functions in CUser defined functions in C
User defined functions in C
Harendra Singh
 
Predicates and Quantifiers
Predicates and Quantifiers Predicates and Quantifiers
Predicates and Quantifiers
Istiak Ahmed
 
Nesting of if else statement & Else If Ladder
Nesting of if else statement & Else If Ladder Nesting of if else statement & Else If Ladder
Nesting of if else statement & Else If Ladder
Vishvesh Jasani
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
SainiNageshSir
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control Structure
Sokngim Sa
 
Introduction to Selection control structures in C++
Introduction to Selection control structures in C++ Introduction to Selection control structures in C++
Introduction to Selection control structures in C++
Neeru Mittal
 
C if else
C if elseC if else
C if else
Ritwik Das
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
University of Potsdam
 

What's hot (20)

Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 
Lesson 5: Continuity (slides)
Lesson 5: Continuity (slides)Lesson 5: Continuity (slides)
Lesson 5: Continuity (slides)
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficient
 
Power series
Power seriesPower series
Power series
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
 
Conditional statement
Conditional statementConditional statement
Conditional statement
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Operators and expressions in c language
Operators and expressions in c languageOperators and expressions in c language
Operators and expressions in c language
 
User defined functions in C
User defined functions in CUser defined functions in C
User defined functions in C
 
Predicates and Quantifiers
Predicates and Quantifiers Predicates and Quantifiers
Predicates and Quantifiers
 
Nesting of if else statement & Else If Ladder
Nesting of if else statement & Else If Ladder Nesting of if else statement & Else If Ladder
Nesting of if else statement & Else If Ladder
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control Structure
 
Introduction to Selection control structures in C++
Introduction to Selection control structures in C++ Introduction to Selection control structures in C++
Introduction to Selection control structures in C++
 
C if else
C if elseC if else
C if else
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 

Similar to Quantifiers and its Types

CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
allyn joy calcaben
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
Laguna State Polytechnic University
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdf
MuhammadUmerIhtisham
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
University of Potsdam
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
smarwaneid
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
TejasAditya2
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
yashirraza123
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
Jeevan225779
 
Quantification
QuantificationQuantification
Quantification
Abdur Rehman
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
NaniSarath
 
PredicateLogic (1).ppt
PredicateLogic (1).pptPredicateLogic (1).ppt
PredicateLogic (1).ppt
keerthana592112
 
PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.pptx
santhosh sriprada
 
Maths9Polynomial.pptx
Maths9Polynomial.pptxMaths9Polynomial.pptx
Maths9Polynomial.pptx
MVHerwadkarschool
 
Per3 logika
Per3 logikaPer3 logika
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
MalligaarjunanN
 
Polynomials
PolynomialsPolynomials
Polynomials
Ankit Goel
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
Rokonuzzaman Rony
 
Use of quantifiers
Use of quantifiersUse of quantifiers
Use of quantifiers
Lakshmi R
 

Similar to Quantifiers and its Types (20)

CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
 
Discrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdfDiscrete Structure Lecture #5 & 6.pdf
Discrete Structure Lecture #5 & 6.pdf
 
Predicate &amp; quantifier
Predicate &amp; quantifierPredicate &amp; quantifier
Predicate &amp; quantifier
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
Quantification
QuantificationQuantification
Quantification
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
 
PredicateLogic (1).ppt
PredicateLogic (1).pptPredicateLogic (1).ppt
PredicateLogic (1).ppt
 
PredicateLogic.pptx
PredicateLogic.pptxPredicateLogic.pptx
PredicateLogic.pptx
 
Maths9Polynomial.pptx
Maths9Polynomial.pptxMaths9Polynomial.pptx
Maths9Polynomial.pptx
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
Polyomials x
Polyomials xPolyomials x
Polyomials x
 
Course notes2summer2012
Course notes2summer2012Course notes2summer2012
Course notes2summer2012
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
 
Polynomials
PolynomialsPolynomials
Polynomials
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
 
Use of quantifiers
Use of quantifiersUse of quantifiers
Use of quantifiers
 

Recently uploaded

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
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
 
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
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
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
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
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
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
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
 
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
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
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
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 

Recently uploaded (20)

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
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
 
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
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
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
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
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
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
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
 
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
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
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
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 

Quantifiers and its Types

  • 1. Group # 1 Adnan Yousaf 1001 Humayun Naseer 5054 Aiza Mukhtar 1003 Ummema Ali Sher 5064 DS Presentation Discrete Structures
  • 2. OUTLINE:  QUANTIFIERS  TYPES OF QUANTIFIERS  QUANTIFIERS WITH RESTRICTED DOMAIN  NEGATION AND QUANTIFERS  EXPRESS QUANTIFIER IN ENGLISH  Nested QUANTIFIER
  • 3. QUANTIFIERS: In natural languages, a quantifier turns a sentence about something having some property into a sentence about the number (quantity) of things having the property. Examples of quantifiers in English are "all", "some", "many", "few", "most", and "no"; examples of quantified sentences are "all people are mortal", "some people are mortal", and "no people are mortal", they are considered to be true, true, and Quantifiers are expressions that indicate the scope of the term to which they are attached, here predicates. A predicate is a property the subject of the statement can have. For example, in the statement “the sum of x and y is greater than 5”, the predicate ‘Q’ is- sum is greater than 5, and the statement can be represented as Q(x, y) where x and y are variables
  • 4. TYPES: 1) UNIVERSAL QUANTIFIER: The universal quantification of a predicate P(x) is the proposition “P(x) is true for all values of x in the universe of discourse [the universe of discourse is the set of all things we wish to talk about; that is, the set of all objects that we can sensibly assign to a variable in a propositional function] ” We use the notation ∀xP(x) which can be read “for all x” 2) EXISTENTIAL QUANTIFIER: The existential quantification of P(x) is the proposition “There exists an element x in the universe of discourse such that P(x) is true.”
  • 5. Notation: “There exists x such that P(x)” or “There is at least one x such that P(x)” is written ∃xP(x). NOTE: Universal(∀) – The predicate is true for all values of x in the domain. Existential(∃) – The predicate is true for at least one x in the domain EXAMPLE 1: Suppose P(x) is the predicate x + 2 = 2x, and the universe of discourse for x is the set {1, 2, 3}. Then... • ∀xP(x) is the proposition “For every x in {1, 2, 3} x + 2 = 2x.” This proposition is false. • ∃xP(x) is the proposition “There exists x in {1, 2, 3} such that x + 2 = 2x.” This proposition is true.
  • 6. EXAMPLE 2: Let P(x) be the predicate “x must take a discrete mathematics course” and let Q(x) be the predicate “x is a computer science student”. The universe of discourse for both P(x) and Q(x) is all UNL students. Express the statement “Every computer science student must take a discrete mathematics course”. ∀x(Q(x) → P(x)) Express the statement “Everybody must take a discrete mathematics course or be a computer science student”. ∀x(Q(x) ∨ P(x))
  • 7. EXAMPLE 3: Express the statement “for every x and for every y, x + y > 10” Let P(x, y) be the statement x + y > 10 where the universe of discourse for x, y is the set of integers. Answer: ∀x∀yP(x, y) Note that we can also use the shorthand ∀x, yP(x, y)  QUANTIFERS WITH RESTRICTED DOMAIN: As we know that quantifiers are meaningless if the variables they bind do not have a domain. The following abbreviated notation is used to restrict the domain of the variables-
  • 8. What is the truth value of ∀ x <0 -- (x^2 =1) Domain is all real numbers. Solution: Find just 1 counter example to make ∀ x <0 -- (x^2 =1) FALSE  It can be written as ∀ ( x <0 -- x^2 =1) ( -2 <0 ___> (-2)^ 2 =1) ( -2<0 ____> 4=1) T_____> F =F So , ∀ x <0 -- (x^2 =1) is FALSE Q 2: What is truth value of ∃ x p(x) “x^2 >0 “ domain “ positive integer not exceeding 4? {1,2,3,4} Answer: P(x) : x ^2 > 10 P(1) = (1)^2 > 10 FALSE P(2) =2^2 > 10 FALSE P(3) = 3^2 > 10 FALSE P(4) =4^2 > 10 TRUE Here ∃ x p(x) “x^2 >0 is true
  • 9.  NEGATION AND QUANTIFIERS: EXAMPLE : All Dogs Barks ______ ∀ dogs , d barks _____> ¬ (∀ dogs , d barks) ____> ∃ dogs , ¬ d barks ______> ∃ dogs , d does not bark ______> “Some Dogs does not bark” Example : Problem: • Express the statement “Not everybody can ride a bike” as a logical expression. Solution: • Let P(x)=“x can ride a bike.” • The statement “everybody can ride a bike,” can be expressed as ∀x P(x). • We want the negation of this, which is ¬∀x P(x). • Another way to say this is “There is somebody that cannot ride a bike,” which can be expressed as ∃x ¬P(x).
  • 10. EXAMPLE : • Express the statement “Nobody can fly.” as a logical expression. Solution: • Let P(x)=“x can fly.” • The statement “somebody can fly,” can be expressed as ∃x P(x). • We want the negation of this, which is ¬∃x P(x). • Another way to say this is “Everybody can not fly,” which can be expressed as ∀x ¬P(x).
  • 11.  EXPRESS QUANTIFIER IN ENGLISH STATEMENTS: QUESTION 1: ∀x P(x). mean if p(x) “ x is perfect “ Domain is “of people in your locality” ANSWER: AS we know that ∀x P(x). For all x P(x). For every x P(x). For each x P(x). All of x P(x). For any x P(x). It can be written as : 1. All people in your locality are perfect . 2. Every people in your locality are perfect 3. Each people in your locality are perfect
  • 12. QUESTION 2: There is a student who has taken more than 21 credit hour in a semester and received all A grade ANSWER: Domain: “All student” P(x) = x student who has taken more than 21 credit hour in a semester And S(x) = received all A grade So; ∃x[ P(x) ^ s(x)] QUESTION 3: Let N(x) be the statement “ x has visited north korea “ where the domain is : consist of the students in your school “ .. Express ∀x N(x) in English ? ANSWER: 1. For every x in the domain of the students in your school , x has visited North korea. 2. All students in your school has visited north korea .
  • 13.  NESTED QUANTIFIER: Two quantifiers are nested if one is within the scope of the other. Example: ∀x ∃y (x + y = 0) ∀x Q(x) Q(x) is ∃y P(x,y) P(x,y) is (x + y = 0) EXAMPLE: Translate the following statement into English. x y (x + y = y + x) Domain: real numbers
  • 14. Domain: real numbers Solution: For all real numbers x and y, x + y = y + x Example-1: ∀x ∃y (x+y=5) Here ‘∃’ (read as-there exists) and ‘∀’ (read as-for all) are quantifiers for variables x and y. The statement can be represented as- ∀x Q(x) Q(x) is ∃y P(x, y) Q(x)-the predicate is a function of only x because the quantifier applies only to variable x. P(x, y) is (x + y = 5)
  • 15. EXAMPLE : Let x and y be the real numbers and p(x,y) denotes “x+y=0” Find the truth value of : a) ∀x ∀y p(x,y) b) ∀x ∃y p(x,y) c) ∃y ∀x p(x,y) d) ∃x∃y p(x,y) SOLUTION: Domain : All real numbers a) ∀x ∀y p(x,y) ≡ ∀x ∀y (x=y=0) “for all real numbers x and y , x+y=0” It is not TRUE e.g 2+1 not equal to 0 so it is FALSE
  • 16. b) ∀x ∃y p(x,y) “for ever real numbers x ,there exist a real number y such that x+y=0” IT IS TRUE: For example: X=1 ,-1 , 1/2 Y =-1 ,1 ,-1/2 STEPS: Consider all different value of x. Find just 1 value of y for each of x such that p(x,y) becomes true. Value of y depend on the value of x
  • 17. c) ∃y ∀x p(x,y) “there exist some real number y such that for every real number x ,x+y=0” IT IS not TRUE Prove: It is asking us to find a real number y for which p(x,y) becomes true by plugging in every real number x. As we know that : P(x,y) =x+y=0 First take sum real number y=1 P(x,1) =x+1 =0 Now , plug in all real numbers of x P(1/2,1) is false , p(1,1) is false and soo on… No matter what y you choose , p(x,y) is always false for all real numbers SO IT IS FALSE
  • 18. d) ∃x∃y p(x,y) “there exist some real numbes x and y such that x+y=0:” Surely : There exist some combination of real numbers x and y exist for which x +y=0 For example : Take x=1 and y=-1 1+(-1) =0 is True So this is true