discrete mathematics lecture

30
DISCRETE MATHEMATICS

Upload: genie-rose

Post on 28-Nov-2014

11.957 views

Category:

Technology


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Discrete Mathematics Lecture

DISCRETE MATHEMATICS

Page 2: Discrete Mathematics Lecture

LOGIC

Page 3: Discrete Mathematics Lecture

All Mathematicians wear sandalsAnyone who wears sandals is an algebraistTherefore, all mathematicians are algebraist

Page 4: Discrete Mathematics Lecture

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.

Page 5: Discrete Mathematics Lecture

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.

Page 6: Discrete Mathematics Lecture

Connectives•Used to combine propositions

Page 7: Discrete Mathematics Lecture

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

Page 8: Discrete Mathematics Lecture

Kinds Of Connectives• CONDITIONAL STATEMENT

– denoted by p q

(read as If p, then q.)

Page 9: Discrete Mathematics Lecture

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

Page 10: Discrete Mathematics Lecture

CONJUCTION

p q

T T T

T F F

F T F

F F F

qp

Page 11: Discrete Mathematics Lecture

DISJUNCTION

p q

T T T

T F T

F T T

F F F

qp

Page 12: Discrete Mathematics Lecture

NEGATION

p -p q -q

T F T F

Page 13: Discrete Mathematics Lecture

IF-THEN STATEMENTS

•The most commonly used connectives.

•It also known as conditional statements or implications.

Page 14: Discrete Mathematics Lecture

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.

Page 15: Discrete Mathematics Lecture

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

Page 16: Discrete Mathematics Lecture

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

Page 17: Discrete Mathematics Lecture

IF-THEN STATEMENTS

• it can only be false when the premise is true but the conclusion is false.

Page 18: Discrete Mathematics Lecture

If

Page 19: Discrete Mathematics Lecture

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.

Page 20: Discrete Mathematics Lecture

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.

Page 21: Discrete Mathematics Lecture

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.

Page 22: Discrete Mathematics Lecture

CONDITIONAL STATEMENT

p q p q

T T T

T F F

F T T

F F T

Page 23: Discrete Mathematics Lecture

BICONDITIONAL STATEMENT

• It is denoted by :

read as “p if and only if q”

qp

Page 24: Discrete Mathematics Lecture

BICONDITIONAL STATEMENT

p q

T T T

T F F

F T F

F F T

qp

Page 25: Discrete Mathematics Lecture

Example:p: Today is Monday.q: it is raining.

CONJUNCTIONDISJUNCTIONNEGATIONCONDITIONAL STATEMENTBICONDITIONAL STATEMENT

Page 26: Discrete Mathematics Lecture

CONJUNCTION

p: Today is Monday.q: it is raining.

Today is Monday AND it is raining.

qp

Page 27: Discrete Mathematics Lecture

DISJUNCTION

p: Today is Monday.q: it is raining.

Today is Monday OR it is raining.

qp

Page 28: Discrete Mathematics Lecture

NEGATION

p: Today is Monday.q: it is raining.

-p: Today is NOT Monday.-q: It is NOT raining.

Page 29: Discrete Mathematics Lecture

CONDITIONAL STATEMENT

p: Today is Monday.q: it is raining.

p q

IF today is Monday, THEN it is raining.

Page 30: Discrete Mathematics Lecture

BICONDITIONAL STATEMENT

p: Today is Monday.q: it is raining.

Today is Monday IF AND ONLY IF it is raining.

qp