SlideShare a Scribd company logo
3
Most read
5
Most read
6
Most read
Discrete Structures
BY ABDUR REHMAN USMANI
Logic
o Study of the principles and techniques
of reasoning
o Basis of all mathematical reasoning,
and of all automated reasoning.
o Foundation for computer science
operation.
o For reasoning about their truth or falsity.
Proposition
o A proposition is a *declarative
sentence/statement that is either true or
false, but not both.
• Islamabad is the capital of the Pakistan.
• 1 + 1 = 2
• If 1=2 then roses are red.
These are not proposition
 What time is it?
 x + 1 = 2
Proposition
o We use letters to denote
propositional variables (or
statement variables), that
is p, q, r, s, . . . .
o We say that the truth value of a
proposition is either true (T) or
false (F).
Proposition
“Today is January 27”
Is this a statement? Yes
Is this a proposition? yes
What is the truth value
of the proposition? false
Connectives/Logical Operators
o Compound propositions(statements),
are formed from existing propositions
using logical operators.
Truth Table
o The truth value of the
compound proposition
depends only on the truth
value of the component
propositions. Such a list is a
called a truth table.
Negation (NOT) 
o If p = “I have brown hair.”
o then ¬p = “I do not have
brown hair.”
P  P
true (T) false (F)
false (F) true (T)
Conjunction (AND) 
 If p=“I will have salad for lunch.” and q=“I will have
biryani for dinner .”, then p∧q=“I will have salad for
lunch and AND I will have biryani for dinner.”
P Q P Q
T T T
T F F
F T F
F F F
Disjunction (OR) 
o p=“My car has a bad engine.”
o q=“My car has a bad carburetor.”
o p∨q=“Either my car has a bad engine,
or my car has a bad carburetor.”
P Q P  Q
T T T
T F T
F T T
F F F
Connectives
Let p=“It rained last night”,
q=“The sprinklers came on last night,”
r=“The lawn was wet this morning.”
Translate each of the following into English:
¬p = “It didn’t rain last night.”
r ∧ ¬p =“The lawn was wet this morning,
and it didn’t rain last night.”
¬ r ∨ p ∨ q =“Either the lawn wasn’t wet this
morning, or it rained last night, or the sprinklers
came on last night.”
Connectives
Let p= “It is hot”
q=““It is sunny”
1. It is not hot but it is sunny.
2. It is neither hot nor sunny.
Solution
1. ⌐p∧q
2. ⌐p∧ ⌐q
Exclusive Or (XOR) 
o p = “I will earn an A in this course,”
o q = “I will drop this course,”
o p ⊕ q = “I will either earn an A in this
course, or I will drop it (but not both!)”
P Q PQ
T T F
T F T
F T T
F F F
Exclusive Or (XOR) 
o The exclusive or of p and q,
denoted by p ⊕ q, is the
proposition that is true when
exactly one of p and q is true
and is false otherwise.
P Q PQ
T T F
T F T
F T T
F F F
• p = “I will earn an A in this
course,”
• q = “I will drop this course,”
• p ⊕ q = “I will either earn
an A in this course, or I will
drop it (but not both!)”
logic, preposition etc
Implication (if - then) 
o 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. p is
called the hypothesis and q is
called the conclusion
Implication (if - then) 
P Q PQ
T T T
T F F
F T T
F F T
p = “You study hard.”
q = “You will get a
good grade.”
p → q = “If you study
hard, then you will get
a good
grade.”
Biconditionals (if and Only If) 
 p = “Zardari wins the 2008 election.”
 q = “Zardari will be president for five
years.”
 p ↔ q = “If, and only if, Zardari wins the
2008 election, Zardari will be president
for five years.”
p ↔ q does not imply that p
and q are true, or that
either of them causes the other,
or that they have a
common cause.

More Related Content

PPTX
introduction to probability
PDF
Discrete probability distribution (complete)
PDF
Chapter-3: DIRECT PROOF AND PROOF BY CONTRAPOSITIVE
PPTX
Hypergeometric probability distribution
PPTX
PPTX
Proof By Contradictions
PPTX
CMSC 56 | Lecture 5: Proofs Methods and Strategy
PPTX
CMSC 56 | Lecture 11: Mathematical Induction
introduction to probability
Discrete probability distribution (complete)
Chapter-3: DIRECT PROOF AND PROOF BY CONTRAPOSITIVE
Hypergeometric probability distribution
Proof By Contradictions
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 11: Mathematical Induction

