Discrete Mathematics Answerkey 2022
Discrete Mathematics Answerkey 2022
Discrete Mathematics Answerkey 2022
PART-A
A B C 𝐴 − 𝐵 𝐵−𝐶 (𝐴 − 𝐵) − (𝐵 − 𝐶)
0 0 0 0 0 0
0 0 1 0 0 0
0 1 0 0 1 0
0 1 1 0 0 0
1 0 0 1 0 1
1 0 1 1 0 1
1 1 0 0 1 0
1 1 1 0 0 0
8. 𝑠 Simplification using 6
c) Without using truth tables, obtain the principal disjunctive normal form
of 𝑝 → ((𝑝 → 𝑞) ∧ ~(∼ 𝑝 ∨∼ 𝑞)) .
Solution:
𝑝 → ((𝑝 → 𝑞) ∧ ~(∼ 𝑝 ∨∼ 𝑞)) ≡ 𝑝 → ((∼ 𝑝 ∨ 𝑞) ∧ (𝑝 ∧ 𝑞))
≡∼ 𝑝 ∨ ((∼ 𝑝 ∨ 𝑞) ∧ (𝑝 ∧ 𝑞))
≡∼ 𝑝 ∨ [((𝑝 ∧ 𝑞) ∧ ~𝑝) ∨ ((𝑝 ∧ 𝑞) ∧ 𝑞)]
≡∼ 𝑝 ∨ [(𝐹 ∧ 𝑞) ∨ ((𝑝 ∧ 𝑞) ∧ 𝑞)]
≡∼ 𝑝 ∨ [(𝑞 ∨ (𝑝 ∧ 𝑞)]
≡ (∼ 𝑝 ∨ 𝑞)
≡ [∼ 𝑝 ∧ (𝑞 ∨ ~𝑞)] ∨ [𝑞 ∧ (𝑝 ∨ ~𝑝)]
≡ (∼ 𝑝 ∧ 𝑞) ∨ (∼ 𝑝 ∧ ~𝑞) ∨ (𝑝 ∧ 𝑞) ∨ (∼ 𝑝 ∧ 𝑞)
≡ (∼ 𝑝 ∧ 𝑞) ∨ (∼ 𝑝 ∧ ~𝑞) ∨ (𝑝 ∧ 𝑞)
∀x(J(x) → O(x))
∃x(J(x) ∧ ¬S(x))
∴ ∃x(O(x) ∧ ¬S(x))
2𝑥 + 1 ; 𝑥 ≤ 1
c) Determine if the function 𝑓(𝑥) = { is bijective on the
4𝑥 − 1 ; 𝑥 > 1
set of real numbers R. If it is bijective, find its inverse.
Solution: The domain is divided into two parts : (-∞ , 1) , [1,∞)
Let x1 , x2 𝜖 (-∞ ,1) and f(x1 ) = f(x2 )
2x1 + 1 = 2x2 + 1
⟹ x1= x2
Let x1, x2 ∈ [1,∞ ) and f(x1) = f(x2)
So, 4x1 - 1 = 4x2 - 1
⟹ 𝑥 1 = x2
∴ f is one-one
Let y ∈ R
Let 𝑦 = 2𝑥 + 1
𝑦−1
⟹ =𝑥,y≤3
2
Let 𝑦 = 4𝑥 − 1 ⟹ 𝑦 + 1 = 4𝑥
𝑦+1
=𝑥; y>3
4
∴ f is onto
Hence f is bijective.
f-1: R → R
𝑦−1
𝑓 −1 (𝑦) = if y ≤ 3
2
𝑦+1
= if y > 3
4
PART – B
𝑛
4. a) If the 9th term in the expansion of (𝑥 1⁄3 + 𝑥 −1⁄3 ) does not contain
x, then determine the value of n.
𝑛 10−(𝑟−1) 𝑟−1
Solution: 𝑇𝑟 = (𝑟−1 )(𝑥 1⁄3 ) (𝑥 −1⁄3 )
𝑛−8 8
𝑇9 = (𝑛8)(𝑥 1⁄3 ) (𝑥 −1⁄3 )
𝑛−8 1 8
𝑇9 = (𝑛8)(𝑥 1⁄3 ) (𝑥 1⁄3)
𝑛−8−8
𝑇9 = (𝑛8)(𝑥 1⁄3 )
𝑛−16
𝑇9 = (𝑛8)(𝑥 1⁄3 )
𝑛−16
𝑇9 = (𝑛8)(𝑥) 3
𝑛−16
⟹ =0
3
⟹ 𝑛 − 16 = 0
⟹ 𝑛 = 16
b) Find the recurrence relation satisfied by an, where an is the total
number of matches played by n teams in a round robin tournament.
Solution: Let 𝑎𝑛 the total number of matches played by n teams in a round
robin tournament.
∴ 𝑎𝑛 is equal to the total number of games played by (n-1) teams plus the
(n-1) games played by nth team with all other remaining teams
. ∴ 𝑎𝑛 = 𝑎𝑛−1 + (𝑛 − 1) ; 𝑛 ≥ 3, 𝑎2 = 1
Solution: G and H has the same number of vertices, same number of edges
Solution:
L(v) a b c d e f g z
1 0 ∞ ∞ ∞ ∞ ∞ ∞ ∞
2 0 4 3 6 9 ∞ ∞ ∞
3 0 4 3 6 9 ∞ ∞ ∞
4 0 4 3 6 9 ∞ ∞ ∞
5 0 4 3 6 7 11 ∞ ∞
6 0 4 3 6 7 11 12 ∞
7 0 4 3 6 7 11 12 18
8 0 4 3 6 7 11 12 16
The shortest path is a-c-d-e-g-z
The length of shortest path is 16.
6. a) Find the number of permutations of the word “MISSISSIPPI”. In
how many of these permutations the 4 S’s are together?
Solution: ‘MISSISSIPPI’ has 4 distinct letters: M,I,S,P with 1,4,4,2
occurrences respectively
11!
Therefore, the number of permutations=
4!∙4!∙2!
8!
Number of permutations in which the 4 S’s are together =
4!∙2!
b) Show that a connected graph with n vertices and edges e = n-1 is a
tree.
Proof: We know that the minimum number of edges required to make a
graph of n vertices connected is (n-1) edges. We can observe that removal
of one edge from the graph G will make it disconnected. Thus a connected
graph of n vertices and (n-1) edges cannot have a circuit. Hence a graph G
is a tree.
PART – C
∴ 𝑛 = 34 + 8 + 10 = 52 books
Using Prim’s algorithm, find the minimum spanning tree for the
weighted graph shown below.
1 1 0 0 0 0
1 0 1 1 0 0
The incidence matrix is 0 0 0 0 1 1
0 1 0 1 0 1
[0 0 1 0 1 0]
e d
f g h
Solution: a - b – c - d - h – g – d – b – e - g - f – e - a
(ii) Regular graph: A graph in which all the vertices are of equal degree
is called a regular graph. If the degree of each vertex is r, then the
graph is called regular graph of degree r or r-regular graph.