Professional Documents
Culture Documents
Ma3354 DM Unit 1 Part A, B Question and Answer
Ma3354 DM Unit 1 Part A, B Question and Answer
com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
T T F F T F T
T F F T F F F
F T T F F F F
F F T T F T T
x ( x x)
2
x(x x)
2
T h e n e g a tio n o f x ( x 2 ) is x ( x 2)
2 2
x ( x 2)
2
x(x 2)
2
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 1 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
9. Express in symbolic form, everyone who is healthy can do all kinds of work. [November 2012]
Ans: Let 𝑃(𝑥): 𝑥 is healthy and 𝑄(𝑥): 𝑥 do all work
Symbolic form x P ( x ) Q ( x )
10. Write the negation of the statement “If there is a will, then there is a way”.
Ans: Let p: „There is a will‟ and q: „There is a way‟ Given p q p q .
Its negation is given by p q
So, the negation of the given statement is “There is a will and there is no way”
11. When do you say that two compound propositions are equivalent?
Ans: Two statement formulas A and B are equivalent iff A B o r A B is a tautology. It is denoted
by the symbol A B which is read as “A is equivalence to B”
12. Prove that p q p q p q [November 2010]
Ans:
p q p q q p p q q p
p q p p q q p q
p q p q
13. Rewrite the following using quantifiers “Every student in the class studied calculus”.
Ans: Let 𝑃(𝑥): 𝑥 is a student and 𝑄(𝑥): 𝑥 studied calculus
Symbolic form x P ( x ) Q ( x )
14. Check whether p q r p is a tautology.
Ans:
p q r p p q r p p q r p p q r p
r p p r p q T r p q r p q
The given statement is not a tautology
15. Write the statement in symbolic form “Some real numbers are rational”.
Ans: Let 𝑅(𝑥): 𝑥 is a real number and 𝑄(𝑥): 𝑥 is rational
Symbolic form: x R x Q x .
16. Show that ( p q ) ( q r ) and ( p q ) r are logically equivalent. [November 2014]
Ans:For ( p q ) ( q r ) to be false, one of the two implications must be false, which happens exactly
when r is false and at least one of p and q is true, but these are precisely the cases in which p q is true
and r is false. Which is precisely when ( p q ) r is false. Since the two propositions are false in
exactly the same situations they are logically equivalent.
18. Write the statement in symbolic form “Some integers are not square of any integers”.
Ans: Let 𝐼(𝑥): x is an integer and S(x): x is a square of any integer
Symbolic form: x I ( x ) S ( x ) .
19. Define Contradiction.
Ans: A propositional formula which is always false irrespective of the truth values of the individual
variables is a contradiction.
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 2 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
[( P Q ) ( P R )] [( P Q ) ( P R )] T
1(b) Prove the following equivalences by proving the equivalences of the dual
(( P Q ) ( P Q )) ( P Q ) P
Solution: It‟s dual is
(( P Q ) ( P Q )) ( P Q ) P
Consider,
(( P Q ) ( P Q )) ( P Q ) P Reasons
(( P Q ) ( P Q )) ( P Q ) (Demorgan‟s law)
((Q P ) ( Q P )) ( P Q )
(Commutative law)
(Distributive law)
((Q Q ) P ) ( P Q )
(P P T )
(T P ) ( P Q )
(P T P)
P (P Q ) (Absorption law)
P
2(a) Prove that ( P Q ) ( R Q ) ( P R ) Q .
Solution:
(P Q ) (R Q ) Reasons
( P Q ) ( R Q ) Since P Q P Q
( P R ) Q ) Distribution law
Demorgan‟s law
(P R ) Q
since P Q P Q
P R Q
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 3 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
T T F F F F T P Q
T F F T T T T P Q
F T T F T T T P Q
F F T T T F F P Q
Solution:
P P Q P ~ P ( P (~ Q P ))
~ P (P ~ Q ) (P P)
(~ P T ) ( P ~ Q ) ( P P )
(~ P (Q ~ Q ) ( P ~ Q )) ( P (Q ~ Q ))
(~ P Q ) (~ P ~ Q ) ( P ~ Q ) ( P Q ) ( P ~ Q )
(~ P Q ) (~ P ~ Q ) ( P ~ Q ) ( P Q )
4(a) Without constructing the truth table obtain the product-of-sums canonical form of the formula
( P R ) ( Q P ). Hence find the sum-of products canonical form.
Solution:
Let
S ( P R ) (Q P )
( ( P ) R ) ((Q P ) ( P Q ))
( P R ) ( Q P ) ( P Q )
[( P R ) F ] [( Q P ) F ] [( P Q ) F ]
[( P R ) (Q Q ) [( Q P ) ( R R )] [( P Q ) ( R R )]
( P R Q ) ( P R Q ) ( Q P R ) ( Q P R )
( P Q R ) ( P Q R )
S ( P R Q ) ( P R Q ) ( P Q R ) ( P Q R ) ( P Q R ) (Pcnf)
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 4 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
P ( P (Q (Q R )))
(P Q R )
S (P Q R )
S ( P Q R ) ( P Q R ) ( P Q R )
( P Q R ) ( P Q R ) ( P Q R ) ( P Q R )
S (( P Q R ) ( P Q R ) ( P Q R )
( P Q R ) ( P Q R ) ( P Q R ) ( P Q R ))
(P Q R ) (P Q R ) (P Q R )
( P Q R ) ( P Q R ) ( P Q R ) ( P Q R )
5(a) Using indirect method of proof, derive p ~s from the premises p ( q r), q ~p, s ~r and p.
Solution:
Let ~ ( p ~s ) be an additional premise.
~( p ~s ) ~( ~p ~s ) (p s)
1) p ( q r) Rule P
2) p Rule P
3) ( q r) Rule T, 1,2
4) p s Rule AP
5) s Rule T,4
6) s ~r Rule P
7) ~r Rule T, 5, 6
8) q Rule T3,7
9) q ~p Rule P
10) ~P Rule T, 8, 9
11) p ~p Rule T, 2,10
12) F Rule T, 11
5(b) Prove that the premises a ( b c ), d ( b c ), a n d ( a d ) are inconsistent.
Solution:
{1} a d Rule P
{1} a, d Rule T
{3} a (b c ) Rule P
{1,3} b c Rule T
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 5 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
{1,3} b c Rule T
{6} d (b c ) Rule P
{6} (b c ) d Rule T
{6} ( b c ) d Rule T
{1,3,6} d Rule T
{1,3,6} d d Rule T
This is a false value. Hence the set of a premises are inconsistent
6(a) Use the indirect method to prove that the conclusion z Q ( z ) follows from the premises
x ( P ( x ) Q ( x )) and y P (y )
Solution:
1 zQ ( z ) P(assumed)
2 z Q ( z ) T, (1)
3 y P (y ) P
4 P (a ) ES, (3)
5 Q (a ) US, (2)
6 P (a ) Q (a ) T, (4),(5)
7 ( P (a ) Q (a )) T, (6)
8 x ( P ( x ) Q (x )) P
9 P (a ) Q (a ) US, (8)
10 P (a ) Q (a ) ( P (a ) Q (a )) T,(7),(9) contradiction
Hence the proof.
6(b) Show that R S can be derived from the premises P ( Q S ), R P & Q
Solution:
R Assumed premises
R P Rule P
R P Rule T
P Rule T
P (Q S ) Rule P
Q S Rule P
Q Rule P
S Rule T
R S Rule CP
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 6 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
6 PxQxUS, (1)
7 PxT, (5),(6)
8 RxPxCP, (4),(7)
9 xRxPxUG, (9)
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 7 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
Solution:
E : Nirmala misses many classes
S: Nirmala fails high school
A: Nirmala reads lot of books
H: Nirmala is uneducated
Statement:
(1) E S
(2) S H
(3) A ~ H
(4) E A
Premises are : E S , S H , A ~ H, E A
1) E S Rule P
2) S H Rule P
3) E H Rule T, 1,2
4) A ~ H Rule P
5) H ~A Rule T,4
6) E ~A Rule T,3,5
7) ~ E ~ A Rule T,6
8) ~(E A) Rule T,7
9) E A Rule P
10) (E A) ~ (E A) Rule T,8,9
Which is nothing but false
Therefore given set of premises are inconsistent
9(a) Show that the hypotheses,”It is not sunny this afternoon and it is colder than yesterday,” ” We will
go swimming only if it is sunny,” “If we do not go swimming then we will take a canoe trip,” and “If
we take a canoe trip, then we will be home by sunset “lead to the conclusion “we will be home by
sunset”.
Solution:
p – It is sunny this afternoon.
q- It is colder than yesterday
r- we will go swimming
s- we will take a canoe trip
t- we will be home by sunset
The given premises are p q , r p , r s & s t
Step Reason
p q Hypothesis
p step 1
r p Hypothesis
r moduus tollens step 2 &3
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 8 ISO 9001:2008
www.vidyarthiplus.com
www.vidyarthiplus.com
Name & Code: Discrete Mathematics, MA6566 dept of mathematics Academic Year: 2015-2016
r s Hypothesis
s modus ponens step 4 &5
s t Hypothesis
t modus ponens step 6&7
Let P: 2 is irrational.
Assume ~P is true, then 2 is rational, which leads to a contradiction.
a
By our assumption is 2 , where a and b have no common factors ---------------(1)
b
2
a
2 2
2b
2
a
2
a2 is even. a = 2c
b
2b b 2 2c 2
2
4c
2
b 2 is even b is even as well.
a and b have common factor 2 (since a and b are even)
But it contradicts (1)
This is a contradiction.
Hence ~P is false.
Thus P: 2 is irrational is true.
10(a) Let p, q, r be the following statements:
p: I will study discrete mathematics
q: I will watch T.V.
r: I am in a good mood.
Write the following statements in terms of p, q, r and logical connectives.
(1) If I do not study and I watch T.V., then I am in good mood.
(2) If I am in good mood, then I will study or I will watch T.V.
(3) If I am not in good mood, then I will not watch T.V. or I will study.
(4) I will watch T.V. and I will not study if and only if I am in good mood.
Solution:
(1) ( p q ) r
(2) r ( p q )
(3) r ( q p )
(4) (q p ) r
10(b) Give a direct proof of the statement.”The square of an odd integer is an odd integer”.
Solution:
Given: The square of an odd integer is an odd integer”.
P: n is an odd integer.
Q:n2 is an odd integer
Hypothesis: Assume that P is true
Analysis : n=2k+1 where k is some integer.
n2=(2k+1)2=2(2k2+2k)+1
Conclusion: n2 is not divisible by 2.Therefore n2 is an odd integer.
P Q is true.
St. Joseph’s College of Engineering / St. Joseph’s Institute of Technology Page No: 9 ISO 9001:2008
www.vidyarthiplus.com