Solved - Mca-1-Sem-Discrete-Mathematics-Kca104-2023
Solved - Mca-1-Sem-Discrete-Mathematics-Kca104-2023
MCA
(SEM I) THEORY EXAMINATION 2022-23
DISCRETE MATHEMATICS
Time: 3 Hours Total Marks: 100
Note: Attempt all Sections. If require any missing data; then choose
suitably.
SECTION A
Question 1. Attempt all questions in brief. 2 x 10 = 20
(a) State the Distributive and Associative laws of set theory.
(b) Write down the properties of Equivalence Relation.
(c) Define the Hasse diagram with example.
(d) What do you mean by Normal Form in Boolean algebra?
(e) Define the term Proposition.
(f) Negate the statement “He is poor and laborious”
(g) Define Monoid with example.
(h) Define the Commutative Ring with unity.
(i) Solve the recurrence relation: an - 3an-1 + 2an-2 = 0
(j) Write down the properties of Generating function.
Answer .1
(a) Distributive Law of Set Theory: The Distributive Law of Set
Theory states that the union and intersection of sets distribute
over each other. Mathematically, it can be expressed as follows:
A (B∩C)=(A B)∩(A C)
A∩(B C)=(A∩B) (A∩C)
(b) Properties of Equivalence Relation:
Reflexivity: a a for all a in the set.
Symmetry: If a b, then b a for all a,b in the set.
Transitivity: If a b and b c, then a c for all a,b,c in the set.
(c) Hasse Diagram:
A Hasse diagram is a graphical representation of a partially ordered set
(poset) showing the elements and the relations among them without
showing all possible relations.
Example: Consider a set {a,b,c,d} with a partial order relation ≤≤ such
that a≤b, a≤c, and c≤d. The Hasse diagram for this poset will have
nodes for each element connected by directed edges representing the
partial order relation.
(d) Normal Form in Boolean Algebra:
Normal form refers to a standard form expression in Boolean algebra.
Examples include disjunctive normal form (DNF) and conjunctive
normal form (CNF), where expressions are represented as a series of
AND and OR operations on variables or their complements.
(e) Proposition:
A proposition is a statement that is either true or false, but not both.
Example: "The sky is blue" is a proposition because it can be
evaluated as either true or false.
(f) Negation of Statement:
The negation of "He is poor and laborious" is "He is not poor or not
laborious."
(g) Monoid:
A monoid is a mathematical structure consisting of a set equipped with
a binary operation and satisfying the following properties:
1. Closure: The binary operation combines two elements of the set
to produce another element in the set.
2. Associativity: The binary operation is associative.
3. Identity Element: There exists an identity element that, when
combined with any element of the set using the binary operation,
yields the same element.
Example: The set of non-negative integers under addition forms a
monoid, with 0 as the identity element.
(h) Commutative Ring with Unity:
A commutative ring with unity is a mathematical structure consisting
of a set equipped with two binary operations (addition and
multiplication) and satisfying certain properties, including
commutativity and the existence of a multiplicative identity element.
Example: The set of integers with addition and multiplication forms a
commutative ring with unity, with 0 as the additive identity and 1 as
the multiplicative identity.
( i ) To solve the recurrence relation an−3an−1+2an−2=0, we can first
find the characteristic equation associated with it. The characteristic
equation is obtained by replacing an with rn in the recurrence relation,
leading to:
rn−3rn−1+2rn−2=0
Dividing through by rn−2, we get:
r2−3r+2=0
This quadratic equation can be factored as (r−1)(r−2)=0, giving
us the roots r=1 and r=2.
Therefore, the general solution to the recurrence relation is of the
form:
an=A×1n+B×2n
where A and B are constants determined by the initial conditions
of the sequence.
Since we have two roots, we need two initial conditions to
determine the values of A and B. Let's say a0=c1 and a1=c2.
Substituting n=0 and n=1 into the general solution:
a0=A+B=c1 a1=A×11+B×21=A+2B=c2
Solving these equations simultaneously:
From the first equation, we have A=c1−B.
Substituting A=c1−B into the second equation:
c1−B+2B=c2 c1+B=c2
B=c2−c1
Substituting B=c2−c1 back into the first equation:
A=c1−(c2−c1) 2A=2c1−c2
Therefore, the particular solution is:
an=(2c1−c2)+(c2−c1)×2n
Answer .2
Attempt (a)
Given:
X={1,2,3}
Y={p,q}
Z={a,b}
Functions f:X→Y and g:Y→Z defined as:
f={(1,p),(2,p),(3,q)}
g={(p,q),(q,b)}
f(g(q))=f(b)=?
f(3)=q
g(f(2))=g(p)=q
g(f(3))=g(q)=b
Therefore,
g f={(1,q),(2,q),(3,b)}.
So, f g is undefined, and g f is {(1,q),(2,q),(3,b)}.
Attempt (c)
Attempt (d)
an=(A+Bn)2n
where A and B are constants determined by initial conditions.
an=(A+Bn)2n+2n-1
SECTION C
Question . 3. Attempt any one part of the following: 10x1=10
(a) Define the function and explain the difference between function
and relation with example
(b) For any set A and B, Prove that ( ∩ ) = ( ) ∩ ( ).
Answer .3
(a)
Definition of a Function: A function f from a set X to a set Y is a rule
that assigns to each element x in X exactly one element y in Y. We
denote this as f:X→Y, where X is the domain of the function and Y is
the codomain. Formally, for every x in X, there exists a unique y in Y
such that f(x)=y.
Difference between Function and Relation:
Function:
A function is a special type of relation where each input has exactly
one output.
In a function, each element in the domain maps to exactly one element
in the codomain.
Example: Let f:R→R be defined as f(x)=x2. For each real number x,
there exists a unique real number y such that 2y=x2. So, f is a function.
Relation:
A relation is a set of ordered pairs representing the relationship
between elements of two sets.
In a relation, an element in the domain may map to one or more
elements in the codomain.
Example: Let R be a relation from set A to set B such that
R={(1,2),(1,3),(2,3)}. Here, element 11 in set A maps to both elements
22 and 33 in set B. So, R is a relation.
In summary, while both functions and relations describe how elements
from one set relate to elements in another set, a function has the
additional property that each input has exactly one output, whereas a
relation may have multiple outputs for a single input.
(b)
To prove that P(A∩B)=P(A)∩P(B), where P denotes the power set (set
of all subsets) of a set, we need to show that each set is a subset of the
other.
Proof:
Let X P(A∩B), this means X is a subset of A∩B.
By definition of intersection, X A and X B. This implies that X P(A)
and X P(B).
Therefore, X P(A)∩P(B).
Conversely, let Y P(A)∩P(B), this means Y is a subset of both A and
B.
By definition of intersection, Y A and Y B. This implies that
Y A∩B.
Therefore, Y P(A∩B).
Since every element of P(A∩B) is in P(A)∩P(B) and vice versa, we
conclude that P(A∩B)=P(A)∩P(B).
This completes the proof.
D\ABC 00 01 11 10
0 1 1 0 0
1 1 1 1 1
For A=1:
Grouping 11 at (1,0), (1,1), (1,2), (1,3).
Answer .5
(a)
To show that s is a valid conclusion from the premises:
1. p→q
2. p→r
3. ¬(q r)
4. s p
We need to derive s using these premises.
From premise 1 and 4 (using Modus Ponens):
Since p→q and s p, we can infer s q.
From premise 2 and 4 (using Modus Ponens):
Since p→r and s p, we can infer s r.
Now, we know that s q and s r.
From premise 3 (using De Morgan's Law):
¬(q r) is equivalent to ¬q ¬r.
Combining ¬q ¬r with s q and s r (using Disjunctive Syllogism):
We get s, as s must be true if q and r are both false.
Therefore, s is a valid conclusion from the premises.
Attempt (b)
Given predicates:
K(x): x is a student.
M(x): x is clever.
N(x): x is not successful.
Expressing the following using quantifiers:
(i) There exists a student: xK(x)
(ii) Some students are clever: x(K(x) M(x))
(iii) Some students are not successful: x(K(x) N(x))
In each case, we use the existential quantifier to denote the
existence of at least one object that satisfies the given predicate.
(b)
Answer .7 (a)