Lecture 01
Lecture 01
LECTURE # 1
Course Objective:
1.Express statements with the precision of formal logic
2.Analyze arguments to test their validity
3.Apply the basic properties and operations related to sets
4.Apply to sets the basic properties and operations related to relations and functions
5.Define terms recursively
6.Prove a formula using mathematical induction
7.Prove statements using direct and indirect methods
8.Compute probability of simple and conditional events
9.Identify and use the formulas of combinatorics in different problems
10.Illustrate the basic definitions of graph theory and properties of graphs
11.Relate each major topic in Discrete Mathematics to an application area in computing
1.Recommended Books:
1.Discrete Mathematics with Applications (second edition) by Susanna S. Epp
2.Discrete Mathematics and Its Applications (fourth edition) by Kenneth H. Rosen
1.Discrete Mathematics by Ross and Wright
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. Loop Invariants
10. Combinatorics
11. Probability
12. Graphs and Trees
Discrete Continuous
Set of Integers:
• • • • • •
3 -2 -1 0 1 2
Set of Real Numbers:
• • • • • • •
-3 -2 -1 0 1 2
What is Discrete Mathematics?
:
1
Discrete Mathematics
2
Discrete Mathematics
Disjunction or Vel
EXAMPLES:
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 SYMBOLIC FORM
1.It is not hot. ~p
2.It is hot and sunny. p q
3.It is hot or sunny. pq
4.It is not hot but sunny. ~ p q
5.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:
1.Zia is healthy and wealthy but not wise. (h w) (~s)
2.Zia is not wealthy but he is healthy and wise. ~w (h s)
3.Zia is neither healthy, wealthy nor wise. ~h ~w ~s
TRANSLATING FROM SYMBOLS TO ENGLISH
3
Discrete Mathematics
:
Let m = “Ali is good in Mathematics”
c = “Ali is a Computer Science student”
Translate the following statement forms into plain English:
1.~ c Ali is not a Computer Science student
2.c m Ali is a Computer Science student or good in Maths.
3.m ~c Ali is good in Maths but not a Computer Science student
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.
TRUTH TABLE FOR
~p
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, pq is false.
TRUTH TABLE FOR
pq
p q pq
T T T
T F F
F T F
F F F
DISJUNCTION ()
or INCLUSIVE OR
If p & q are statements, then the disjunction of p and q is “p or q”, denoted as
4
Discrete Mathematics
“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.
p q pq
T T T
T F T
F T T
F F F