CPCS222 Discrete Structures I

Slides:



Advertisements
Similar presentations
Discrete Mathematics Math 6A Instructor: M. Welling.
Advertisements

CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
Welcome to CS/MATH 320L – Applied Discrete Mathematics Spring 2015
Propositions and Truth Tables
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Discrete Maths 2. Propositional Logic Objective
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
September1999 CMSC 203 / 0201 Fall 2002 Week #1 – 28/30 August 2002 Prof. Marie desJardins.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Thinking Mathematically
Chapter 1: The Foundations: Logic and Proofs
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.
Discrete Structures Class Meeting 1. Outline of Today Information sheet Questionnaire Quiz 0 Learning mathematics – Reading math – Solving problems.
Spring 2003CMSC Discrete Structures1 Let’s get started with... Logic !
3/6/20161 Let’s get started with... Logic !. 3/6/20162 Logic Crucial for mathematical reasoningCrucial for mathematical reasoning Used for designing electronic.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
1 Statements and Operations Statements and operators can be combined in any way to form new statements. PQ PQPQPQPQ  (P  Q) (  P)  (  Q) TTTFF.
Ch01-Logic 1. Logic Crucial for mathematical reasoningCrucial for mathematical reasoning Used for designing electronic circuitryUsed for designing electronic.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
Simple Logic.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Chapter 1 Propositional Logic
Discrete Mathematical
2. The Logic of Compound Statements Summary
Propositional Logic.
Discrete Mathematics Lecture 1 Logic of Compound Statements
CSNB 143 Discrete Mathematical Structures
Thinking Mathematically
Truth Tables and Equivalent Statements
Logic.
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
MATH 245 Spring 2009 This is mathematics for computer science
COT 3100, Spr Applications of Discrete Structures
(CSC 102) Discrete Structures Lecture 2.
Discrete Mathematics Lecture # 2.
Mathematics for Computing
CMSC Discrete Structures
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
Chapter 8 Logic Topics
CSCI 3310 Mathematical Foundation of Computer Science
Administrivia Course Web:
Propositional Equivalences
Information Technology Department
Discrete Structures CSC 281
CS 220: Discrete Structures and their Applications
CHAPTER 1: LOGICS AND PROOF
CSE 311 Foundations of Computing I
Propositional Equivalences
CMSC Discrete Structures
Applied Discrete Mathematics Week 1: Logic
CSE 311 Foundations of Computing I
(1.4) An Introduction to Logic
Discrete Mathematics and Its Applications Kenneth H
Lecture 2: Propositional Equivalences
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
CSE 321 Discrete Structures
Discrete Mathematics Lecture 1: Introduction
MAT 3100 Introduction to Proof
Discrete Mathematics Lecture 2: Propositional Logic
Cs Discrete Mathematics
Discrete Mathematics Lecture 1: Introduction
Discrete Structures Prepositional Logic 2
The Foundations: Logic and Proofs
Presentation transcript:

CPCS222 Discrete Structures I Intro + Logic

Welcome to CPCS222 Meet your Instructor.. Course Syllabus will be sent by email.. Textbook: “Discrete Mathematics and Its Applications”, by Kenneth Rosen, 6th ed. Important Dates: 1st Exam: Monday 3-12-1429H , 1-12-2008G 2nd Exam: Monday 22-1-1430H , 19-1-2009G Important Notes: Absence Policy Class Behavior

Why Study Discrete Structures Digital computers are based on discrete “atoms” (bits). Therefore, both a computer’s structure (circuits) and operations (execution of algorithms) can be described by discrete math.

Starting with Logic.. Crucial for mathematical reasoning Used for designing electronic circuitry Logic is a system based on propositions. A proposition is a statement that is either true or false (not both). We say that the truth value of a proposition is either true (T) or false (F).

“Elephants are bigger than mice.” Propositional Logic.. “Elephants are bigger than mice.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? true

Propositional Logic.. “520 < 111” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false

This is called a propositional function or open sentence. Propositional Logic.. “y > 5” Is this a statement? yes Is this a proposition? no Its truth value depends on the value of y, but this value is not specified. This is called a propositional function or open sentence.

“Today is January 1 and 99 < 5.” Propositional Logic.. “Today is January 1 and 99 < 5.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false

“Please do not fall asleep.” Only statements can be propositions Propositional Logic.. “Please do not fall asleep.” Is this a statement? no It’s a request no Is this a proposition? Only statements can be propositions

“x<y if and only if y>x.” Propositional Logic.. “x<y if and only if y>x.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? true

Compound Propositions One or more propositions can be combined to form a single compound proposition. Formalized by: Denoting propositions with p, q, r, and s Logical Operators

Logical Operators Negation (NOT) Conjunction (AND) Disjunction (OR) Exclusive or (XOR) Implication (if – then) Biconditional (if and only if) Truth tables can be used to show how these operators can combine propositions to compound propositions.

Truth Tables Truth Table for ~p Truth Table for p q   

Truth Tables Truth Table for p q Truth Table for p q

Precedence of logical Operation Operator Precedence  1   2 3   4 5 Exercises: (p   q)  q (p  q)  (p  q)

Logical Operators Converse is the proposition q  p of p q Contrapositive of p q is q  p The proposition p  q is called the inverse of p q Only the contrapositive always has the same truth value of p q

Statements and Operations Statements and operators can be combined in any way to form new statements. P Q PQ  (PQ) (P)(Q) (PQ)(P)(Q) T F (PQ) Ξ (P)(Q). (Equivalence) De Morgan’s laws

Tautologies and Contradictions A tautology is a statement that is always true. Examples: R(R) (PQ)(P)(Q) If ST is a tautology, we write ST. If ST is a tautology, we write ST.

Tautologies and Contradictions A contradiction is a statement that is always false. Examples: R(R) ((PQ)(P)(Q)) The negation of any tautology is a contra- diction, and the negation of any contradiction is a tautology.

Logical Equivalence A compound preposition that have the same truth values are called Logically equivalent ( Ξ ) Examples: Show that (p  q)Ξ p   q (p  q)Ξ ( p  q) by p  qΞ  p  q Ξ ( p)   q Ξ p   q

Hints For some important equivalence check table 6 , 7, and 8 page 25 Table 5 in Section 1.2 shows many useful laws. Exercises 1 and 7 in Section 1.2 may help you get used to propositions and operators.

Lecture Summary Introducing Discrete Structures. What is Propositional Logic. What is a proposition. What is a compound proposition. What are logical operators. What is a truth table.