SlideShare a Scribd company logo
Nepal College of Informaiton Technology Balkumari, Lalitpur May 18, 2010 ॐ NEPAL COLLEGE OF INFORMATION TECHNOLOGY  _ _ _ _ _ _ _ _ _ _ _ _ 2001
make statements about individual subjects predicate P(x) has two parts: variable ‘x’ is the subject of statement propositional function P is the property that the subject can have property of an inference May 18, 2010
property of description of subject in “domain or universe of discourse” P(x) predicate two condition: all values of ‘x’ true some values of ‘x’ true May 18, 2010 ‘ n’ objects ‘ x’ values
dynamic  in nature logic operator are used so called predicate logic quantifiers & variables are used & variables bound the quantifier (universal or existential or both) i.e. symbolic logic May 18, 2010
P(x) : “x is man” For all values of ‘x’, if P(x) is true then   x   P(x) exists For some values of ‘x’, if P(x) is true then   x P(x) exists “ All students in this class love discrete structure.”  x love(x, discrete structure) “ All student love some subject.”  x   y love(x, y) May 18, 2010
Two quantifiers are  nested if one is within the scope of the other, such as ∀ x ∃y (x + y = 0)  Everything within the scope of a quantifier can be thought of as a propositional function. Define the propositional functions Q(x) : ∃y P(x, y) P(x, y) : x + y = 0 Then, we have ∀ x ∃y (x + y = 0) ≡ ∀x ∃y P(x, y) ≡ ∀x Q(x) . May 18, 2010
Translation of  nested quantifiers  can be done by: write out what the quantifiers and predicates in the expression means convert this meaning into a simpler sentence without using any of the variables Statements involving nested quantifiers can be negated by  applying the rules for negating statements involving a single quantifier Table : Negating Quantifiers  May 18, 2010 Negation Equivalent Statement When Is Negation True? When False?    x   P ( x )  x P ( x )  x   P ( x )    x    P ( x ) For every  x ,  P ( x ) is false. There is an  x  for which  P ( x ) is false. There is an  x  for which  P ( x ) is true. P ( x ) is true for every  x .
For example, to evaluate   x    y P(x, y) we loop through all the values of  x , and for each x we loop through all the values of y. Table : Quantifications of Two Variables May 18, 2010 Statement When True? When False?  x   y P(x, y)  y   x P(x, y) P(x, y) is true for every pair x, y. There is a pair x, y for which P(x, y) is false.  x   y P(x, y) For every x there is a  y  for which P(x, y) is true. There is an x such that P(x, y) is false for all y.  x   y P(x, y) There is an  x  for which P(x, y) is true for all y. For every x there is a  y  for which P(x, y) is false.  x   y P(x, y)  y   x P(x, y) There is a pair x, y for which P(x, y) is true. P(x, y) is false for every pair x, y.
Example:  Translate the statement “The sum of two positive integers is always positive” into a logical expression. Solution: May 18, 2010
K. Rosen, “ Discrete Mathematical Structures with Applications to Computer Science, WCB/ Mcgraw Hill ”, edition 6 2006 http://www.slideshare.net/../predicate-logic www.cs.odu.edu/~toida/nerzic/conten .. www.earlham.edu/../terms3.htm May 18, 2010
If you have any suggestion then let me know. May 18, 2010

More Related Content

Viewers also liked (10)

PPTX
Quantification
Abdur Rehman
 
PDF
1997 AFTA Commendation
SUSANNE OLSEN
 
PPTX
Chapter 5.0
sotlsoc
 
TXT
Assignement code
Syed Umair
 
PPTX
Chapter 5.3
sotlsoc
 
PPTX
Nested quantifiers
Ali Saleem
 
PPT
Graphs
Ali Saleem
 
PDF
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
PPTX
Vb.net (loop structure)
Abhishek Pachisia
 
PPTX
Introduction to VB.NET - UP SITF
John Patrick Oliveros
 
Quantification
Abdur Rehman
 
1997 AFTA Commendation
SUSANNE OLSEN
 
Chapter 5.0
sotlsoc
 
Assignement code
Syed Umair
 
Chapter 5.3
sotlsoc
 
Nested quantifiers
Ali Saleem
 
Graphs
Ali Saleem
 
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
Vb.net (loop structure)
Abhishek Pachisia
 
Introduction to VB.NET - UP SITF
John Patrick Oliveros
 

Similar to Nested loop (20)

PDF
Chapter 01 - p2.pdf
smarwaneid
 
PPT
X02PredCalculus.ppt
MalligaarjunanN
 
PDF
Proba stats-r1-2017
Arthur Charpentier
 
PPTX
Lecture in the topic of Predicate Calculus.pptx
Kamal El-Saady
 
PPTX
First order logic
Faiz Zeya
 
PPTX
Predicates Logic.pptx
MohammadFaizanAnsari3
 
PPTX
Unit 1 quantifiers
raksharao
 
PPTX
Nested Quantifiers.pptx
Jeevan225779
 
PDF
dma_ppt.pdf
BatoolKhan15
 
PDF
Discrete Structure Lecture #5 & 6.pdf
MuhammadUmerIhtisham
 
PDF
Formal Logic - Lesson 8 - Predicates and Quantifiers
Laguna State Polytechnic University
 
PPT
1606751772-ds-lecture-6.ppt
TejasAditya2
 
PPTX
Discreate structure presentation introduction
yashirraza123
 
