SlideShare a Scribd company logo
1 of 48
Discrete Structures
1
Compound Propositions
Producing new propositions from existing propositions.
Logical Operators or Connectives
1. Not 
2. And ˄
3. Or ˅
4. Exclusive or 
5. Implication 
6. Biconditional 
2
Compound Propositions
Negation of a proposition
Let p be a proposition. The negation of p, denoted by
 p (also denoted by ~p), is the statement
“It is not the case that p”.
The proposition  p is read as “not p”. The truth
values of the negation of p,  p, is the opposite of the
truth value of p.
3
Examples
1. Find the negation of the following proposition
p : Today is Friday.
The negation is
 p : It is not the case that today is Friday.
This negation can be more simply expressed by
 p : Today is not Friday.
4
Examples
2. Write the negation of
“6 is negative”.
The negation is
“It is not the case that 6 is negative”.
or “6 is nonnegative”.
5
Truth Table (NOT)
• Unary Operator, Symbol: 
p p
true false
false true
6
Conjunction (AND)
Definition
Let p and q be propositions. The conjunction
of p and q, denoted by p˄q, is the proposition
“p and q”.
The conjunction p˄q is true when p and q are
both true and is false otherwise.
7
Examples
1. Find the conjunction of the propositions p and q, where
p : Today is Friday.
q : It is raining today.
The conjunction is
p˄q: Today is Friday and it is raining today.
8
Truth Table (AND)
• Binary Operator, Symbol: 
p q pq
true true true
true false false
false true false
false false false
9
Disjunction (OR)
Definition
Let p and q be propositions. The disjunction
of p and q, denoted by p˅q, is the proposition
“p or q”.
The disjunction p˅qis false when both p and
q are false and is true otherwise.
10
Examples
1. Find the disjunction of the propositions p and q,
where
p : Today is Friday.
q : It is raining today.
The disjunction is
p˅q: Today is Friday or it is raining today.
11
Truth Table (OR)
• Binary Operator, Symbol: 
p q p  q
true true true
true false true
false true true
false false false
12
Exclusive OR (XOR)
Definition
Let p and q be propositions. The exclusive or
of p and q, denoted by pq, is the proposition
“pq”.
The exclusive or, p  q, is true when exactly
one of p and q is true and is false otherwise.
13
Examples
1. Find the exclusive or of the propositions p and q,
where
p : Atif will pass the course CSC102.
q : Atif will fail the course CSC102.
The exclusive or is
pq : Atif will pass or fail the course CSC102.
14
Truth Table (XOR)
• Binary Operator, Symbol: 
p q pq
true true false
true false true
false true true
false false false
15
Examples (OR vs XOR)
The following proposition uses the (English) connective
“or”. Determine from the context whether “or” is intended
to be used in the inclusive or exclusive sense.
1. “Nabeel has one or two brothers”.
A person cannot have both one and two brothers.
Therefore, “or” is used in the exclusive sense.
16
Examples (OR vs XOR)
2. To register for BSC you must have passed
the qualifying exam or be listed as an Math
major.
Presumably, if you have passed the qualifying exam and
are also listed as an Math major, you can still register for
BCS. Therefore, “or” is inclusive.
17
Composite Statements
Statements and operators can be combined in any
way to form new statements.
p q p q (p)(q)
true true false false false
true false false true true
false true true false true
false false true true true
18
Translating English to Logic
I did not buy a lottery ticket this week or I bought a
lottery ticket and won the million dollar on Friday.
Let p and q be two propositions
p: I bought a lottery ticket this week.
q: I won the million dollar on Friday.
In logic form
p(pq)
19
20
Conditional Statements
Implication
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 is true otherwise.
where p is called hypothesis, antecedent or premise.
q is called conclusion or consequence
21
Implication (if - then)
• Binary Operator, Symbol: 
P Q P  Q
true true true
true false false
false true true
false false true
22
Conditional Statements
Definition: Let p and q be
biconditional statement pq, is
propositions. The
the
proposition “p if and only if q”.
The biconditional (bi-implication) statement p
 q is true when p and q have same truth
