Discrete Mathematics Lecture # 1. Course Objectives  Express statements with the precision of formal logic.  Analyze arguments to test their validity.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Discrete Mathematics Lecture 1 Logic of Compound Statements
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
CS128 – Discrete Mathematics for Computer Science
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
An Introduction to Propositional Logic Translations: Ordinary Language to Propositional Form.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
Copyright © Cengage Learning. All rights reserved.
Adapted from Discrete Math
Predicates and Quantifiers
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
Discrete Mathematics and Its Applications
Lecture for Week Spring.   Introduction to Propositional Logic  Types of Proposition  Operator and Truth table Agenda.
CS 490 Mathematical Logic, Combinatorics, Counting Arguments, Graph Theory, Number Theory, Discrete Probability, Recurrence Relation. Thao Tran.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Fall 2010 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Dr. Amer Rasheed COMSATS Institute of Information Technology
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Discrete Mathematics MCA 105 LOGICS Preeti Mehta.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
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.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Thinking Mathematically
1/10/ Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta Office: CSEB 3043 Phone:
Section 1.1 Propositions and Logical Operations. Introduction Remember that discrete is –the study of decision making in non-continuous systems. That.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
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 Mathematics Lecture # 4. Conditional Statements or Implication  If p and q are statement variables, the conditional of q by p is “If p then.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
Lecture 2 Discrete Mathematics 9/3/ Introduction What is Discrete Mathematics? Discrete Mathematics concerns processes that consist of a sequence.
Discrete Structures MT217 Lecture 01. Course Objectives Express statements with the precision of formal logic Analyze arguments to test their validity.
Chapter 1 Propositional Logic
Presented by: Tutorial Services The Math Center
Logic.
DISCRETE MATHEMATICS CHAPTER I.
Lecture 1 – Formal Logic.
CHAPTER 3 Logic.
Chapter 3: Introduction to Logic
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
COMP 1380 Discrete Structures I Thompson Rivers University
Principles of Computing – UFCFA3-30-1
Logic – Bell Ringer.
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
Argument Lecture 5.
CHAPTER 1: LOGICS AND PROOF
CS201: Data Structures and Discrete Mathematics I
Discrete Math (2) Haiming Chen Associate Professor, PhD
Discrete Mathematics and Its Applications Kenneth H
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Discrete Mathematics Lecture 2: Propositional Logic
Foundations of Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
CS201: Data Structures and Discrete Mathematics I
CHAPTER 3 Logic.
Truth tables.
Presentation transcript:

Discrete Mathematics Lecture # 1

Course Objectives  Express statements with the precision of formal logic.  Analyze arguments to test their validity.  Apply the basic properties and operations related to sets.  Apply to sets the basic properties and operations related to relations and function.  Define terms recursively.  Prove a formula using mathematical induction

Course Objectives  Prove statements using direct and indirect methods.  Compute probability of simple and conditional events.  Identify and use the formulas of combinatorics in different problems.  Illustrate the basic definitions of graph theory and properties of graphs.  Relate each major topic in Discrete Mathematics to an application area in computing

Recommended Book  Discrete Mathematics with Applications (fourth edition or later) by Susanna S. Epp

Main Topics 1. Logic 2. Sets & Operations on sets 3. Relations & Their Properties 4. Functions 5. Sequences & Series 6. Recurrence Relations 7. Mathematical Induction 8. Loop Invariants 9. Combinatorics 10. Probability 11. Graphs and Trees

Marks Distribution 1. Pre-Mid  Assignments10%  Quizzes/Tests10%  Mid Term25% 2. Post-Mid  Assignments10%  Quizzes/Tests10%  Final Term30%

What is DM?  Discrete Mathematics concerns processes that consist of a sequence of individual steps.

Logic  Logic is the study of the principles and methods that distinguishes between a valid and an invalid argument.

Statement  A statement is a declarative sentence that is either true or false but not both.  A statement is also referred to as a proposition

Examples 1. Grass is green = = 7 4. There are four fingers in a hand.

Examples Truth Values 1. Grass is green. T = 6 T = 7 F 4. There are four fingers in a hand. F

