Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Chapter 1: The Foundations: Logic and Proofs
Propositions and Connectives Conditionals and Bi-conditionals Quantifiers.
From Chapter 4 Formal Specification using Z David Lightfoot
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
Predicates and Quantifiers
The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
The Foundations: Logic and Proofs
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
Discrete Mathematics and Its Applications
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
Chapter 1: The Foundations: Logic and Proofs
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 1 The Foundations: Logic and Proofs 歐亞書局.
CS 103 Discrete Structures Lecture 02
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
The Foundations Logic and Proofs by raedRASHEED 2014.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Faculty of ENGINEERING | Chulalongkorn University Discrete Structures Department of Computer Engineering DISCRETE STRUCTURE.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
CS100 : Discrete Structures
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Discrete Structures – CNS 2300
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
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.
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
LECTURE 1. Disrete mathematics and its application by rosen 7 th edition THE FOUNDATIONS: LOGIC AND PROOFS 1.1 PROPOSITIONAL LOGIC.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
Introduction to Discrete Mathematics Discrete Mathematics: is the part of mathematics devoted to the study of discrete objects. Discrete Mathematics is.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Propositional Logic
CSE15 Discrete Mathematics 01/23/17
CSNB 143 Discrete Mathematical Structures
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
6/20/2018 Arab Open University Faculty of Computer Studies M131 - Discrete Mathematics 6/20/2018.
Citra Noviyasari, S.Si, MT
CMSC Discrete Structures
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
The Foundations: Logic and Proofs
CS100: Discrete structures
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
CHAPTER 1: LOGICS AND PROOF
Discrete Mathematics and Its Applications Kenneth H
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
CSE 321 Discrete Structures
Cs Discrete Mathematics
Predicates and Quantifiers
1.2 Propositional Equivalences
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Discrete Structures Prepositional Logic 2
The Foundations: Logic and Proofs
Presentation transcript:

Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods of proof 2. Combinatorial Analysis The method for counting or enumerating objects 3. Discrete Structure Abstract mathematical structures used to represent discrete objects and relationship between them What will we learn from Discrete Mathematics

4. Algorithms Thinking Algorithm is the specification for solving problems. It’s design and analysis is a mathematical activity. 5. Application and Modeling Discrete Math has applications to most area of study. Modeling with it is an extremely important problem-solving skill. How to learn Discrete Mathematics? Do as many exercises as you possibly can !

Chapter 1 The Foundations: Logic, Sets, and Functions Rules of logic specify the precise meaning of mathematics statements. Sets are collections of objects. A function sets up a special relation between two sets. 1.1 Logic Propositions A proposition is a statement that is either true or false, but not both. Propositions 1. This class has 25 students = =7 Not propositions 1. What time is it? 2. Read this carefully. 3. x+1= 2. Examples

Definition 1. Let p be a proposition. The statement “It is not the case of p” is a proposition, called the negation of p and denoted by We let propositions be represented as p,q,r,s,…. The value of a proposition is either T(true) or F(false). p: Toronto is the capital of Canada. Examples Table 1. The Truth Table for the negation of a proposition p TFTF FTFT called connectives

Definition 2. Let p and q be proposition s.The proposition “p and q”, denoted by, is the proposition that is true when both p and q are true and is false otherwise. The proposition is called the conjunction of p and q. Table 2. The Truth Table for the conjunction of two propositions p q T T F F T F TFFFTFFF Examples

Definition 3. Let p and q be proposition s.The proposition “p or q”, denoted by, is the proposition that is false when both p and q are false and is true otherwise. The proposition is called the disjunction of p and q. Table 3. The Truth Table for the disjunction of two propositions p q T T F F T F TTTFTTTF Examples

Definition 4. Let p and q be proposition s.The exclusive of p and q, denoted by, is the proposition that is true when exactly one of p and q is true and it is false otherwise. Table 4. The Truth Table for the exclusive or of two propositions p q T T F F T F FTTFFTTF Examples

Definition 5. Let p and q be proposition s.The implication is the proposition that is false when p is true and q is false and true otherwise , where p is called hypothesis and q is called the conclusion. Table 5. The Truth Table for the implication p q T T F F T F TFTTTFTT Examples “If p, then q” or “ p implies q”. Another example: If today is Friday, then 2+3=6.

Definition 6. Let p and q be proposition s.The biconditional is the proposition that is true when p and q have the same truth values and is false otherwise. Table 6. The Truth Table for the biconditional p q T T F F T F TFFTTFFT Examples “p if and only if q”.

Translating English Sentences into Logical Expressions Example 1 You can access the Internet from campus only if you are a computer science major or you are not a freshman. a. You can access the Internet from campus. c. You are a computer science major. f. You are freshman. The sentence can be represented as Example 2 You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old. q. You can ride the roller coaster. r. You are under 4 feet tall. s. You are older than 16 years old. The sentence can be represented as

Logic and Bit Operations A bit has two values: 1(true) and 0(false). A variable is called a Boolean variable if its value is either true or false. Bit operations are written to be AND, OR and XOR in programming languages. Table 7. Table for the bit operations OR,AND and XOR x0011x0011 y0101y Example Extend bit operations to bit strings bitwise OR bitwise AND bitwise XOR

1.2 Propositional Equivalences Definition 1. A tautology is a compound proposition that is always true no matter what the values of the propositions that occur in it. A contradiction is a compound proposition that is always false . A contingency is a proposition that is neither a tautology nor a contradiction. Table 1. Examples of a Tautology and a Contradiction. pTFpTF FTFT TTTT FFFF a contradiction a tautology Example 1.

Logic Equivalences Definition 2. The proposition p and q are called logically equivalent if is a tautology. The notation denotes that p and q are logically equivalent. Using a truth table to determine whether two propositions are equivalent Example 2 Example 3 equivalent

Some important equivalences.

Example 4 Example 5

1.3 Predicates and Quantifiers Propositional function A statement involving a variable x is P(x) is said to be a propositional function if x is a variable and P(x) becomes a proposition when a value has been assigned to x. In general, a statement involving the n variables Example 1 Let P(x) denote the statement “x>3”. What are the truth values of P(4) and P(2)? Example 2 Let Q(x,y) denote the statement “x=y+3”. What are the truth values of the propositions Q(1,2) and Q(3,0)?

Quantifiers The universal quantification of P(x),denoted as is the proposition “P(x) is true for all values of x in the universe of discourse.” Solution P(x): x has studied calculus. S(x): x is in this class. The statement can be expressed as universal quantifier Example 3 Express the statement “Every student in this class has studied calculus.

existence quantifier The existential quantification of P(x),denoted as is the proposition “There exists an element x in the universe of discourse such that P(x) is true.”

Solution: Every student in your school has a computer or has a friend who has a computer. Solution: There is a student none of whose friends are also friends with each other.

Translating Sentences into Logical Expressions Example 10 Express the statements “Some student in this class has visited Mexico” and “every student in this class has visited either Canada or Mexico using quantifiers. Example 11 Express the statement “Everyone has exactly one best friend” as a logical expression.

Example 12 Express the statement “There is a woman who has taken a flight on every airline in the world. Negations: the negation of quantified expressions. Example 14 There is a student in the class who has taken a course in calculus. Example 13 Every student in the class has taken a course in calculus.