CSE 1201, Week#1, Lecture#1
CSE 1201, Week#1, Lecture#1
Discrete Mathematics
Lecture 1
Introduction , Course Overview
and Propositional Logic
Course Teachers:
Course Syllabus
Reference Books
Introduction
Discrete vs Continuous
Uses of Discrete Mathematics in
Computer Science
Propositional Logic
Course Syllabus
CSE-1201 3.00 hours in a week,
3.00 Cr.
Discrete Mathematics
Mathematical Logic: propositional calculus and predicate
calculus
Set theory: sets, relations, partial ordered sets, functions
Mathematical reasoning and proof techniques
Counting: permutations, combinations, principles of
inclusion and exclusion
Discrete Probability
Recurrence relations and recursive algorithms
Growth of functions
Graph theory: graphs, paths, trees, cycles
Algebraic structures: rings and groups
Reference Books
Discrete
mathematics is the study of
mathematical structures that are
fundamentally discrete rather than
continuous (wikipedia).
Uses for Discrete Math in Computer Science
Proposition:
A proposition is a declarative sentence
(that is, a sentence that declares a fact)
that is either true or false, but not both.
Example
• Washington, D.C., is the capital of the United States of
America
• Dhaka is the capital of Bangladesh
• Dhaka is the capital of India
• 8 + 2 = 10
• 4 + 4 = 10
Proposition or Not?
12
Propositional Variable
Definition
variables that represent propositions, just as
letters are used to denote numerical variables.
Example :
p = Dhaka is the capital of Bangladesh.
13
Some common terms
The truth value
The truth value of a proposition is true, denoted
by T, if it is a true proposition, and the truth value
of a proposition is false, denoted by F, if it is a
false proposition.
14
Some common terms
Propositional Calculus or Propositional Logic.
The area of logic that deals with propositions is
called the propositional calculus or propositional
logic.
Compound Propositions
New propositions formed from existing
propositions using logical operators are called
compound propositions.
15
Introduction to Logical
Operators
• About a dozen logical operators
• Similar to algebraic operators
+*-/
Basic Operators
1. Negation (NOT)
2. Conjunction (AND)
3. Disjunction (OR)
16
Logical operators: Not
Definition
A “not” operation switches (negates) the truth
value.
Symbol: or ~
Truth table
• If
P p
• ?
T F
F T
17
Logical operators: And
Definition
An “and” operation is true if both operands are
true.
Symbol:
p = “Today is Friday” p q pq
q = “Today is my birthday” T T T
pq = ? T F F
18
Logical operators: Or
Definition
An “or” operation is true if either operands or both are true.
Symbol:
p q pq
p = “Today is Friday”
T T T
q = “Today is my birthday”
pq=? T F T
p q = “Today is Friday or today is my
birthday” F T T
F F F
19
More Logical Operators
More Operators
1. Exclusive OR
2. Conditional
3. Bicondition
20
Logical operators: Exclusive Or
Definition
21
Logical operators: Conditional
Definition
Let p and q be propositions. The conditional
statement p→q is the proposition “if p, then q.” The
conditional statement p→q is false when p is true
and q is false, and true otherwise.
pq = “If today is Friday, then today is my • p implies q
birthday” • If p, q
• In the conditional statement p→q, • p only if q
• p is called the hypothesis (or antecedent or • p is sufficient for
premise) q
• q if p
• q is called the conclusion (or consequence)
• q whenever p
• q is necessary for
p
22
Logical operators: Conditional
p → q = ¬p q p q pq
T T T
the the
antecedentconsequence T F F
I will
F T T do
Let, p = “Maria learns discrete mathematics” only
for
and F F T myself
q = “Maria will find a good job.”
Express the statement p→q as a statement in
English.
If I am
elected,
then I will
lower taxes.
Logical operators: Bi-
Conditional
Definition
Let p and q be propositions. The biconditional statement
p↔q is the proposition “p if and only if q.” The biconditional
statement p↔q is true when p and q have the same truth
values, and is false otherwise.
24
Logical operators: Bi-
Conditional
True when both has same truth values and otherwise false.
• Alternatively, it means “(if p then q)
and (if q then p)” (p→q)∧(q→p). p q pq
• Note that a bi-conditional has the T T T
opposite truth values of the exclusive
or T F F
• Let p = “You take this class” and q = “You F T F
get a grade”
• p q = “You take this class if and only if F F T
you get a grade”
• Alternatively, it means “If you take this
class, then you get a grade and if you get
a grade then you take (took) this class”
END
Stay Home
Stay Safe