Dms Answers
Dms Answers
Part – I
2. Write the logical expression of the sentence “you can access the Internet
from campus, only if you are a computer science major or you are not a
freshman.”
Logical expression: (A → (C ∨ ~F)), where A = access Internet, C = computer science
major, F = freshman.
5. When the propositions both p & q are true and false respectively, then write
truth value of the statement
~(𝑝 ∧ 𝑞) ∨ ~𝑞.
~(T ∧ F) ∨ ~F = ~(F) ∨ T = T ∨ T = T
a. Base case
b. Inductive hypothesis
c. Inductive step
9. State which rule of inference is used in the valid argument “It is below
freezing now. Therefore, it is either below freezing or raining now.”
Rule of inference: Addition
10. State which rule of inference is used in the valid argument: “If it rains
today, then we will not have a barbecue today. If we do not have a
barbecue today, then we will have a barbecue tomorrow. Therefore, if it
rains today, then we will have a barbecue tomorrow.”
Rule of inference: Hypothetical syllogism
11. What is the truth value of 𝑄(2,3,5) 𝑎𝑛𝑑 𝑄(0,1,2) for the propositional
function 𝑄(𝑥, 𝑦, 𝑧) defined by 𝑥 + 𝑦 = 𝑧.
Q(2,3,5): 2 + 3 = 5 (T), Q(0,1,2): 0 + 1 ≠ 2 (F)
18. Let R = {(1,2), (2,3), (3,1), (1,1)} be a relation defined on the set A = {1,2,3}. Write
reflexive closure, symmetric closure of the relation R.
Reflexive closure: R ∪ {(2,2), (3,3)} = {(1,2), (2,3), (3,1), (1,1), (2,2), (3,3)}
Symmetric closure: R ∪ {(2,1), (3,2), (1,3)} = {(1,2), (2,3), (3,1), (1,1), (2,1), (3,2), (1,3)}
19. Let R = {(1,1), (1,3), (2,2), (3,1), (3,2)} be a relation defined on the set A = {1,2,3}.
Write transitive closure of the relation R by using composition of relation.
Transitive closure: R ∪ {(1,2), (3,3)} = {(1,1), (1,3), (2,2), (3,1), (3,2), (1,2), (3,3)}
20. Find equivalence class of the relation R = {(1,1), (2,2), (3,3), (4,4), (5,5), (1,2), (2,1),
(4,5), (5,4)} on the set A = {1,2,3,4,5}.
21. Find partition of the set A = {1,2,3,4,5} on the relation R = {(1,1), (2,2), (3,3), (4,4),
(5,5), (1,2), (2,1), (4,5), (5,4)}.
27. {(1,1), (2,2), (3,3), (1,2), (2,1), (1,3), (3,1), (2,3), (3,2)}
Example: In the poset ({1,2,3}, ≤), 1 and 2 are comparable. In the poset ({a,b}, ⊆), {a} and {b}
are incomparable.
24. Define poset. Show that the poset (ℤ, ≤) is a totally ordered set on the set of integers.
Poset: A set with a partial order relation.
Totally ordered set: A poset where every two elements are comparable.
(ℤ, ≤) is a totally ordered set because for any two integers a, b, either a ≤ b or b ≤ a.
25. Show that the “greater than or equal (≥)’’ relation is a partial ordering on the set of
integers.
f^(-1)(x) = (-3x-1)/(x-2)
29. Write the standard form of the linear recurrence relation with constant coefficient.
30. Find a_2 and a_3 for the recurrence relation a_n = a_(n-1) - a_(n-2), n ≥ 2, where a_0
= 3 and a_1 = 5.
31. If the roots of the characteristic equation for a linear homogeneous recurrence
relation are 2, 5, 6, 5, 7, 7, 11, write the general solution.
35. Write the generating function of numeric function a_n = 2^n + 3^n.
Generating function: 1/(1-2x) + 1/(1-3x)
36. Write the general solution of the homogeneous recurrence relation having
characteristic roots 2, 2, 3, 3, 3, 4, 4, 5, 6.
37. Find the trial solution or particular solution of the recurrence relation a_n = 4a_(n-1)
+ 5^n.
38. Find the trial solution or particular solution of the recurrence relation a_n = 5a_(n-1)
- 6a_(n-2) + 5^n.
40. Define group and abelian group. Give a suitable example of a group but not an
abelian group.
41. Which of the followings are not an abelian group. (ℤ, +), (ℤ,×), (ℤ, −), (ℚ, +), (ℝ, +).
43. Define groupoid and semigroup. Give an example of a semigroup but not a groupoid.
44. Which of the followings are not monoid? (ℕ, +), (ℤ, ×), (ℤ, −), (ℚ, +), (ℝ, +).
46. {1, ω, ω^2} satisfies the group properties under multiplication and is commutative.
Which of the followings are not a Semi-group.
(ℤ, +), (ℤ,×), (ℤ, −), (ℚ, +), (ℝ, +).
47. Define semi-group and monoid. Give an example of a semi-group but not a monoid.
(ℤ, ×), (ℤ, -), and (ℚ+, × without 0) are not groups.
49. Define sub-group and group. Give a suitable example of a group but not a sub-group.
Example: (ℝ, +) is a group, but (ℕ, +) is not a subgroup of (ℤ, +) because ℕ is not a subset of
the group operation in the context required for subgroup consideration in this traditional
sense, though it could fit in some contexts.
51. Define groupoid and semi-group. Give an example of a semi-group but not a
groupoid.
52. Show that {1,𝑖, −𝑖} is not a group with respect to multiplication.
{1, 𝑖, −𝑖} is not closed under multiplication since 𝑖 * 𝑖 = −1, which is not in the set.
Handshaking theorem: The sum of degrees of all vertices in a graph is twice the number of
edges.
56. How many edges are there in a graph with 10 vertices each of degree 6?
Sum of degrees = 10 * 6 = 60
Number of edges = 60 / 2 = 30
57. If a graph has five vertices of degree 4 and four vertices of degree 3, how many edges
does it have?
Sum of degrees = 5 * 4 + 4 * 3 = 20 + 12 = 32
Number of edges = 32 / 2 = 16
59. Define complete graph. Draw complete graph each for the case when number of
vertices is given by, 𝑛 = 3 𝑎𝑛𝑑 𝑛 = 4.
Complete graph: A graph where every vertex is connected to every other vertex.
61. Show that there does not exist a graph with 5 vertices with degrees 1, 3, 4, 2, 3
respectively.
PART – II
Show that; 𝑝 → (𝑞 ∧ 𝑟) ≡ (𝑝 → 𝑞) ∧ (𝑝 → 𝑟)
To prove that the statement is a tautology, we can use truth tables or logical laws.
This shows that the statement is always true, regardless of the truth values of 𝑝, 𝑞, and 𝑟.
To prove that the statement is a contradiction, we can use truth tables or logical laws.
This shows that the statement is always false, regardless of the truth values of 𝑝 and 𝑞.
4. A total of 1232 students have taken a course in Spanish, 879 have taken a course in
French, and 114 have taken a course in Russian...
Let S, F, and R denote the sets of students who have taken Spanish, French, and Russian,
respectively.
5. How many positive integers not exceeding 1000 are divisible by 7 or 11?
Therefore, there are 220 positive integers not exceeding 1000 that are divisible by 7 or 11.
How many integers are not divisible by 2 or 3 or 5 in a set {1,2,3,4,...,122,123}?
Therefore, there are 33 integers in the set {1,2,3,4,...,122,123} that are not divisible by 2 or 3
or 5.
Since (𝑘^3 - 𝑘) is divisible by 6 and 3𝑘(𝑘 + 1) is divisible by 6 (since one of 𝑘 and 𝑘+1 is even),
((𝑘+1)^3 - (𝑘+1)) is divisible by 6.
8. Use mathematical induction to prove the inequality 2𝑛 + 1 < 2^𝑛, for all positive integers
𝑛 ≥ 3.
R is transitive since (2,3) ∈ R and (3,2) ∈ R imply (2,2) ∈ R, and (3,2) ∈ R and (2,3) ∈ R imply
(3,3) ∈ R.
10. Let 𝐴 = {1,2,3} and 𝑅 = {(1,2), (1,3), (3,1), (2,3)} on 𝐴. Check the given relation is
symmetric or anti-symmetric ?
11. Write the number of possible reflexive relations, symmetric relations on set 𝐴 =
{1,2,3,...,𝑛}.
12. Write the number of anti-symmetric relations on set 𝐴 containing five elements.
13. Give an example of a relation which is reflexive, symmetric, but not transitive.
14. Let 𝑅 = {(1,2), (2,3), (3,1), (1,1)} be a relation defined on the set 𝐴 = {1,2,3}. Write
reflexive closure, symmetric closure of the relation 𝑅.
Reflexive closure: R ∪ {(2,2), (3,3)} = {(1,2), (2,3), (3,1), (1,1), (2,2), (3,3)}
Symmetric closure: R ∪ {(2,1), (3,2), (1,3)} = {(1,2), (2,3), (3,1), (1,1), (2,1), (3,2), (1,3)}
15. Let 𝑅 = {(1,1), (1,3), (2,2), (3,1), (3,2)} be a relation defined on the set 𝐴 = {1,2,3}. Write
transitive closure of the relation 𝑅.
Transitive closure: R ∪ {(1,2), (3,3)} = {(1,1), (1,3), (2,2), (3,1), (3,2), (1,2), (3,3)}
16. Let 𝑅 = {(1,1), (1,3), (2,2), (3,1), (3,2)} be a relation defined on a set 𝐴 = {1,2,3}. Write
the transitive closure of 𝑅 using Warshall’s algorithm.
19. Solve 𝑎𝑛 = 6𝑎𝑛−1 − 11𝑎𝑛−2 + 6𝑎𝑛−3, with initial condition 𝑎0 = 2, 𝑎1 = 5 and 𝑎2 = 15.
20. Solve 𝑎𝑛 = −3𝑎𝑛−1 − 3𝑎𝑛−2 − 𝑎𝑛−3, with initial condition 𝑎0 = 1, 𝑎1 = −2 and 𝑎2 = −1.
Characteristic equation: 𝑥^3 + 3𝑥^2 + 3𝑥 + 1 = 0
Roots: 𝑥 = -1, 𝑥 = -1, 𝑥 = -1
General solution: 𝑎𝑛 = (𝑐1 + 𝑐2𝑛 + 𝑐3𝑛^2)(-1)^𝑛
Using initial conditions, we get:
𝑎0 = 1 = 𝑐1
𝑎1 = -2 = -(𝑐1 + 𝑐2 + 𝑐3)
𝑎2 = -1 = 𝑐1 + 2𝑐2 + 4𝑐3
Solving, we get 𝑐1 = 1, 𝑐2 = 2, and 𝑐3 = -1.
𝑎𝑛 = (1 + 2𝑛 - 𝑛^2)(-1)^𝑛
23. Find the numeric function for the generating function 𝐺(𝑥) = 1/((1-2𝑥)(1-3𝑥)).
24. Find the numeric function to the corresponding generating function 𝐺(𝑥) = 𝑥/(𝑥^2 - 𝑥 -
2).
25. Show that the set of four fourth roots of unity {1, −1, 𝑖, −𝑖} forms an abelian group with
respect to multiplication.
4. Inverse: Each element has an inverse (1, -1, 𝑖, -𝑖 have inverses 1, -1, -𝑖, 𝑖 respectively).
Therefore, the set {1, −1, 𝑖, −𝑖} forms an abelian group under multiplication.
26. Show that the set of cube root of unity {1, 𝑤, 𝑤^2} forms an abelian group with respect
to multiplication.
4. Inverse: Each element has an inverse (1, 𝑤, 𝑤^2 have inverses 1, 𝑤^2, 𝑤
respectively).
Therefore, the set {1, 𝑤, 𝑤^2} forms an abelian group under multiplication.
27. Show that 𝐺 = {0, 1, 2, 3, 4} is not a group under ×5.
28. Show that 𝐺 = {𝑖, −𝑖} of complex numbers is not a group under multiplication.
The set {𝑖, −𝑖} does not form a group under multiplication because:
1. The set is not closed under multiplication (𝑖 * 𝑖 = −1, which is not in the set).
29. Prove that the set 𝐺 = {0, 1, 2, 3, 4, 5} is an abelian group with respect to addition
modulo 6 (+6).
Therefore, the set {0, 1, 2, 3, 4, 5} forms an abelian group under addition modulo 6.
30. Prove that the set 𝐺 = {1, 2, 3, 4} is an abelian group with respect to multiplication
modulo 5 (×5).
Therefore, the set {1, 2, 3, 4} forms an abelian group under multiplication modulo 5.
31. Draw the following graphs and determine how many edges each has; (𝑎) 𝐾4, (𝑏) 𝐾3,2,
(𝑐) 𝐾1,5.
(𝑎) 𝐾4 has 6 edges.
(𝑏) 𝐾3,2 has 6 edges.
(𝑐) 𝐾1,5 has 5 edges.
32. A graph contains 21 edges and 3 vertices of degree 4 and all other vertices of degree 2.
Find the total number of vertices.
34. Prove that in a graph the number of vertices of odd degree is even.
35. Prove that maximum degree of any vertex, in a simple graph with 𝑛 vertices is (𝑛 − 1).
36. Prove that maximum number of edges in a simple graph with 𝑛 vertices is 𝑛(𝑛 − 1)/2.
1. a) In an apartment out of 100 families, 40 families are reading ‘The Times of India’
newspaper, 30 families are reading ‘The Hindu’ newspaper, 50 families are reading ‘The
Telegraph’ newspaper, 15 families are reading both ‘The Times of India’ and ‘ The Hindu’
newspaper, 10 families are reading both ‘The Telegraph’ and ‘ The Hindu’ newspaper, 08
families are reading both ‘The Times of India’ and ‘ The Telegraph’ newspaper, 05 families
are reading all the three news papers, then find the number of families who are reading (i)
at least two of the newspaper, (ii) exactly two of the newspaper, (iii) exactly one of the
newspaper, (iv) only one of the newspaper, and (v) neither of them
Let A be the set of families reading 'The Times of India', B be the set of families reading 'The
Hindu', and C be the set of families reading 'The Telegraph'.
𝑝 → (𝑞 → 𝑟)
≡ 𝑝 → (~𝑞 ∨ 𝑟) (by definition of implication)
≡ ~𝑝 ∨ (~𝑞 ∨ 𝑟) (by definition of implication)
≡ (~𝑝 ∨ ~𝑞) ∨ 𝑟 (by associative law)
≡ ~(𝑝 ∧ 𝑞) ∨ 𝑟 (by De Morgan's law)
≡ (𝑝 ∧ 𝑞) → 𝑟 (by definition of implication)
Therefore, 𝑝 → (𝑞 → 𝑟) ≡ 𝑝 → (~𝑞 ∨ 𝑟) ≡ (𝑝 ∧ 𝑞) → 𝑟.
2. a) Show that ~{𝑝 ∨ (~𝑝 ∧ 𝑞)} 𝑎𝑛𝑑 (~𝑝 ∧ ~𝑞) are logically equivalent...
Therefore, ~{𝑝 ∨ (~𝑝 ∧ 𝑞)} and (~𝑝 ∧ ~𝑞) are logically equivalent.
~(𝑝 → 𝑞)
≡ ~(~𝑝 ∨ 𝑞) (by definition of implication)
≡ 𝑝 ∧ ~𝑞 (by De Morgan's law)
(𝑝 ∧ 𝑞) → (𝑝 ∨ 𝑞)
≡ ~(𝑝 ∧ 𝑞) ∨ (𝑝 ∨ 𝑞) (by definition of implication)
≡ ~𝑝 ∨ ~𝑞 ∨ 𝑝 ∨ 𝑞 (by De Morgan's law)
≡ T (by law of excluded middle)
Therefore, (𝑝 ∧ 𝑞) → (𝑝 ∨ 𝑞) is a tautology.
Base case: 𝑛 = 0
1^2 = 1 = (0+1)(20+1)(20+3)/3
= 113/3
=1
Base case: 𝑛 = 1
6^3 + 7^3 = 216 + 343 = 559 = 43*13
2. 𝑊 → 𝑆
3. ~𝑊 → 𝑇
4. 𝑇 → 𝐻
1. ~𝑆 ∧ 𝐶 (Hypothesis)
2. ~𝑆 (Simplification)
3. 𝑊 → 𝑆 (Hypothesis)
4. ~𝑊 (Modus tollens, 2, 3)
5. ~𝑊 → 𝑇 (Hypothesis)
6. 𝑇 (Modus ponens, 4, 5)
7. 𝑇 → 𝐻 (Hypothesis)
8. 𝐻 (Modus ponens, 6, 7)
Therefore, the conclusion "We will be home by sunset" logically follows from the
hypotheses.
1. 𝐸 → 𝐹
2. ~𝐸 → 𝑆
3. 𝑆 → 𝑊
1. ~𝐹 → ~𝐸 (Contrapositive, 1)
2. ~𝐸 → 𝑆 (Hypothesis)
3. ~𝐹 → 𝑆 (Hypothetical syllogism, 1, 2)
4. 𝑆 → 𝑊 (Hypothesis)
5. ~𝐹 → 𝑊 (Hypothetical syllogism, 3, 4)
Therefore, the conclusion "If I do not finish writing the program, then I will wake up feeling
refreshed" logically follows from the hypotheses.
5. a) Let 𝑅 = {(𝑎, 𝑏), (𝑎, 𝑐), (𝑐, 𝑏), (𝑐, 𝑑), (𝑐, 𝑎)}...
𝑊0 = 𝑀(𝑅) = | 0 1 1 0 |
|0000|
|0101|
|0010|
|0000|
𝑊1 = | 0 1 1 0 |
|0000|
|0111|
|0010|
|0000|
𝑊2 = | 0 1 1 1 |
|0000|
|0111|
|0010|
|0000|
𝑊3 = | 0 1 1 1 |
|0111|
|0111|
|0111|
|0000|
𝑊4 = | 0 1 1 1 |
|0111|
|0111|
|0111|
|0000|
5. b) Let 𝑅 = {(𝑎, 𝑑), (𝑏, 𝑎), (𝑏, 𝑐), (𝑐, 𝑎), (𝑐, 𝑑), (𝑑, 𝑐)}...
𝑊1 = | 0 0 0 1 |
|1011|
|1001|
|0010|
𝑊2 = | 1 0 1 1 |
|1011|
|1011|
|0010|
𝑊3 = | 1 0 1 1 |
|1011|
|1011|
|1011|
𝑊4 = | 1 0 1 1 |
|1011|
|1011|
|1011|
𝑊0 = 𝑀(𝑅) = | 0 1 0 0 |
|0010|
|0001|
|0000|
𝑊1 = | 0 1 1 0 |
|0010|
|0001|
|0000|
𝑊2 = | 0 1 1 1 |
|0011|
|0001|
|0000|
𝑊3 = | 0 1 1 1 |
|0011|
|0001|
|0000|
To show that (𝑃(𝑆), ⊆) is a poset, we need to verify that ⊆ is reflexive, antisymmetric, and
transitive.
∅
|
{𝑎}
{𝑏}
{𝑐}
|
{𝑎, 𝑏}
{𝑎, 𝑐}
{𝑏, 𝑐}
|
{𝑎, 𝑏, 𝑐}
1
|
25
|
4 10
|
20
Roots: 𝑥 = 2, 𝑥 = 3
Roots: 𝑥 = 2, 𝑥 = 2
4. Inverse: For each 𝑎 ∈ 𝐺, there exists an inverse element 𝑎^(-1) ∈ 𝐺 such that 𝑎 ∗ 𝑎^(-
1) = 𝑒.
1. Closure: 𝑎 ∗ 𝑏 = 𝑎 + 𝑏 - 𝑎𝑏 = (1 - 𝑎)(1 - 𝑏) - 1 + 1 ≠ 1, so 𝑎 ∗ 𝑏 ∈ 𝐺.
5. Commutativity: 𝑎 ∗ 𝑏 = 𝑎 + 𝑏 - 𝑎𝑏 = 𝑏 + 𝑎 - 𝑏𝑎 = 𝑏 ∗ 𝑎.
To prove that (ℤ, ∗) is an abelian group, we need to verify the following properties:
4. Inverse: For each 𝑎 ∈ ℤ, there exists an inverse element 𝑎^(-1) ∈ ℤ such that 𝑎 ∗ 𝑎^(-
1) = 𝑒.
1. Closure: 𝑎 ∗ 𝑏 = 𝑎 + 𝑏 + 1 ∈ ℤ.
2. Associativity: (𝑎 ∗ 𝑏) ∗ 𝑐 = (𝑎 + 𝑏 + 1) ∗ 𝑐 = 𝑎 + 𝑏 + 𝑐 + 2 = 𝑎 ∗ (𝑏 ∗ 𝑐).
5. Commutativity: 𝑎 ∗ 𝑏 = 𝑎 + 𝑏 + 1 = 𝑏 + 𝑎 + 1 = 𝑏 ∗ 𝑎.
4. Inverse: For each 𝑎 ∈ ℤ4, there exists an inverse element 𝑎^(-1) ∈ ℤ4 such that 𝑎 +5
𝑎^(-1) = 𝑒.
4. Inverse: For each 𝑎 ∈ 𝐺, there exists an inverse element 𝑎^(-1) ∈ 𝐺 such that 𝑎 ×10
𝑎^(-1) = 𝑒.
These properties can be verified using the multiplication table modulo 10.
To prove that the set is not a group, we need to show that one of the group properties fails.
2 +6 4 = 0 ∉ {1, 2, 3, 4, 5}
Therefore, the set is not closed under addition modulo 6, and hence it is not a group.
2 ×6 3 = 0 ∉ {1, 2, 3, 4, 5}
Therefore, the set is not closed under multiplication modulo 6, and hence it is not a group.
A complete graph is a graph in which every vertex is connected to every other vertex. A
complete graph with 𝑛 vertices is denoted by 𝐾𝑛.
A complete bipartite graph is a graph whose vertices can be divided into two disjoint sets 𝑈
and 𝑉 such that every vertex in 𝑈 is connected to every vertex in 𝑉. A complete bipartite
graph with |𝑈| = 𝑚 and |𝑉| = 𝑛 is denoted by 𝐾𝑚,𝑛.
A graph can have a 𝐾3 subgraph and be bipartite if the 𝐾3 subgraph is contained in one of
the partite sets.
The handshaking theorem states that the sum of the degrees of all vertices in a graph is
equal to twice the number of edges.
Proof: Let 𝐺 = (𝑉, 𝐸) be a graph. For each edge (𝑢, 𝑣) ∈ 𝐸, the degree of 𝑢 and 𝑣 each
increase by 1. Therefore, the sum of the degrees of all vertices is twice the number of edges.
18. (b) (ii) If a graph has five vertices of degree 4 and four vertices of degree 3...
Let's consider a cycle graph with 4 vertices. Each vertex has degree 2.
A cubic graph is a graph where each vertex has degree 3. However, it's impossible to
construct a cubic graph with 5 vertices.
Let's consider a bipartite graph with partite sets 𝑈 = {1, 2} and 𝑉 = {3, 4, 5}. We can add 6
edges between 𝑈 and 𝑉. To add one more edge, we can add an edge between two vertices
in 𝑉, but this would make the graph non-bipartite. Therefore, it's impossible to construct a
bipartite graph of order 5 and size 7.
Let's consider a bipartite graph with partite sets 𝑈 = {1, 2, 3, 4} and 𝑉 = {5, 6, 7, 8}. We can
add 10 edges between 𝑈 and 𝑉.
19. (b) (i) Prove that it is impossible for every vertex of a graph to have a different degree...
Let's consider a graph with 𝑛 vertices. The possible degrees of vertices are 0, 1, 2, ..., 𝑛-1.
If every vertex has a different degree, then one vertex must have degree 0 and another
vertex must have degree 𝑛-1. However, this is impossible because the vertex with degree 𝑛-1
must be connected to every other vertex, including the vertex with degree 0.
19. (b) (ii) Write short notes on simple graph, multi graph, and pseudo graph...
A multigraph is a graph that allows multiple edges between vertices but no loops.