Discrete Structures Lect 1
Discrete Structures Lect 1
Lecture#01
By
Dr. Inayat Khan
PhD (Web Engineering)
Assistant Professor of Computer Science
UET Mardan
What is Discrete Structures
individual steps.
• Discrete Structure
• Is the branch of mathematics dealing with objects that can assume only
• The truth values “true” and “false” are, respectively, denoted by the
letters T and F.
Logic
• EXAMPLES:
• Propositions
• 1) Grass is green.
• 2) 4 + 2 = 6
• 3) 4 + 2 = 7
• 4) There are four fingers in a hand.
• Not Propositions
• 1) Close the door.
• 2) x is greater than 2.
• 3) He is very rich
Logic
• UNDERSTANDING STATEMENTS
1) x + 2 is positive. Not a statement
5) -1 > 0 A statement
6) x + y = 12 Not a statement
Logic
• COMPOUND STATEMENT
• Simple statements could be used to build a compound statement.
• LOGICAL CONNECTIVES
• EXAMPLES:
1. “3 + 2 = 5” and “Lahore is a city in Pakistan”
• q = “17 is divisible by 3”
p ~p
T F
F T
CONJUNCTION (∧):
• If p and q are statements, then the conjunction of p and q is “p and
q”, denoted as “p ∧ q”.
• Remarks
• p ∧ q is true only when both p and q are true.
p q p∧q
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 “p ∨ q”.
• Remarks:
• p ∨ q is true when at least one of p or q is true.
p q p∨q
T T T
T F T
F T T
F F F
SUMMARY
1. What is a statement?