Date post: | 28-Nov-2014 |
Category: |
Technology |
Upload: | genie-rose |
View: | 11,957 times |
Download: | 3 times |
DISCRETE MATHEMATICS
LOGIC
All Mathematicians wear sandalsAnyone who wears sandals is an algebraistTherefore, all mathematicians are algebraist
LOGIC
• Is the study of reasoning• Specifically concerned with
whether reasoning is correct.• Focuses on the relationship
among statements as opposed to the content of any particular statement.
Propositions• Typically expressed as a
declarative sentence• Basic building blocks of any
theory of logic• Represented by lowercase
letters such as
p, q and r.
Connectives•Used to combine propositions
Kinds Of Connectives• CONJUCTION – denoted by
(read as “p and q”)
• DISJUNCTION – denoted by
( read as “p or q” )• NEGATION -- denoted by
(read as “not p”)
qp
qp
p
Kinds Of Connectives• CONDITIONAL STATEMENT
– denoted by p q
(read as If p, then q.)
Truth Table Of A Proposition •Made up of individual
proposition ... , lists all possible combinations of truth values for .... .T denotes true and F denotes false for such combination lists of the truth value of p.
p1pn
pn
p1
CONJUCTION
p q
T T T
T F F
F T F
F F F
qp
DISJUNCTION
p q
T T T
T F T
F T T
F F F
qp
NEGATION
p -p q -q
T F T F
IF-THEN STATEMENTS
•The most commonly used connectives.
•It also known as conditional statements or implications.
IF-THEN STATEMENTS
• It consist of the following:•Premise – the “if” part•Conclusion – the “then” part
• Represented by the following:•If p, then q•p → q
Where p and q are the premise and conclusion respectively.
IF-THEN STATEMENT
Example:
If one angle of a triangle is a right triangle, then the other then the other two angles of the triangle are two angles of the triangle are acute angles. acute angles.
premise
conclusion
IF-THEN STATEMENTExample:
If one angle of a triangle is a right angle, then the other then the other two angles of the triangle are two angles of the triangle are acute angles. acute angles.
p
q
IF-THEN STATEMENTS
• it can only be false when the premise is true but the conclusion is false.
If
If
If a picture paints a thousand words Then why can't I paint you? The words will never show For you I've come to know.
If a face could launch a thousand ships Then where am I to go?
There's no one home but you And now you've left me too.
And when my love for life is running dry
You come and pour yourself on me If a man could be two places at
one time I'd be with you.
Tomorrow and today Beside you all the way
If the world should stop revolving Spinning slowly down to die.
I'd spend the end with you And when the world was
through... Then one by one, the stars would
all go out. Then you and I, would simply fly
away.
CONDITIONAL STATEMENT
p q p q
T T T
T F F
F T T
F F T
BICONDITIONAL STATEMENT
• It is denoted by :
read as “p if and only if q”
qp
BICONDITIONAL STATEMENT
p q
T T T
T F F
F T F
F F T
qp
Example:p: Today is Monday.q: it is raining.
CONJUNCTIONDISJUNCTIONNEGATIONCONDITIONAL STATEMENTBICONDITIONAL STATEMENT
CONJUNCTION
p: Today is Monday.q: it is raining.
Today is Monday AND it is raining.
qp
DISJUNCTION
p: Today is Monday.q: it is raining.
Today is Monday OR it is raining.
qp
NEGATION
p: Today is Monday.q: it is raining.
-p: Today is NOT Monday.-q: It is NOT raining.
CONDITIONAL STATEMENT
p: Today is Monday.q: it is raining.
p q
IF today is Monday, THEN it is raining.
BICONDITIONAL STATEMENT
p: Today is Monday.q: it is raining.
Today is Monday IF AND ONLY IF it is raining.
qp