PDF
Discrete Mathematics: Lecture 2 - Predicate Logic
saharsoussa
 
PPTX
Fuzzy logic and application in AI
Ildar Nurgaliev
 
PPTX
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
JessylyneSophia
 
PPTX
Universal Quantification DM
Rokonuzzaman Rony
 
PPT
PredicateLogic (1).ppt
keerthana592112
 
PPTX
PredicateLogic.pptx
santhosh sriprada
 
PPTX
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
AzurineBlues
 
Chapter 01 - p2.pdf
smarwaneid
 
X02PredCalculus.ppt
MalligaarjunanN
 
Proba stats-r1-2017
Arthur Charpentier
 
Lecture in the topic of Predicate Calculus.pptx
Kamal El-Saady
 
First order logic
Faiz Zeya
 
Predicates Logic.pptx
MohammadFaizanAnsari3
 
Unit 1 quantifiers
raksharao
 
Nested Quantifiers.pptx
Jeevan225779
 
dma_ppt.pdf
BatoolKhan15
 
Discrete Structure Lecture #5 & 6.pdf
MuhammadUmerIhtisham
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Laguna State Polytechnic University
 
1606751772-ds-lecture-6.ppt
TejasAditya2
 
Discreate structure presentation introduction
yashirraza123
 
Discrete Mathematics: Lecture 2 - Predicate Logic
saharsoussa
 
Fuzzy logic and application in AI
Ildar Nurgaliev
 
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
JessylyneSophia
 
Universal Quantification DM
Rokonuzzaman Rony
 
PredicateLogic (1).ppt
keerthana592112
 
PredicateLogic.pptx
santhosh sriprada
 
DISCRTE STRUCTURES CSY1-QUANTIFIERS.pptx
AzurineBlues
 
Ad

Recently uploaded (20)

PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
ENGlish 8 lesson presentation PowerPoint.pptx
marawehsvinetshe
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPT
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Difference between write and update in odoo 18
Celine George
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
ENGlish 8 lesson presentation PowerPoint.pptx
marawehsvinetshe
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
infertility, types,causes, impact, and management
Ritu480198
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
Ad

Nested loop

  • 1. Nepal College of Informaiton Technology Balkumari, Lalitpur May 18, 2010 ॐ NEPAL COLLEGE OF INFORMATION TECHNOLOGY  _ _ _ _ _ _ _ _ _ _ _ _ 2001
  • 2. make statements about individual subjects predicate P(x) has two parts: variable ‘x’ is the subject of statement propositional function P is the property that the subject can have property of an inference May 18, 2010
  • 3. property of description of subject in “domain or universe of discourse” P(x) predicate two condition: all values of ‘x’ true some values of ‘x’ true May 18, 2010 ‘ n’ objects ‘ x’ values
  • 4. dynamic in nature logic operator are used so called predicate logic quantifiers & variables are used & variables bound the quantifier (universal or existential or both) i.e. symbolic logic May 18, 2010
  • 5. P(x) : “x is man” For all values of ‘x’, if P(x) is true then  x P(x) exists For some values of ‘x’, if P(x) is true then  x P(x) exists “ All students in this class love discrete structure.”  x love(x, discrete structure) “ All student love some subject.”  x  y love(x, y) May 18, 2010
  • 6. Two quantifiers are nested if one is within the scope of the other, such as ∀ x ∃y (x + y = 0) Everything within the scope of a quantifier can be thought of as a propositional function. Define the propositional functions Q(x) : ∃y P(x, y) P(x, y) : x + y = 0 Then, we have ∀ x ∃y (x + y = 0) ≡ ∀x ∃y P(x, y) ≡ ∀x Q(x) . May 18, 2010
  • 7. Translation of nested quantifiers can be done by: write out what the quantifiers and predicates in the expression means convert this meaning into a simpler sentence without using any of the variables Statements involving nested quantifiers can be negated by applying the rules for negating statements involving a single quantifier Table : Negating Quantifiers May 18, 2010 Negation Equivalent Statement When Is Negation True? When False?  x P ( x )  x P ( x )  x  P ( x )  x  P ( x ) For every x , P ( x ) is false. There is an x for which P ( x ) is false. There is an x for which P ( x ) is true. P ( x ) is true for every x .
  • 8. For example, to evaluate  x  y P(x, y) we loop through all the values of x , and for each x we loop through all the values of y. Table : Quantifications of Two Variables May 18, 2010 Statement When True? When False?  x  y P(x, y)  y  x P(x, y) P(x, y) is true for every pair x, y. There is a pair x, y for which P(x, y) is false.  x  y P(x, y) For every x there is a y for which P(x, y) is true. There is an x such that P(x, y) is false for all y.  x  y P(x, y) There is an x for which P(x, y) is true for all y. For every x there is a y for which P(x, y) is false.  x  y P(x, y)  y  x P(x, y) There is a pair x, y for which P(x, y) is true. P(x, y) is false for every pair x, y.
  • 9. Example: Translate the statement “The sum of two positive integers is always positive” into a logical expression. Solution: May 18, 2010
  • 10. K. Rosen, “ Discrete Mathematical Structures with Applications to Computer Science, WCB/ Mcgraw Hill ”, edition 6 2006 http://www.slideshare.net/../predicate-logic www.cs.odu.edu/~toida/nerzic/conten .. www.earlham.edu/../terms3.htm May 18, 2010
  • 11. If you have any suggestion then let me know. May 18, 2010