Not Proposition  Close the door.  x is greater than 2.  He is very rich

Rule  If the sentence is preceded by other sentences that make the pronoun or variable reference clear, then the sentence is a statement.

Example  x = 1  x > 2 x > 2 is a statement with truth-value FALSE.

Example  Bill Gates is an American  He is very rich  He is very rich is a statement with truth-value TRUE.

Understanding Statements  x + 2 is positive.  May I come in?  Logic is interesting.  It is hot today.  -1 > 0  x + y = 12

Understanding Statements  x + 2 is positive.Not a statement  May I come in?Not a statement  Logic is interesting. A statement  It is hot today. A statement  > 0A statement  6. x + y = 12Not a statement

Compound Statements  Simple statements could be used to build a compound statement.  Examples  “3 + 2 = 5” and “Lahore is a city in Pakistan”  “The grass is green” or “ It is hot today”  “Discrete Mathematics is not difficult to me” AND, OR, NOT are called LOGICAL CONNECTIVES

Symbolic Representation  Statements are symbolically represented by letters such as p, q, r,...  EXAMPLES:  p = “Islamabad is the capital of Pakistan”  q = “17 is divisible by 3”

Logical Connectives

Examples  Statements are symbolically represented by letters such as p, q, r,...  EXAMPLES:  p = “Islamabad is the capital of Pakistan”  q = “17 is divisible by 3”

Symbolic Representation  p = “Islamabad is the capital of Pakistan”  q = “17 is divisible by 3”  p  q = “Islamabad is the capital of Pakistan and 17 is divisible by 3”  p  q = “Islamabad is the capital of Pakistan or 17 is divisible by 3”  ~ p = “It is not the case that Islamabad is the capital of Pakistan” or simply  “Islamabad is not the capital of Pakistan”

Translating from English to Symbols  Let p = “It is hot”, and q = “It is sunny” SENTENCE  It is not hot.  It is hot and sunny.  It is hot or sunny.  It is not hot but sunny.  It is neither hot nor sunny.

Translating from English to Symbols  Let p = “It is hot”, and q = “It is sunny” SENTENCESYMBOLIC FORM  It is not hot.~ p  It is hot and sunny.p  q  It is hot or sunny.p  q  It is not hot but sunny. ~ p  q  It is neither hot nor sunny.~ p  ~ q

Example  Let h = “Zia is healthy”  w = “Zia is wealthy”  s = “Zia is wise” Translate the compound statements to symbolic form:  Zia is healthy and wealthy but not wise.  Zia is not wealthy but he is healthy and wise.  Zia is neither healthy, wealthy nor wise.

Example  Let h = “Zia is healthy”  w = “Zia is wealthy”  s = “Zia is wise” Translate the compound statements to symbolic form:  Zia is healthy and wealthy but not wise. (h  w)  (~s)  Zia is not wealthy but he is healthy and wise.~w  (h  s)  Zia is neither healthy, wealthy nor wise. ~h  ~w  ~s

Example  Letm = “Ali is good in Mathematics”  c = “Ali is a Computer Science student”  Translate the following statement forms into plain English:  ~ c  c  m  m  ~c

Example  Letm = “Ali is good in Mathematics”  c = “Ali is a Computer Science student”  Translate the following statement forms into plain English:  ~ cAli is not a Computer Science student  c  mAli is a Computer Science student or good in Maths.  m  ~cAli is good in Maths but not a Computer Science student

Truth Table  A convenient method for analyzing a compound statement is to make a truth table for it.  A truth table specifies the truth value of a compound proposition for all possible truth values of its constituent propositions.

Negation (~)  If p is a statement variable, then negation of p, “not p”, is denoted as “~p”  It has opposite truth value from p i.e., if p is true, ~p is false; if p is false, ~p is true.

Conjunction (^)  If p and q are statements, then the conjunction of p and q is “p and q”, denoted as “p  q”.  It is true when, and only when, both p and q are true. If either p or q is false, or if both are false, p  q is false.

Disjunction/Inclusive OR(v)  If p & q are statements, then the disjunction of p and q is “p or q”, denoted as “p  q”. It is true when at least one of p or q is true and is false only when both p and q are false.