values and is false otherwise.
Biconditional Statements
23
Biconditional (if and only if)
• Binary Operator, Symbol: 
P Q P  Q
true true true
true false false
false true false
false false true
24
Composite Statements
• Statements and operators can be combined in any way to
form new statements.
P Q P Q (P)(Q)
true true false false false
true false false true true
false true true false true
false false true true true
25
Equivalent Statements
P Q (PQ) (P)(Q) (PQ)(P)(Q)
true true false false true
true false true true true
false true true true true
false false true true true
•Two statements are called logically equivalent if and only if (iff) they
have identical truth tables
• The statements (PQ) and (P)(Q) are logically equivalent,
because (PQ)(P)(Q) is always true.
26
Tautologies and Contradictions
• Tautology is a statement that is always true regardless of the truth
values of the individual logical variables
• Examples:
• R(R)
• (PQ)  (P)(Q)
• If S  T is a tautology, we write S  T
.
• If S  T is a tautology, we write S  T
.
27
Tautologies and Contradictions
• A Contradiction is a statement that is always false regardlessof
the truth values of the individual logical variables
Examples
• R(R)
• ((PQ)(P)(Q))
• The negation of any tautology is a contradiction, and
the negation of any contradiction is a tautology.
28
Exercises
•We already know the following tautology:
•(PQ)  (P)(Q)
•Nice home exercise:
•Show that (PQ)  (P)(Q).
•These two tautologies are known as De Morgan’s laws.
29
Logical Equivalence
Definition
Two proposition form are called logically equivalent if
and only if they have identical truth values for each
possible substitution of propositions for their
proposition variable.
The logical equivalence of proposition forms P
and Q is written
P ≡ Q
30
1. Construct the truth table for P.
2. Construct the truth table for Q using the
same proposition variables for identical
component propositions.
3. Check each combination of truth values of
the proposition variables to see whether the
truth value of P is the same as the truth
value of Q.
Equivalence of Two Compound
Propositions P and Q
31
a. If in each row the truth value of P is the
same as the truth value of Q, then P and Q
are logically equivalent.
b. If in some row P has a different truth value
from Q, then P and Q are not logically
equivalent.
Equivalence Check
32
Example
• Prove that ¬ (¬p)≡ p
Solution
As you can see the corresponding truth values of p
and ¬ (¬p) are same, hence equivalence is justified.
p ¬p ¬ (¬p)
T F T
F T F
33
Example
Show that the proposition forms ¬(pq) and ¬p  ¬q
are NOT logically equivalent.
Here the corresponding truth values
differ and hence equivalence does
not hold
p q ¬p ¬q (pq) ¬(pq) ¬p¬q
T T F F T F F
T F F T F T F
F T T F F T F
F F T T F T T
34
De Morgan’s laws
De Morgan’s laws state that:
The negation of an and proposition is
logically equivalent to the or proposition in
which each component is negated.
The negation of an or proposition is logically
equivalent to the and proposition in which
each component is negated.
35
Symbolically (De Morgan’s Laws)
1. ¬(pq) ≡ ¬p¬q
2. ¬(pq) ≡ ¬p¬q
36
Applying De-Morgan’s Law
Question: Negate the following compound Propositions
1. John is six feet tall and he weights at least 200
pounds.
2. The bus was late or Tom’s watch was slow.
37
Solution
a) John is not six feet tall or he weighs less
than 200 pounds.
b) The bus was not late and Tom’s watch was
not slow.
38
Inequalities and De Morgan’s Laws
Question Use De Morgan’s laws to write the negation of
-1< x  4
Solution: The given proposition is equivalent to
-1 < x and x  4,
By De Morgan’s laws, the negation is
-1 ≥ x or x > 4.
39
Tautology and Contradiction
Definition A tautology is a proposition form that is
always true regardless of the truth values of the
individual propositions substituted for its proposition
variables. A proposition whose form is a tautology is
called a tautological proposition.
Definition A contradiction is a proposition form that is
always false regardless of the truth values of the
individual propositions substituted for its proposition
variables. A proposition whose form is a contradiction is
called a contradictory proposition.
40
Example
Show that the proposition form p¬p is a
tautology and the proposition form p¬p is a
contradiction.
Exercise: If t is a tautology and c is
contradiction, show that pt≡p and pc≡c?
p ¬p p ¬p p ¬p
T F T F
F T T F
41
1. Commutative laws
pq ≡ qp ; pq ≡ qp
2. Associative laws
p  (q  r) ≡ (p q)  r ; p(q r) ≡ (pq)r
3. Distributive laws
p  (q r ) ≡ (p  q)  (p  r)
p  (q  r) ≡ (p  q)  (p  r)
Laws of Logic
42
Laws of Logic
4. Identity laws
p  t ≡ p ; pc ≡ p
5. Negation laws
p¬p ≡ t ; p  ¬p ≡ c
6. Double negation law
¬(¬p) ≡ p
7. Idempotent laws
p  p ≡ p ; pp ≡ p
43
Laws of Logic
8. Universal bound laws
p  t ≡ t ; p  c ≡ c
9. Absorption laws
p (pq) ≡ p ; p (p  q) ≡ p
10. Negation of t and c
¬t ≡ c ; ¬c ≡ t
44
Exercise
Using laws of logic, show that
⌐(⌐p  q) (p  q) ≡ p.
Solution
Take ⌐(⌐p  q) (p  q)
≡ (⌐(⌐p)  ⌐q) (p  q), (by De Morgan’s laws)
≡ (p  ⌐q) (p  q), (by double negative law)
≡ p (⌐q  q), (by distributive law)
45
contd…
≡ p (q  ⌐q), (by the commutative law)
≡ p  c, (by the negation law)
≡ p, (by the identity law)
Skill in simplifying proposition forms is useful in
constructing logically efficient computer programs
and in designing digital circuits.
46
Another Example
Prove that ¬[r ∨(q ∧(¬r →¬p))] ≡ ¬r ∧(p∨¬q)
¬[r ∨(q ∧(¬r → ¬p))]
47
≡ ¬r ∧¬(q ∧(¬r → ¬p)),
≡ ¬r ∧¬(q ∧(¬¬r ∨¬p)),
≡ ¬r ∧¬(q ∧(r ∨¬p)),
≡ ¬r ∧(¬q ∨¬(r ∨¬p)),
≡ ¬r ∧(¬q ∨(¬r ∧p)),
≡ (¬r ∧¬q) ∨(¬r ∧(¬r ∧p)),
≡ (¬r ∧¬q) ∨((¬r ∧¬r) ∧p),
≡ (¬r ∧¬q)∨(¬r ∧p),
≡ ¬r ∧(¬q ∨p),
≡ ¬r ∧(p ∨¬q),
De Morgan’s law
Conditional rewritten as disjunction
Double negation law
De Morgan’s law
De Morgan’s law, double negation
Distributive law
Associative law
Idempotent law
Distributive law
Commutative law
Lecture Summery
• Logical Connectives
• Truth Tables
• Compound propositions
• Translating English to logic and logic to English.
• Logical Equivalence
• Equivalence Check
• Tautologies and Contradictions
• Laws of Logic
• Simplification ofD
Ci
s
c
or
e
mt
eS
pt
r
ou
c
ut
u
nr
e
ds
(
C
PS3
r
3
o
5
p
) ositions 48
48

