DM QB 2022-23 It
DM QB 2022-23 It
of IT AY: 2022-23
T T F F T T T
T F F T F T F
F T T F T F F
F F T T T T T
3 Construct the truth table ( P Q) P Q [Nov/Dec -2019]
Answer:
P Q PQ ( P Q) ( P Q) P Q
T T T T T
T F T F T
F T T F T
F F F F T
When do you say that two compound propositions are equivalent?
4
[Nov/Dec -2021]
Answer:
Two statements A and B are equivalent if and only if A B is a tautology. It is
denoted by the symbol A B which is read as “A is equivalence to B”
5 Prove that p q p q p q
Answer:
p q p q q p p q q p
p q p p q q p q
p q p q
6 Show that p q r p q r without using truth tables.
Answer:
p q r p q r p q r p q r p q r
Show that ( p r ) (q r ) and ( p q) r are logically equivalent.
7
[Nov/Dec- 2014]
Answer:
We have to show that, ( p r ) (q r ) ( p q) r
( p r ) (q r ) (p r ) q r (p q) r ( p q) r ( p q) r
What are the contrapositive, the converse and the inverse of the conditional
8
statement, “ If there is a rain ,then I buy an umbrella” [Nov/Dec -2016]
Answer:
Contrapositive: q → p
That is “If I don’t buy an umbrella, then there is no rain”
Converse: q → p
That is “If I buy an umbrella, then there is rain”
Inverse: p → q
That is “ If there is no rain ,then I will not buy an umbrella”
Obtain converse, contra positive and inversion of “Team India wins
9
whenever Dhoni is Captain”
Answer:
Let P: Dhoni is captain & Q: Team India wins
The given statement can be rewritten as “If Dhoni is captain, then Team India wins”
(i.e) p q
Contrapositive: q → p
That is “If Team India does not win, then Dhoni is not captain”
Converse: q → p
That is “If Team India wins, then Dhoni is captain”
Inverse: p q
That is “ If Dhoni is not captain, then Team India does not win”
10 Find the Contra positive of the inverse of p q
Answer:
Given: p q as the conditional statement
Inverse of p q is p q
The contra positive of p q is q p which is q p
What is the duality law of logical expression? Give the dual of
11 ( P F ) (Q T )
Answer:
In an expression, if we replace ,, T, F respectively by ,, F, T the resulting new
formula is the dual of the given expression.
Dual of the given formula: ( P T ) (Q F )
12 Define PDNF
Answer:
For a given statement formula, an equivalent formula consisting of disjunction of
minterms only is known as its Principal Disjunctive Normal Form (PDNF).
(i.e.) Minterms Minterms Minterms ... Minterms
13 Define PCNF
Answer:
For a given statement formula, an equivalent formula consisting of conjunction of
maxterms only is known as its Principal Conjunctive Normal Form (PCNF).
(i.e.) Maxterms Maxterms Maxterms ... Maxterms
14 Define Universal quantification and Existential quantification.
Answer:
The Universal quantification of a predicate formula P(x) is the proposition, denoted
by xP(x) that is true if P (a) is true for all subject a.
The Existential quantification of a predicate formula P(x) is the proposition, denoted
by xP(x) that is true if P(a) is true for some subject a.
Rewrite the following using quantifiers “Every student in the class studied
15
calculus”.
Answer:
Let 𝑃(𝑥): 𝑥 is a student and 𝑄(𝑥): 𝑥 studied calculus
Symbolic form xP( x) Q( x)
16 Write the statement in symbolic form “Some real numbers are rational”.
Answer:
Let 𝑅(𝑥): 𝑥 is a real number and 𝑄(𝑥): 𝑥 is rational
Symbolic form: x R x Q x .
Given P = {2,3,4,5,6} state the truth value of the statement ( x P) ( x +3=10)
17
[April/May- 2015]
Answer:
P = {2,3,4,5,6}, None of the values taken from the set P satisfies the Equation ( x
+3=10)
Truth value of the quantified statement is false.
Let E= {-1, 0, 1, 2} denote the universe of discourse. If P( x, y ) : x y 1, find
18
the truth value of ( x )( y ) p( x, y ). [May/June-2014]
Answer:
(x)(y) p( x, y) denotes the proposition “For every real number x there is a real
number y such that P( x, y) .” The statement (x)(y) p( x, y) is true for this universe
since -1+2=1,0+1=1
Using indirect method, prove the statement “If n is an integer and (3n + 2))
19
is odd, then n is odd”. [Nov/Dec -2020]
Answer:
Assume the conclusion of this implication is false.
That is, n is even (n = 2l, for some l) which implies 3n + 2 = 3(2l) + 2 = 2 (3l + 1),
even
Negation of the conclusion of the implication implies that the hypothesis is false.
Hence the implication is true.
UNIT II COMBINATORICS
PART A
1. Using the principle of mathematical induction, show that
1 + 3 + 5 + … + (2n-1) =n2 [Nov/Dec -2020]
Answer:
Let P(n) :1+3+5+…+(2n-1) = n2
Base step: P (1): 1=12= 1
P(1) is true.
Inductive step: Assume that P(k) is true, i.e.1+3+5+…+(2k-1) = k2
Consider P(k+1)
Now 1+3+5+…+(2k-1) + (2k+1) = k2+(2k+1) = k2+2k+1=(k+1)2
P (k+1) is true i.e. P(k) P(k+1)
By induction, 1+3+5+…+(2n-1) = n2
2. Prove that if n and k are positive integers with n = 2k, then nk! is an integer.
2
Answer:
Given n and k are positive integers and n = 2k.
n! 2k !
Let P k k
2k 2
2 !
Basestep : P 1 1 1,is an integer
2
Inductivestep : Assume that P t is true. That is P t
2t ! is an integer.
2t
We have to prove that P t 1 is true.
P t 1
2 t 1 ! 2t 2 !
2t 1 2t 1
2t 2 2t 1 2t !
2t . 2
2t !
t 1 2t 1 ,for any positive value of t, it is also an integer.
2t
n!
P t 1 is an integer. Hence is an integer.
2k
3. State pigeon hole principle. [Nov/Dec - 2021]
Answer:
If (n + 1) pigeons occupy n holes then at least one hole has more than 1 pigeon.
4. Show that in any group of 8 people at least two have birthdays which fall on
same day of the week in any given year. [Nov/Dec 2018]
Answer:
Let n be the number of people. n = 8
St. Joseph’s Institute of Technology 5
Sub. Name & Code: Discrete Mathematics, MA3354 Dept. of IT AY: 2022-23
6. Find the number of bit strings of length 10 that either begin with 1 or end
with 0. [Nov/Dec 2019]
Answer:
By product rule, the number of bit string = 210 = 1024 ways
7. State the inclusion and exclusion principle. [Nov/Dec - 2021]
Answer:
Let X and Y be two finite subsets of a universal set U.
If X and Y are disjoint, then X Y X Y
If X and Y are not disjoint, then X Y X Y X Y
8. There are 5 questions in a question paper in how many ways can a boy solve
one or more questions?
Answer:
The boy can dispose of each question in two ways. He may either solve it or leave it.
Thus, the number of ways of disposing all the questions= 25
But this includes the case in which he has left all the questions unsolved.
The total no of ways of solving the paper = 25 1 = 31.
9. What is well ordering principle? [May/June 2014]
Answer:
Every non empty set of non-negative integers has the least element.
10. In how many different ways can five men and five women sit around a table?
[Nov/Dec 2019]
Answer:
In a circular arrangement, total permutation is (n – 1)!
Hence the number of ways can five men and five women sit around a table is
(5 – 1)! = 4! = 24
11. Find the recurrence relation whose solution is S n = a n , n ≥ 1 .
[Nov/Dec 2016]
St. Joseph’s Institute of Technology 6
Sub. Name & Code: Discrete Mathematics, MA3354 Dept. of IT AY: 2022-23
Answer:
an
Given S n a n S n 1 a n1
a
S n aS n 1 is the required recurrence relation.
12. Find the associated homogeneous solution for an 3an1 2n .
Answer:
Its associated homogeneous equation is an 3an1 0
Its characteristic equation is r – 3 = 0 r = 3.
Now, the solution of associated homogeneous equation is an A .3
n
n 0
15. Find the generating function for the sequence ‘s’ with terms
1, 2, 3, 4, …
Answer:
G( x) G (s, x) (n 1) x n = 1 2 x 3x2 .......... = (1 x)2
1
.
n 0 (1 x)2
16. How many permutations of (a, b, c, d, e, f, g) end with ‘a’?
[Nov/Dec 2014]
Answer:
The number of permutations 6! 1! 720
17. How many different words are there in the word ENGINEERING?
[May/June 2016]
Answer:
11 ! 39916800
Number of arrangements = = 69300
3 !3 !2 !2 ! 6 6 4 4
18. State the principle of strong induction. [May/June 2014]
Answer:
8. Prove that in any group of six people there must be at least three mutual
friends or three mutual enemies. [Nov/Dec 2015]
9. Using generating function method solve the recurrence relation,
an 2 2an1 an 2n where n 0, a0 2 and a1 1 . [Apr/May 2019]
Solve an 8an1 10 with a0 1 and a1 9 using generating function.
n 1
10.
[Nov/Dec 2019]
Answer:
A graph in which any two distinct vertices are adjacent is called a complete
graph and is denoted by Kn.
4. How many edges are there in a graph with 10 vertices each of
degree 7 ?
Answer:
n
deg(v ) 2e
1
i
10 7 2e
2e 70
e 35
St. Joseph’s Institute of Technology 9
Sub. Name & Code: Discrete Mathematics, MA3354 Dept. of IT AY: 2022-23
v1 v2
v6 v3
v5 v4
6. What is the degrees of vertices for the given graph G.
v1 v2
v3
v4 v5
Answer:
deg v1 2
deg v2 1
deg v3 6
deg v4 2
deg v5 3
7. Define Bipartite Graph and Complete bipartite graph with an
example.
Answer:
A graph G is called a bipartite graph if V can be partitioned into two
disjoint subsets V1 and V2 such that each edge of G has one end in V1 and
another end in V2.
Example: The bipartite graph of K3,4 is
V1
V2
V2
Answer:
A graph for which each pair of vertices is joined by a trail is called
connected graph.
a b
c d
Answer:
A digraph G is said to be strongly connected if for every pair of
vertices, both vertices of the pair are reachable from one another.
10. Does there exist a simple graph with the degree sequence 3,3,3,3,2 ?
Answer:
The degree sequence is 3,3,3,3,2
deg vi 3 3 3 3 2
14 even
The number of odd degree vertices is even.
Hence there is a graph with 5 vertices and with the given degree sequence
Answer:
e3
e2 e4
e1
0 0 1 1 1 1 0 0
0 0 1 1 0 0 1 1
Adjacency matrix = Incident matrix =
1 1 0 0 1 0 0 1
1 1 0 0 0 1 1 0
12. How many vertices does a regular graph of degree four with 10 edges
have ?
Answer:
Given r = 4, q = 10
To find p:
We know that
2q pr
2q 2(10) 20
p 5
r 4 4
p5
13. Define Isomorphism of two graphs. [May/June 2014]
Answer:
Two graphs G1 = (V1, E1) and G2 = (V2, E2) are said to be isomorphic
to each other, if there exists a one-to-one correspondence between the
vertex set.
14. Define self-complementary graph [May/June 2016]
Answer:
A simple graph 𝐺 is called self-complementary if 𝐺 and 𝐺 𝐶 are
isomorphic.
𝐺 𝐺𝐶
15. Define spanning sub graph and Induced subgraph.
Answer:
Let a graph H = (V1, E1) is a sub graph of G = (V, E). H is a spanning sub
graph of G if H is a subgraph of G with V1 = V and E1 E.
A graph H = (V1, E1) is a subgraph of G = (V, E). H is an induced subgraph
of G if H is the maximal subgraph of G with vertex set V1.
Answer:
A circuit in a graph that includes each edge exactly once is called an
Eulerian circuit.
17. State the condition for Hamiltonian cycle.
Answer:
(i) Starting and ending vertex are same.
(ii)Cycle should contain all vertex of graph but exactly once
c
a e
g f
c
a
20 Identify the Hamilton path and Hamilton cycle in the given graph ?
g
a h c
f
d
Solution:
Hamilton cycle of the given graph is a,b,c,d,e,h,g,f,a
Hence the graph is a Hamilton graph
Also it contains Hamilton path
Hamilton path is a,b,c,d,e,f,g,h
PART - B
1 State and prove Handshaking theorem. Also prove that maximum
n(n 1)
number of edges in a connected graph with n vertices is
2
[Apr/May 2021]
2 Prove that number of vertices of odd degree in a graph is always
even. [Jan/Feb 2022]
3 Prove that an undirected graph has an even number of vertices of
odd degree. [Jan/Feb 2022]
4 Prove that for a bipartite graph with n vertices has a maximum of
n2
edges. [Nov/Dec2018]
4
5 If a graph G has exactly two vertices of odd degree, then prove that
there is a path joining these two vertices.
[Nov/Dec 2016]
Prove that a simple graph with n vertices and k components can
6 (n k )(n k 1)
have at most edges. [Nov/Dec 2015] [Nov/Dec 2017]
2
7 Define :
(i) Adjacency matrix
(ii) Incidence matrix with an example [Jan/Feb 2022]
8 If G is a self-complementary graph, then prove that G has 𝒏 ≡ 𝟎 (or)
1(mod 4) vertices. [May/June 2016, Nov/Dec 2019]
9 Draw the complete graph 𝑲𝟓 with vertices A,B,C,D,E. Draw all the
complete subgraph of 𝑲𝟓 with 4 vertices. [Jan/Feb 2022]
10 Check whether the following graphs are isomorphic or not.
(May/June2021)
Answer:
Let (G, ) be a group.
Let ‘e1’ and ‘e2’ be the identity elements in G
Suppose e1 is the identity, then
e1 e2 = e2 e1 = e2
Suppose e2 is the identity, then
e1 e2 = e2 e1 = e1
Therefore e1= e2.
Hence identity element is unique.
8 Show that every element of a group G is self-inverse then G is
abelian (May/June 2021)
Answer:
Let (G, ) be a group.
For a, b G we have a b G
Given a a1 and b b1
(a b) (a b) 1
b 1 a 1
ba
a b b a
G is abelian
9. Prove that in any group, identity element is the only idempotent
element. (Nov/Dec 2018)
Answer:
Let a be an idempotent element of G, then a a a.........(1)
1
Now a G a G
pre multiply a 1 on both sides of (1)
a 1(a a) a 1 a (2)
a 1
a a a 1 a e
ea e
a e
10. Let Z be the group of integers with the binary operation defined
by a b a b 2 for all a, b Z . Find the identity element of the
group Z ,* (May/June 2016)
Answer:
a = a e = a+e 2
a = a+e 2
e2 = 0
e= 2
11. Show that every cyclic group is abelian. (May/June 2016)
Answer:
St. Joseph’s Institute of Technology 17
Sub. Name & Code: Discrete Mathematics, MA3354 Dept. of IT AY: 2022-23
15. Find all the left co-sets of H={1,-1} in the group (G,.) where
G={1,-1,i,-i}. (Apr/May 2022)
Answer:
G={1,-1,i,-i} which consists of the fourth roots of unity under multiplication.
H={1,-1} is a subgroup of G
St. Joseph’s Institute of Technology 18
Sub. Name & Code: Discrete Mathematics, MA3354 Dept. of IT AY: 2022-23
PART – A
1. Define partial ordering on S. (Nov/Dec 2016) (Nov/Dec 2018)
Answer:
A relation on a set S is called a partial ordering on S if it satisfies reflexive,
anti-symmetric, transitive properties. A set S together with a partial ordering
is called a partially ordered set or poset.
2. Let X = {1, 2, 3, 4, 5, 6} and R be a relation defined as x, y Riff x - y is
divisible by 3. Find the elements of the relation R. (May/June 2016)
Answer:
R 1,1 , 2, 2 , 3,3 , 4, 4 , 5,5 , 6,6 , 1, 4 , 4,1 , 2,5 , 5, 2 , 3,6 , 6,3
3. Which elements of the poset ({2, 4, 5, 10, 12, 20, 25}, / ) are maximal
and which are minimal?
Answer:
The relation R is R = {(2, 4) (2, 10) (2, 12) (2, 20) (4, 12) (4, 20) (5, 10) (5, 20) (5,
25) (10, 20)}.
Its Hasse diagram is
12 20 25
4 10
2 5
The maximal elements are 12, 20, and 25 and the minimal elements are 2
and 5.
4. Draw the Hasse diagram of D20 , / , where D20 denotes the set of
positive divisors of 20 and / is the relation “division”. (Nov/Dec 2019)
Answer:
Given D20 1,2,5,10,20 .The Hasse diagram is
20
10
2 5
6 9
2 3
Answer:
Absorption law is a ab a .
Consider a ab a(1 b) a(1) a . Hence proved.
PART – B
1 Consider the set D50 1,2,5,10,25,50 and the relation divides ( / ) be a
partial ordering relation on D50
(a) Draw the Hasse diagram of D50 with relation divides.
(b) Determine all upper bounds of 5 and 10
(c) Determine all lower bounds of 5 and 10
(d) Determine LUB of 5 and 10
(e) Determine GLB of 5 and 10 (Nov/Dec 2018)
2 Let a, b L be a lattice. For any a, b L , a b a b a a b b .
[Nov/Dec -2021]
3 Show that every chain is a distributive lattice. (Nov/Dec 2019,
2018,2017)
(May/June 2014)
5 In a lattice if a b c, show that (Nov/Dec 2013)
(i ) a b b * c
( ii )(a* b) (b * c ) (a b)*(a c ) b