Docsity

Discrete Mathematics Assignment 2 Solutions, Assignments of Mathematics

Toggle sidebar
bg1
Student ID: Name: Class: 121(Comp)/122(Comp)/123(AI) /124(AI)
Discrete Mathematics– Assignment 2
1. Prove the following with the help of truth tables:
(a) ~(p q) (~p) (~q); (b) p q (p → q) (q → p); (c) p (q r) (p q) (p r)
Sol:
p
q
~(p q)
(~p)
(~q)
T
T
F
T
F
F
F
T
F
T
T
F
T
T
F
T
T
T
T
T
F
F
F
T
T
T
T
T
p
q
p q
(p → q)
(q → p)
T
T
T
T
T
T
T
T
F
F
T
F
F
T
F
T
F
T
T
F
F
F
F
T
T
T
T
T
p
q
r
p
(q r)
(p q)
(p r)
T
T
T
T
T
T
T
T
T
T
T
T
F
T
T
T
T
T
T
F
T
F
T
T
T
T
T
F
T
T
T
F
F
T
F
F
T
F
F
F
F
T
T
F
F
T
T
F
F
F
F
T
F
F
F
T
T
F
F
F
F
F
T
F
F
T
T
F
F
F
F
F
F
F
F
F
T
F
F
F
pf3
pf4
pf5

Partial preview of the text

Download Discrete Mathematics Assignment 2 Solutions and more Assignments Mathematics in PDF only on Docsity!

Student ID: Name: Class: 121 (Comp)/1 22 (Comp)/1 23 (AI) /1 24 (AI)

Discrete Mathematics– Assignment 2

  1. Prove the following with the help of truth tables:

(a) ~( pq )  (~ p )  (~ q ); (b) pq  ( p → q )  ( q → p ); (c) p  ( qr )  ( pq )  ( pr )

Sol:

p q ~

( pq )  (~ p )  (~ q )

T T F T F F F

T F T T F T T

F T T T T T F

F F T T T T T

p q pq  ( p → q )  ( q → p )

T T T T T T T

T F F T F F T

F T F T T F F

F F T T T T T

p q r p  ( qr )  ( pq )  ( pr )

T T T T T T T T T T

T T F T T T T T T F

T F T T T T T F T T

T F F T F F T F F F

F T T F F T T F F F

F T F F F T T F F F

F F T F F T T F F F

F F F F F F T F F F

  1. (a) Given that p → q is F, determine the value of ((~ p )  (~ q )) → q.

(b) Given that p → q is T, can you determine the value of ( ~

p )  ( pq )?

Sol:

(a)

From the given, we have to consider only one case as shown in the right table.

This table shows that the value of (( ~

p )  ( ~

q )) → q is F.

p q ((~ p )  (~ q )) → q

T F F T T F F

(b)

From the given, we have to consider three cases as shown in the

right table.

This table shows that the value of ( ~

p )  ( pq ) is T in all the

three cases.

p q (~ p ) 

( p

q )

T T F T T

F T T T F

F F T T T

  1. In how many ways can six men and six women be seated in a row if

(a) any person may sit next to any other?

(b) men and women must occupy alternate seats?

Sol:

(a) This is a permutation problem. Required number =

12

P

12

(b) The first seat can be occupied by a man or woman, and the six men (or women) can permute

among themselves,  required number = 2

6

P

6

6

P

6

  1. A student must answer 8 out of 10 questions in an examination.

(a) How many choices does the student have?

(b) How many choices does she have if she must answer the first three questions?

(c) How many choices does she have if she must answer at least four of the first five questions?

Sol:

(a) This is a combination problem. Required number = 10

C

8

10

C

2

(b) The student has to choose 5 more questions from the other 7 questions.  Required number

7

C

5

7

C

2

(c) There are 2 cases: i

/

. he/she answers exactly 4 questions out of the first 5 questions; ii

/

. he/she

answers all of the first 5 questions.

 Required number =

5

C

4

5

C

4

5

C

5

5

C

3