More Related Content

Similar to DMS UNIT-1 ppt.pptx

UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]DIwakar Rajput
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdfrAjyarAjanItjJa
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer scienceBindhuBhargaviTalasi
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdfPradeeshSAI
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 

Similar to DMS UNIT-1 ppt.pptx (20)

Truth table
Truth tableTruth table
Truth table
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
 
Course notes1
Course notes1Course notes1
Course notes1
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Per3 logika&amp;pembuktian
Per3 logika&amp;pembuktianPer3 logika&amp;pembuktian
Per3 logika&amp;pembuktian
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 
Logic
LogicLogic
Logic
 
3 computing truth tables
3   computing truth tables3   computing truth tables
3 computing truth tables
 
Logic parti
Logic partiLogic parti
Logic parti
 
Lecture 01.ppt
Lecture 01.pptLecture 01.ppt
Lecture 01.ppt
 

Recently uploaded

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 

Recently uploaded (20)

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 

DMS UNIT-1 ppt.pptx

  • 2. Compound Propositions Producing new propositions from existing propositions. Logical Operators or Connectives 1. Not  2. And ˄ 3. Or ˅ 4. Exclusive or  5. Implication  6. Biconditional  2
  • 3. Compound Propositions Negation of a proposition Let p be a proposition. The negation of p, denoted by  p (also denoted by ~p), is the statement “It is not the case that p”. The proposition  p is read as “not p”. The truth values of the negation of p,  p, is the opposite of the truth value of p. 3
  • 4. Examples 1. Find the negation of the following proposition p : Today is Friday. The negation is  p : It is not the case that today is Friday. This negation can be more simply expressed by  p : Today is not Friday. 4
  • 5. Examples 2. Write the negation of “6 is negative”. The negation is “It is not the case that 6 is negative”. or “6 is nonnegative”. 5
  • 6. Truth Table (NOT) • Unary Operator, Symbol:  p p true false false true 6
  • 7. Conjunction (AND) Definition Let p and q be propositions. The conjunction of p and q, denoted by p˄q, is the proposition “p and q”. The conjunction p˄q is true when p and q are both true and is false otherwise. 7
  • 8. Examples 1. Find the conjunction of the propositions p and q, where p : Today is Friday. q : It is raining today. The conjunction is p˄q: Today is Friday and it is raining today. 8
  • 9. Truth Table (AND) • Binary Operator, Symbol:  p q pq true true true true false false false true false false false false 9
  • 10. Disjunction (OR) Definition Let p and q be propositions. The disjunction of p and q, denoted by p˅q, is the proposition “p or q”. The disjunction p˅qis false when both p and q are false and is true otherwise. 10
  • 11. Examples 1. Find the disjunction of the propositions p and q, where p : Today is Friday. q : It is raining today. The disjunction is p˅q: Today is Friday or it is raining today. 11
  • 12. Truth Table (OR) • Binary Operator, Symbol:  p q p  q true true true true false true false true true false false false 12
  • 13. Exclusive OR (XOR) Definition Let p and q be propositions. The exclusive or of p and q, denoted by pq, is the proposition “pq”. The exclusive or, p  q, is true when exactly one of p and q is true and is false otherwise. 13
  • 14. Examples 1. Find the exclusive or of the propositions p and q, where p : Atif will pass the course CSC102. q : Atif will fail the course CSC102. The exclusive or is pq : Atif will pass or fail the course CSC102. 14
  • 15. Truth Table (XOR) • Binary Operator, Symbol:  p q pq true true false true false true false true true false false false 15
  • 16. Examples (OR vs XOR) The following proposition uses the (English) connective “or”. Determine from the context whether “or” is intended to be used in the inclusive or exclusive sense. 1. “Nabeel has one or two brothers”. A person cannot have both one and two brothers. Therefore, “or” is used in the exclusive sense. 16
  • 17. Examples (OR vs XOR) 2. To register for BSC you must have passed the qualifying exam or be listed as an Math major. Presumably, if you have passed the qualifying exam and are also listed as an Math major, you can still register for BCS. Therefore, “or” is inclusive. 17
  • 18. Composite Statements Statements and operators can be combined in any way to form new statements. p q p q (p)(q) true true false false false true false false true true false true true false true false false true true true 18
  • 19. Translating English to Logic I did not buy a lottery ticket this week or I bought a lottery ticket and won the million dollar on Friday. Let p and q be two propositions p: I bought a lottery ticket this week. q: I won the million dollar on Friday. In logic form p(pq) 19
  • 20. 20
  • 21. Conditional Statements Implication 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 is true otherwise. where p is called hypothesis, antecedent or premise. q is called conclusion or consequence 21
  • 22. Implication (if - then) • Binary Operator, Symbol:  P Q P  Q true true true true false false false true true false false true 22
  • 23. Conditional Statements Definition: Let p and q be biconditional statement pq, is propositions. The the proposition “p if and only if q”. The biconditional (bi-implication) statement p  q is true when p and q have same truth values and is false otherwise. Biconditional Statements 23
  • 24. Biconditional (if and only if) • Binary Operator, Symbol:  P Q P  Q true true true true false false false true false false false true 24
  • 25. Composite Statements • Statements and operators can be combined in any way to form new statements. P Q P Q (P)(Q) true true false false false true false false true true false true true false true false false true true true 25
  • 26. Equivalent Statements P Q (PQ) (P)(Q) (PQ)(P)(Q) true true false false true true false true true true false true true true true false false true true true •Two statements are called logically equivalent if and only if (iff) they have identical truth tables • The statements (PQ) and (P)(Q) are logically equivalent, because (PQ)(P)(Q) is always true. 26
  • 27. Tautologies and Contradictions • Tautology is a statement that is always true regardless of the truth values of the individual logical variables • Examples: • R(R) • (PQ)  (P)(Q) • If S  T is a tautology, we write S  T . • If S  T is a tautology, we write S  T . 27
  • 28. Tautologies and Contradictions • A Contradiction is a statement that is always false regardlessof the truth values of the individual logical variables Examples • R(R) • ((PQ)(P)(Q)) • The negation of any tautology is a contradiction, and the negation of any contradiction is a tautology. 28
  • 29. Exercises •We already know the following tautology: •(PQ)  (P)(Q) •Nice home exercise: •Show that (PQ)  (P)(Q). •These two tautologies are known as De Morgan’s laws. 29
  • 30. Logical Equivalence Definition Two proposition form are called logically equivalent if and only if they have identical truth values for each possible substitution of propositions for their proposition variable. The logical equivalence of proposition forms P and Q is written P ≡ Q 30
  • 31. 1. Construct the truth table for P. 2. Construct the truth table for Q using the same proposition variables for identical component propositions. 3. Check each combination of truth values of the proposition variables to see whether the truth value of P is the same as the truth value of Q. Equivalence of Two Compound Propositions P and Q 31
  • 32. a. If in each row the truth value of P is the same as the truth value of Q, then P and Q are logically equivalent. b. If in some row P has a different truth value from Q, then P and Q are not logically equivalent. Equivalence Check 32
  • 33. Example • Prove that ¬ (¬p)≡ p Solution As you can see the corresponding truth values of p and ¬ (¬p) are same, hence equivalence is justified. p ¬p ¬ (¬p) T F T F T F 33
  • 34. Example Show that the proposition forms ¬(pq) and ¬p  ¬q are NOT logically equivalent. Here the corresponding truth values differ and hence equivalence does not hold p q ¬p ¬q (pq) ¬(pq) ¬p¬q T T F F T F F T F F T F T F F T T F F T F F F T T F T T 34
  • 35. De Morgan’s laws De Morgan’s laws state that: The negation of an and proposition is logically equivalent to the or proposition in which each component is negated. The negation of an or proposition is logically equivalent to the and proposition in which each component is negated. 35
  • 36. Symbolically (De Morgan’s Laws) 1. ¬(pq) ≡ ¬p¬q 2. ¬(pq) ≡ ¬p¬q 36
  • 37. Applying De-Morgan’s Law Question: Negate the following compound Propositions 1. John is six feet tall and he weights at least 200 pounds. 2. The bus was late or Tom’s watch was slow. 37
  • 38. Solution a) John is not six feet tall or he weighs less than 200 pounds. b) The bus was not late and Tom’s watch was not slow. 38
  • 39. Inequalities and De Morgan’s Laws Question Use De Morgan’s laws to write the negation of -1< x  4 Solution: The given proposition is equivalent to -1 < x and x  4, By De Morgan’s laws, the negation is -1 ≥ x or x > 4. 39
  • 40. Tautology and Contradiction Definition A tautology is a proposition form that is always true regardless of the truth values of the individual propositions substituted for its proposition variables. A proposition whose form is a tautology is called a tautological proposition. Definition A contradiction is a proposition form that is always false regardless of the truth values of the individual propositions substituted for its proposition variables. A proposition whose form is a contradiction is called a contradictory proposition. 40
  • 41. Example Show that the proposition form p¬p is a tautology and the proposition form p¬p is a contradiction. Exercise: If t is a tautology and c is contradiction, show that pt≡p and pc≡c? p ¬p p ¬p p ¬p T F T F F T T F 41
  • 42. 1. Commutative laws pq ≡ qp ; pq ≡ qp 2. Associative laws p  (q  r) ≡ (p q)  r ; p(q r) ≡ (pq)r 3. Distributive laws p  (q r ) ≡ (p  q)  (p  r) p  (q  r) ≡ (p  q)  (p  r) Laws of Logic 42
  • 43. Laws of Logic 4. Identity laws p  t ≡ p ; pc ≡ p 5. Negation laws p¬p ≡ t ; p  ¬p ≡ c 6. Double negation law ¬(¬p) ≡ p 7. Idempotent laws p  p ≡ p ; pp ≡ p 43
  • 44. Laws of Logic 8. Universal bound laws p  t ≡ t ; p  c ≡ c 9. Absorption laws p (pq) ≡ p ; p (p  q) ≡ p 10. Negation of t and c ¬t ≡ c ; ¬c ≡ t 44
  • 45. Exercise Using laws of logic, show that ⌐(⌐p  q) (p  q) ≡ p. Solution Take ⌐(⌐p  q) (p  q) ≡ (⌐(⌐p)  ⌐q) (p  q), (by De Morgan’s laws) ≡ (p  ⌐q) (p  q), (by double negative law) ≡ p (⌐q  q), (by distributive law) 45
  • 46. contd… ≡ p (q  ⌐q), (by the commutative law) ≡ p  c, (by the negation law) ≡ p, (by the identity law) Skill in simplifying proposition forms is useful in constructing logically efficient computer programs and in designing digital circuits. 46
  • 47. Another Example Prove that ¬[r ∨(q ∧(¬r →¬p))] ≡ ¬r ∧(p∨¬q) ¬[r ∨(q ∧(¬r → ¬p))] 47 ≡ ¬r ∧¬(q ∧(¬r → ¬p)), ≡ ¬r ∧¬(q ∧(¬¬r ∨¬p)), ≡ ¬r ∧¬(q ∧(r ∨¬p)), ≡ ¬r ∧(¬q ∨¬(r ∨¬p)), ≡ ¬r ∧(¬q ∨(¬r ∧p)), ≡ (¬r ∧¬q) ∨(¬r ∧(¬r ∧p)), ≡ (¬r ∧¬q) ∨((¬r ∧¬r) ∧p), ≡ (¬r ∧¬q)∨(¬r ∧p), ≡ ¬r ∧(¬q ∨p), ≡ ¬r ∧(p ∨¬q), De Morgan’s law Conditional rewritten as disjunction Double negation law De Morgan’s law De Morgan’s law, double negation Distributive law Associative law Idempotent law Distributive law Commutative law
  • 48. Lecture Summery • Logical Connectives • Truth Tables • Compound propositions • Translating English to logic and logic to English. • Logical Equivalence • Equivalence Check • Tautologies and Contradictions • Laws of Logic • Simplification ofD Ci s c or e mt eS pt r ou c ut u nr e ds ( C PS3 r 3 o 5 p ) ositions 48 48