Discrete Mathematics Assignment
Discrete Mathematics Assignment
MATHEMATICS
ASSIGNMENT
Regd . No : 190301120001
B.Tech CSE , 3rd Sem
CUTM , BBSR
1. Define connectives; write the truth values rules and the respective Truth Tables.
Ans: The words or phrases or symbols which are used to make a proposition by two or more
propositions are called connectives.
(a) Negation: If p denotes a statement then the negation of p is written as ¬p. If the truth value of p
is T, then the truth value of ¬p is F. Also, if the truth value of p is F then the truth value of ¬p is
T.
Truth table for negation
P ~P
T F
F T
(b) Conjunction: The conjunction of two statements (or propositions) p and q is the statement p ∧ q.
The statement p ∧ q has the truth value T whenever both p and q have the truth value T.
Otherwise it has truth value F.
p q p^q
T T T
T F F
F T F
F F F
(c) Disjunction: The disjunction of two statements p and q is the statement p ∨ q. The statement p ∨ q has
the truth value F only when both p and q have the truth value F. Otherwise it has truth value T.
p q p∨q
T T T
T F T
F T T
F F F
p q p→ q
T T T
T F F
F T T
F F T
(e) Exclusive or:The exclusive or of p and 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
2. Define Converse, Inverse and contra positive with examples and Truth Tables.
What is the contra positive, the converse, and the inverse of the conditional statement “The home
team wins whenever it is raining”?
Ans: If P → Q is a conditional statement, then the proposition Q → P is called its converse.
Truth table for Q → P
P Q Q→P
T T T
T F T
F T F
F F T
P Q ¬P ¬Q ¬P → ¬Q
T T F F T
T F T T T
F T T F F
F F T T T
P Q ¬Q ¬P ¬Q→ ¬P
T T F F T
T F T F F
F T F T T
F F T T T
P ~P P V ~P
T F T
F T T
(b) Contradiction: A statement formula which is false regardless of the truth values of the statements which
replace the variables in it is said to be a contradiction.
P ~P P ^ ~P
T F F
F T F
(c) Contingency: A statement formula which is neither a tautology nor a contradiction is known as a contingency.
TRUTH TABLE OF (P Q)
P Q PQ
T T F
T F T
F T T
F F F
T T F T T T
T F T T F F
F T F F F T
F F T T F T
6. Show that ~(P →Q) and P ^ ~Q are logically equivalent, and ( P → Q) V (P → R) and
P →(Q V R) are logically equivalent.
(P → Q) V (P → R) and P →(Q V R)
Consider ( P → Q) V (P → R) ≡ (7P V Q) V (7P V R)
≡ 7P V Q V 7 P V R
≡ 7P V 7P V Q V R
Ans:
P Q P^Q PVQ ( P ^ Q) → (P V Q)
T T T T T
T F F T T
F T F T T
F F F F T
Ans:Jan will not take a job in industry and will not go to graduate school.
(a) (P∨Q) ∧R
Ans: (P∧Q) ∨R
(b) (P∧Q) ∨T
Ans: (P ∨ Q) ∧ T
(c ) (P∧Q) ∨ (P∨¬(Q∧¬S))