What's hot (20)

PPT
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
PPTX
Truth tables presentation
PPTX
Metric space
PPT
Dependent T Test
PPTX
Proof by contradiction
PPT
Statistics and probability
PPTX
Percentiles by using normal distribution
PPTX
Chapter1p3.pptx
PPTX
Probability
PPS
Chap#9 hypothesis testing (3)
PPTX
Estimating a Population Proportion
PPTX
Discrete uniform distributions
PPT
1.3 Deduction And Induction
PPTX
Propositional logic
PPT
Predicates and Quantifiers
PPT
Basic concept of probability
PPTX
The Central Limit Theorem
PPTX
The Standard Normal Distribution
PPTX
Probability&Bayes theorem
PPT
Mcs lecture19.methods ofproof(1)
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Truth tables presentation
Metric space
Dependent T Test
Proof by contradiction
Statistics and probability
Percentiles by using normal distribution
Chapter1p3.pptx
Probability
Chap#9 hypothesis testing (3)
Estimating a Population Proportion
Discrete uniform distributions
1.3 Deduction And Induction
Propositional logic
Predicates and Quantifiers
Basic concept of probability
The Central Limit Theorem
The Standard Normal Distribution
Probability&Bayes theorem
Mcs lecture19.methods ofproof(1)
Ad

Similar to logic, preposition etc (20)

PDF
Propositional Logic.pdf
PPTX
Chapter1p1
PDF
Chapter 01 - p1.pdf
PDF
Propositional Logic Discrete Mathematics
PDF
Chapter1p1.pdf
PPTX
Drinkfromme.pptx
PPTX
logicj-160412050513.pptx
PPTX
Chapter1 part1 : PROPOSITIONAL LOGIC || DISCRETE MATHEMATICS
PPTX
Chapter1p1 2.pptx
PPTX
Chapter1p1.pptx
PPT
Discrete mathematics with applications by Susanna notes
PPTX
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
PPT
Discrete Maths141 - Course Outline and Lecture Slides
PPTX
LECTURE 1: LOGICAL OPERATORS-A SIGNIFICANT PART OF MATHS.pptx
PDF
UGC NET Computer Science & Application book.pdf [Sample]
PPTX
DisMath-lecture-2-Logic-and-Proofs-08032022-115009am.pptx
PPTX
Discrete Mathematics Details tree pt.pptx
PPT
Best presentation about discrete structure
PPT
good teaching skills and other beautiful things
PPT
Discrete mathematics Chapter1 presentation.ppt
Propositional Logic.pdf
Chapter1p1
Chapter 01 - p1.pdf
Propositional Logic Discrete Mathematics
Chapter1p1.pdf
Drinkfromme.pptx
logicj-160412050513.pptx
Chapter1 part1 : PROPOSITIONAL LOGIC || DISCRETE MATHEMATICS
Chapter1p1 2.pptx
Chapter1p1.pptx
Discrete mathematics with applications by Susanna notes
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
Discrete Maths141 - Course Outline and Lecture Slides
LECTURE 1: LOGICAL OPERATORS-A SIGNIFICANT PART OF MATHS.pptx
UGC NET Computer Science & Application book.pdf [Sample]
DisMath-lecture-2-Logic-and-Proofs-08032022-115009am.pptx
Discrete Mathematics Details tree pt.pptx
Best presentation about discrete structure
good teaching skills and other beautiful things
Discrete mathematics Chapter1 presentation.ppt
Ad

More from Abdur Rehman (18)

PDF
Financial accounting
PDF
Dscrete structure
PPTX
Valid & invalid arguments
PPTX
PPTX
Sequences
PPTX
Recursion
PPTX
PPTX
Quantification
PPTX
Proving existential statements
PPTX
Method of direct proof
PPTX
Proofs by contraposition
PPTX
Laws in disceret
PPTX
Converse, contrapositive, inverse
PPTX
Constructing circuits for boolean expressions(gate)
PPTX
Application of bases
PPTX
Truth table
PPTX
Intro to disceret structure
PPTX
Dst lec3
Financial accounting
Dscrete structure
Valid & invalid arguments
Sequences
Recursion
Quantification
Proving existential statements
Method of direct proof
Proofs by contraposition
Laws in disceret
Converse, contrapositive, inverse
Constructing circuits for boolean expressions(gate)
Application of bases
Truth table
Intro to disceret structure
Dst lec3

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Insiders guide to clinical Medicine.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Classroom Observation Tools for Teachers
PDF
Pre independence Education in Inndia.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Cell Structure & Organelles in detailed.
human mycosis Human fungal infections are called human mycosis..pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
TR - Agricultural Crops Production NC III.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Insiders guide to clinical Medicine.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Classroom Observation Tools for Teachers
Pre independence Education in Inndia.pdf
Anesthesia in Laparoscopic Surgery in India
Complications of Minimal Access Surgery at WLH
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Basic Mud Logging Guide for educational purpose
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Cell Structure & Organelles in detailed.

