Discrete Structures – CNS 2300

Slides:



Advertisements
Similar presentations
1.3 Predicates and Quantifiers
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Discrete Mathematics Math 6A Instructor: M. Welling.
Discrete Structures Chapter 3: The Logic of Quantified Statements
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
The Foundations: Logic and Proofs
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
Discrete Mathematics and Its Applications
1 Predicates and Quantifiers CS/APMA 202, Spring 2005 Rosen, section 1.3 Aaron Bloomfield.
Nested Quantifiers. 2 Nested Iteration Let the domain be {1, 2, …, 10}. Let P(x, y) denote x > y.  x,  y, P(x, y) means  x, (  y, P(x, y) ) Is the.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
© Jalal Kawash 2010Peeking into Computer Science George Boole English Mathematician His The Mathematical Analysis of Logic, 1848 is the first.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
1 Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 1 The Foundations: Logic, Sets,
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
Section Predicates & Quantifiers. Open Statement 2 x > 8 p < q -5 x = y + 6 Neither true nor false.
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
1 Sections 1.3 and 1.4 Predicates & Quantifiers. 2 Propositional Functions In a mathematical assertion, such as x < 3, there are two parts: –the subject,
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Chapter 1: The Foundations: Logic and Proofs
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02: QUANTIFIERS Sections 1.3 and 1.4 Jarek Rossignac CS1050:
Lecture Predicates and Quantifiers 1.4 Nested Quantifiers.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
COMP 170 L2 L08: Quantifiers. COMP 170 L2 Outline l Quantifiers: Motivation and Concepts l Quantifiers: Notations and Meaning l Saying things with Quantified.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Thinking Mathematically Statements, Negations, and Quantified Statements.
CSci 2011 Recap ^Propositional operation summary not andorconditionalBi-conditional pq ppqqpqpqpqpqpqpqpqpq TTFFTTTT TFFTFTFF FTTFFTTF FFTTFFTT.
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 1 The Foundations: Logic, Sets,
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Discrete Mathematical الرياضيات المتقطعة. Example 12 June OR Q(x,y): x+y=x-y a) Q(1,1): 2=0 False b) Q(2,0): 2+0=2-0 True c) Q(1,y): 1+y=1-y False(take.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Logic Hubert Chan [O1 Abstract Concepts] [O2 Proof Techniques]
Discrete Structures – CNS 2300
CSE15 Discrete Mathematics 01/23/17
Predicates & Quantifiers
Logic Hubert Chan [O1 Abstract Concepts] [O2 Proof Techniques]
Chapter 1 The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics and Its Applications Kenneth H
Lecture 1.3: Predicate Logic
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
George Boole English Mathematician
Predicates and Quantifiers
CS201: Data Structures and Discrete Mathematics I
Lecture 1.3: Predicate Logic
Presentation transcript:

Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5th Edition) Chapter 1 The Foundations: Logic and Proof, Sets and Functions

Predicates & Quantifiers Section 1.3-1.4 Predicates & Quantifiers

Open Statement x >8 p < q -5 x = y + 6 Neither true nor false

Propositional Functions x > 8 x is greater than 8. x subject is greater than 8. predicate

Propositional Functions x subject is greater than 8. predicate P(x) propositional function P at x

Propositional Functions There are two ways a propositional function P(x) “x > 8” can become true or false (a proposition)

P(x) “x > 8” P(5) “5 > 8” FALSE P(12) “12 > 8” TRUE 1. The variable may be given a value P(5) “5 > 8” FALSE P(12) “12 > 8” TRUE

Propositional Functions (two variables) Let Q(x,y) be the statement “x is the capital of y.” What are the truth values of: Q(Carson City, Nevada) Q(Detroit, Michigan) Q(Nebraska, Lincoln)

P(x) “x > 8” Quantifiers 2. A propositional function can become true or false (a proposition) by using quantifiers.

Universal Quantification A Universal Quantifier states that P(x) is true for all values of x in the universe of discourse. states the universal quantification of P(x)

Every student in this class has had CNS1250 or its equivalent. Let P(x) denote the statement “x has had CNS1250 or its equivalent.” represents the statement, where the universe of discourse for x is this class.

True

False

False

False

If S(x) represented the statement “x is in this class” and P(x) denotes the statement “x has had CSIS1010 or its equivalent.” also represents the statement.

Universe of Discourse It is important to note that the universe of discourse must be defined before the logical value of a propositional function may be discussed.

No student spends more than five hours every weekday in class Example: Let P(x) be the statement “ x spends more than five hours every weekday in class,” where the universe of discourse for x is the set of students. Express in English. No student spends more than five hours every weekday in class

Existential Quantification States that P(x) is true for some value of x in the universe of discourse. states the existential quantification of P(x)

Existential Quantification There is at least one person in this class who has completed CNS2400. Let P(x) represent the statement “x has completed CNS2400” where the universe of discourse is this class. then represents the above statement.

True

True

True

False

Example: Let P(x) be the statement “ x spends more than five hours every weekday in class,” where the universe of discourse for x is the set of students. Express in English. There is some student (maybe more than one) who does not spend more than five hours every weekday in class.

Quantifiers FALSE TRUE There is some x for which P(x) is false P(x) must be true for every x. P(x) must be false for every x. There is some x for which P(x) is true.

Binding Variables When a quantifier is used on the variable x or when we assign a value to this variable, we say that this occurrence of the variable is bound. Variable food, now bound with value fly.

Quantifiers with Multiple Variables

Multiple Variables

Take care in reading these. Multiple Variables Take care in reading these.

Example: Let P(x,y) be the statement “x has taken class y,” where the universe of discourse for x is the set of all students in this class and for y is the set of all CNS courses at UVSC.

For every student in this class, there is a CNS class that student has taken. Students in this class CNS Courses

There is a CNS course that every student in this class has taken. Students in this class CNS Courses

Example: page 33, # 6 Let P(x,y) be the statement “x has taken class y,” where the universe of discourse for x is the set of all students in this class and for y is the set of all CNS courses at UVSC.

For every (pick any one you want) CNS course, there is a student in this class who has taken the course. Students in this class CNS Courses

There is a student in this class who has taken every CNS class. Students in this class CNS Courses

Negating Quantifiers

Let P(x) be the statement “the word x contains the letter m.” Example Let P(x) be the statement “the word x contains the letter m.” There is no word that contains the letter m. For any word you pick, that word does not contain the letter m.

Let P(x) be the statement “the word x contains the letter m.” Example Let P(x) be the statement “the word x contains the letter m.” Not every word contains the letter m. There is a word that does not contain the letter m.

Problems from the text Homework will not be collected. However, you should do enough problems to feel comfortable with the concepts. For these sections the following problems are suggested. Pages 40-42 1,3,7,9,13,19,21,29 Pages 51-54 1,3 7,9,15,27

finished