DR B R Ambedkar National Institute of Technology, Jalandhar ITPC-309, Discrete Mathematics Mid-Semester Examination, Oct-2024
DR B R Ambedkar National Institute of Technology, Jalandhar ITPC-309, Discrete Mathematics Mid-Semester Examination, Oct-2024
Note:
1. Attempt all the questions.
2. Use of non-programmable calculator is not allowed
1
2. Solve the following
a) There are 6561 functions f: X →Y and |Y| = 3. If X is the power
set of A, then how many binary relations on A are possible
which are neither reflexive nor irreflexive? Show steps
(3 Marks)
Solution
2
1. Reflexive relations: These must include all diagonal elements
(a, a) ∈ A × A. The remaining 9 - 3 = 6 off-diagonal elements
can either be included or not, giving: 2^6 = 64 reflexive relations
2. Irreflexive relations: These must exclude all diagonal elements.
The remaining 6 off-diagonal elements can either be included or
not, giving: 2^6 = 64 irreflexive relations
Step 6: Relations that are neither reflexive nor irreflexive
To be neither reflexive nor irreflexive, the relation must include some
but not all diagonal elements. There are 3 diagonal elements, and each
can independently be included or excluded, except for the two extreme
cases (all included or all excluded).
The total number of ways to choose some but not all diagonal
elements is: 2^3 - 2 = 8 - 2 = 6 ways
For each such choice of diagonal elements, the 6 off-diagonal
elements can be included or not, giving: 2^6 = 64 ways to choose
off-diagonal elements.
Therefore, the total number of binary relations that are neither
reflexive nor irreflexive is: 6 × 64 = 384
Step 7: Final Answer
The number of binary relations on A that are neither reflexive nor
irreflexive is:
384
For n = 100:
Max 1's = 100 * 99 / 2 = 4950
4
sequences of tasks. Provide an example using a non-invertible
element and explain its impact on system rollback capabilities
(2 Marks)
Definitions:
A monoid M is a set with an associative binary operation and an
identity element.
A group is a monoid where every element has an inverse.
5
⊙₅ 0 1 2 3 4
0 0 1 2 3 4
1 1 2 3 4 0
2 2 3 4 0 1
3 3 4 0 1 2
4 4 0 1 2 3
As we can see, all results are within the set S. Therefore, the closure
property is satisfied.
(2 ⊙₅ 3) ⊙₅ 4 = 0 ⊙₅ 4 = 4 2 ⊙₅ (3 ⊙₅ 4) = 2 ⊙₅ 2 = 4
Looking at the operation table, we can see that 0 acts as the identity
element: a ⊙₅ 0 = 0 ⊙₅ a = a for all a in S.
Let's find the inverse for each element: 0 ⊙₅ 0 = 0 (0 is its own inverse)
1 ⊙₅ 4 = 0 (1 and 4 are inverses of each other) 2 ⊙₅ 3 = 0 (2 and 3 are
inverses of each other)
6
Conclusion: The set S = {0, 1, 2, 3, 4} with the operation ⊙₅ satisfies all
four group axioms:
1. Closure
2. Associativity (assumed based on examples)
3. Identity element (0)
4. Inverse elements for each member
Determine how many roles complement the role "e" based on the
given hierarchy?
(2 Marks)
8
A. Reflexive
B. Symmetric
C. Anti-symmetric
9
This means: ∃n1 ∈ N, a^n1 = b ∃n2 ∈ N, b^n2 = a
Conclusion:
A. Reflexive: Yes
B. Symmetric: No
C. Anti-symmetric: Yes
10
[0] + [0] ≡ [0] (mod 4), so [0] is its own inverse.
[1] + [1] ≡ [2] (mod 4), so [1] is not its own inverse.
[2] + [2] ≡ [0] (mod 4), so [2] is its own inverse.
[3] + [3] ≡ [2] (mod 4), so [3] is not its own inverse.
Therefore, in M4, 2 elements ([0] and [2]) are their own inverses.
3. To summarize:
o In M3: 1 element is its own inverse.
o In M4: 2 elements are their own inverses.
Thus, the answer is:
M3 has 1 element that is its own inverse.
M4 has 2 elements that are their own inverses.
11