logic, preposition etc

  • 2. Logic o Study of the principles and techniques of reasoning o Basis of all mathematical reasoning, and of all automated reasoning. o Foundation for computer science operation. o For reasoning about their truth or falsity.
  • 3. Proposition o A proposition is a *declarative sentence/statement that is either true or false, but not both. • Islamabad is the capital of the Pakistan. • 1 + 1 = 2 • If 1=2 then roses are red. These are not proposition  What time is it?  x + 1 = 2
  • 4. Proposition o We use letters to denote propositional variables (or statement variables), that is p, q, r, s, . . . . o We say that the truth value of a proposition is either true (T) or false (F).
  • 5. Proposition “Today is January 27” Is this a statement? Yes Is this a proposition? yes What is the truth value of the proposition? false
  • 6. Connectives/Logical Operators o Compound propositions(statements), are formed from existing propositions using logical operators.
  • 7. Truth Table o The truth value of the compound proposition depends only on the truth value of the component propositions. Such a list is a called a truth table.
  • 8. Negation (NOT)  o If p = “I have brown hair.” o then ¬p = “I do not have brown hair.” P  P true (T) false (F) false (F) true (T)
  • 9. Conjunction (AND)   If p=“I will have salad for lunch.” and q=“I will have biryani for dinner .”, then p∧q=“I will have salad for lunch and AND I will have biryani for dinner.” P Q P Q T T T T F F F T F F F F
  • 10. Disjunction (OR)  o p=“My car has a bad engine.” o q=“My car has a bad carburetor.” o p∨q=“Either my car has a bad engine, or my car has a bad carburetor.” P Q P  Q T T T T F T F T T F F F
  • 11. Connectives Let p=“It rained last night”, q=“The sprinklers came on last night,” r=“The lawn was wet this morning.” Translate each of the following into English: ¬p = “It didn’t rain last night.” r ∧ ¬p =“The lawn was wet this morning, and it didn’t rain last night.” ¬ r ∨ p ∨ q =“Either the lawn wasn’t wet this morning, or it rained last night, or the sprinklers came on last night.”
  • 12. Connectives Let p= “It is hot” q=““It is sunny” 1. It is not hot but it is sunny. 2. It is neither hot nor sunny. Solution 1. ⌐p∧q 2. ⌐p∧ ⌐q
  • 13. Exclusive Or (XOR)  o p = “I will earn an A in this course,” o q = “I will drop this course,” o p ⊕ q = “I will either earn an A in this course, or I will drop it (but not both!)” P Q PQ T T F T F T F T T F F F
  • 14. Exclusive Or (XOR)  o The exclusive or of p and q, denoted by p ⊕ q, is the proposition that is true when exactly one of p and q is true and is false otherwise. P Q PQ T T F T F T F T T F F F • p = “I will earn an A in this course,” • q = “I will drop this course,” • p ⊕ q = “I will either earn an A in this course, or I will drop it (but not both!)”
  • 16. Implication (if - then)  o 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. p is called the hypothesis and q is called the conclusion
  • 17. Implication (if - then)  P Q PQ T T T T F F F T T F F T p = “You study hard.” q = “You will get a good grade.” p → q = “If you study hard, then you will get a good grade.”
  • 18. Biconditionals (if and Only If)   p = “Zardari wins the 2008 election.”  q = “Zardari will be president for five years.”  p ↔ q = “If, and only if, Zardari wins the 2008 election, Zardari will be president for five years.” p ↔ q does not imply that p and q are true, or that either of them causes the other, or that they have a common cause.

Editor's Notes

  • #4: *that is, a sentence that declares a fact
  • #5: *that is, a sentence that declares a fact
  • #7: *that is, a sentence that declares a fact
  • #8: *that is, a sentence that declares a fact
  • #11: *that is, a sentence that declares a fact