



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Student ID: Name: Class: 121 (Comp)/1 22 (Comp)/1 23 (AI) /1 24 (AI)
Discrete Mathematics– Assignment 2
(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 )
p q p q ( p → q ) ( q → p )
p q r p ( q r ) ( p q ) ( p r )
(b) Given that p → q is T, can you determine the value of ( ~
p ) ( p q )?
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
(b)
From the given, we have to consider three cases as shown in the
right table.
This table shows that the value of ( ~
p ) ( p q ) is T in all the
three cases.
p q (~ p )
( p
q )
(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
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
6
6
6
(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
8
10
2
(b) The student has to choose 5 more questions from the other 7 questions. Required number
7
5
7
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
4
5
4
5
5
5
3