Discrete Mathematics: ISBN: 9789386629043
Discrete Mathematics: ISBN: 9789386629043
DISCRETE MATHEMATICS
ISBN : 9789386629043
2
DISCRETE MATHEMATICS
1
Quick Revision Material
(a )
x1 y1 x1 y1 m n
x2 y2 x2 y2 II. = a mn
x3 x3 y3
Definition 5.
A B
Many-one Onto Let (G, .) be a group. An element a Î G is called idempotent if a2 = a.
One - One Onto
Definition 6.
Bijective function : A function f : A ® B is a bijective A group (G, .) is called finite group if G is a finite set The number of
function if f is one-one as well as onto, i.e. f is injective and different elements in G is callled order of the fininte group (G, .). It
surjective both. is denoted by O(G).
Definition 7.
GROUP
A group (G, .) is called infinite group if G is an infinite set. The
A semigroup with identity and in which every element is invertible order of an infinite group is defined to be ¥.
is called a group. Definition 8.
Definition 1 If S is a finite set containing n elements, then group of all
Let G be a non-empty set and * be a binary operation on G. Then bijections on S is called a permutation group or symmetric group.
algebraic system (G, *) is called a group if It is denoted by Pn or Sn.
I. a * (b * c) = (a * b) * c, " a, b, c Î G Note : 0(Sn) = n!
II. $e Î G Þ a * e = e * a = a, " a Î G
III. a Î G LATTICE
Þ $b Î G Þ a * b = b * a = e It is a partially ordered set (P, £) in which any two elements Î P
• The element e in condition II of the definition of a group is has single GLB and single LUB.
called identity element of the group.
Join = LUB
• The element b corresponding to a in condition III of the
definition of a group is called inverse of a in the group.
(a) (b)
Definition 3 :
A group (G, *) is said to be a non-abelian group, if (G, *) is not
abelian. Meet = GLB
PROPERTIES OF A GROUP. Fig. (a)
Theorem 1 : In the Fig. (a) GLB and LUB are shown, which are also called
In a group, identity element is unique. meet and join respectively.
Theorem 2 :
In a group, inverse of every element is unique. 4 d
Theorem 3 :
c
( ) 3 a b
-1 2
If (G, .) be a group and a Î G , then a -1 = a.
Theorem 4 :
If (G, .) be a group and a, b Î G, then (ab)–1 = b–1a–1 1 e
Theorem 5 : Fig. (b) Lattice Fig. (c) Non-Lattice
If (G, .) be a group and a1, a2, .... an Î G, then
6
The poset shown in Fig. (c) is not a lattice since a and b have two Closed Interval
LUBs namely c and d.
b
From first lattice, following relations are obtained :
1 £ 2, 1 £ 3, 2 £ 4 and 3 £ 4.
Here 2 and 3 are not compared. a
If (P, £ ) is a lattice, then (P, ³ ) is also a lattice, we define as
³ follows
Fig. Interval [a, b]
(x £ y) Þ y ³ x. Let a £ b.
In other words, GLB and LUB are interchanged if we interchange Then closed interval of a and b is defined as
relations £ and ³. [a, b] = [x/ a £ x and x £ b].
Clearly any closed interval is a chain.
In terms of lattices, operations of meet and join on (L, £) become Duality
the operations of join and meet on (L, £).
The dual of a Boolean expression is obtained by interchanging
DUAL LATTICE Boolean sums and Boolean products and interchanging 0’s and 1’s.
e.g., The dual of x Ù (y Ú 0) is x Ú (y Ù 1)
For the lattice (P, £ ) the dual is (P, ³).
Boolean Algebra (Definition)
The duals are shown in the figure below. The diagram of (P, ³)
can be obtained from that of (P, £) by simply turning it upside
down.
1. x Ù1 = x }
x Ú 0 = x Identity laws
5 1
2.
x Ú x' = 1
}
x Ù x' = 0 Domination laws
4 3. (x Ú y) Ù z) = x Ù (y Ù z) }
(x Ú y) Ú z = x Ú (y Ú z) Associative laws
}
2 3
x Ú y = y Ú x Commutative laws
2 3 4. xÙy =yÙx
1 5
4
5.
x Ú (y Ù z) = (x Ú y) Ù (x Ú z)
}
x Ù (y Ú z) = (x Ù y) Ú (x Ù z) Distributive laws
Combinatorics
n
B(z) = å br z r = å (a r a r )z r
C1 + n C 2 + n C 3 + .............. + n C n = 2 n - 1 r =0 r =0
RESULT-3 : The number of selections of some or all out of (p + ¥
q + r + ..... ) things out of which p are alike of one kind, q - alike = å a r (az) r = A(az)
of second kind and so on : r =0
Since, right hand side of Eq. (i) is set to zero, we substitute Aar (ii) If the roots are multiple roots. Let a1 be a root of
for ar. Eq. (i) become multiplying m, then
C0 Aa r + C1Aa r -1 + C2Aa r - 2 + .. + Ck Aa r -k = 0 (A1r m-1 + A 2r m- 2 + ... + A m-1r + A m )a1r
Aa r -k [C0a k + C1a k -1 + C2a k -2 + ... + Ck ] = 0 is a homogeneous solution.
Note : Although, there is no question asked in past GATE exams
C0a k + C1a k -1 + C2a k -2 + ... + Ck = 0 ...(ii) from this chapter still, reading of this chapter would be
helpful in future GATE exams.
Graph Theory
PATHS, CONNECTIVITY Then w(G) £ w(G - e) £ w(G) + 1
Path and its length in a graph (multigraph) G : A path a in G where w(a) is number of connected components of G.
with origin v0 and end vn is an alternating sequence of vertices Theorem 2 :
and edges of the form.
An edge e of a grpah G is a bridge if e is not a part of any cycle
v0 , e1 , v1 , e 2 , v2 ,..., e n -1 , vn -1 , e n , v n in G.
where each edge ei is incident on vertices vi–1 and vi. The number Theorem 3 :
of edges, n is called length of a. When there is no ambiguity, we Let G be a graph with n vertices, and q edges and, let w(G)
denote a by its sequence of edges, a = (e1, e2, ... en), or by its denote number of connected components of G. Then G has
sequence of vertices a = (vo, v1, ..., vn). at least n-w(G) edges, i.e. q ³ n-w(G)
Corollary : A graph with n vertices less than (n – 1) edges can
BRIDGE OR CUT EDGE not be connected.
On removing an edge from a graph, the number of connected Theorem 4 :
components of the graph either remains unchanged or it increases Let G be a graph with n vertices, then following three statements
by exactly 1. So, an edge e of a graph G is called bridge or cut edge, are equivalent.
if the subgraph G=e has more connected components than G has.
I. G is tree
Theorem 1 :
II. G is an acyclic graph with (n – 1) edges.
Let e be an edge of the graph G and, as usual let G-e be the
III. G is a connected graph with (n – 1) edges.
subgraph obtained by deleting e.
Spanning Trees and Connect or Problems
Let G be a graph. A subgraph H of G is called a spanning subgraph T is a minimal spanning tree of G.
of G if vertex set of H is same as the vertex set of G. Similarly, a Following steps are required.
spanning tree of a graph G is a spanning subgraph of G, that is a
tree. Step 1 : Choose e1, an edge of G, such that weight of e1, w(e1) is
as small as possible and e1 is not a loop.
Theorem.
Step 2 : If edges e1, e2, .... ei have been chosen, then choose an
A graph G is connected if it has a spanning tree. edge ei+1 not already chosen, such that
(i) induced subgraph G [(e1,.....ei+1)] is acyclic, and
(ii) w(ei+1) is as small as possible.
Step 3 : If G has n vertices, stop after n-1 edges have been
K4 chosen. Otherwise repeat step 2.
Greedy Algorithms :
Cayley's theorem
Greedy algorithms are essentially algorithms that proceed by
The complete graph Kn has nn–2 different spanning trees. selecting the choice that looks best at the moment.
Kruskal’s Algorithm Prim’s Algorithm :
In this algorithm, choose an edge of G which has smallest weight Another algorithm used for finding a minimal spanning tree is
among the edges of G which are not loops. This algorithm gives Prim’s algorithm. It chooses a vertex first and chooses and edge
an acyclic subgraph T of G and theorem given below proves that with smallest weight incident on that vertex.
10
The algorithm involves following steps. Clearly, a graph may have many different maximal matchings and
Step 1 : Choose any vertex v1 of G. of different sizes. Among these, the maximal matchings with the
Step 2 : Choose an edge e1=v1v2 of G such that v2 ¹ v1 and e1 largest number of edges are called largest maximal matchings.
has smallest weight among the edges of G incident with In Fig. (b), a largest maximal matching is shown in heavy lines.
v1 . The number of edges in a largest maximal matching called
Step 3 : If edges e1, e2, ......., ei have been chosen involving end matching number of the graph.
points v1, v2, .....vi + 1. Choose an edge vi+1 = vjvk with
COVERINGS
vj Î {vi ..........vi + 1} and vk Ï [v1, ....... vi + 1] such that
ei + 1 has smallest weight among the edges of G with In a graph G a set g of edges is said to cover G if every vertex in
precisely one end in [v1, ......... vi + 1]. G is incident on at least one edge in g. A set of edges that covers
Step 4 : Stop after n – 1 edges have been chosen. Otherwise go a graph G is called edge covering, covering subgraph, or simply
to step 3. a covering of G.
e.g. a graph G is trivially its own covering. Spanning tree in a
CUT VERTICES AND CONNECTIVITY connected graph (or a spanning forest in an unconnected graph)
Cut vertex is analogue of a bridge. A vertex v of a graph is called is another covering. Hamiltonian circuit (if it exists) in a graph is
a cut vertex of G if also a covering.
w(G – v) > w(G),
Where w(G) are number of components in graph G, i.e. a cut
vertex breaks a graph into a subgraph having more connected
components, then G has
G–V
(a) (b)
Fig. Graph and two of its minimal coverings
w (G) = 1 w (G – v) = 3
Proportional and First Order Logic 8. A function f : ¥ + ® ¥ +, defined on the set of positive
integers ¥ +, satisfies the following properties:
1. The statement (Ø p) Þ (Ø q) is logically equivalent to
which of the statements below? [2017, Set - 1, 1 Mark] [2016, Set 1, 2 Marks]
I. p Þ q II. q Þ p f (n) = f (n/2) if n is even
f (n) = f (n+5) if n is odd
III. (Ø q) Ú p IV. (Ø p) Ú q
(a) I only (b) I and IV only Let R = {i| $ j : f ( j) = i} be the set of distinct values that
f takes.The maximum possible size of R is_______.
(c) II only (d) II and III only
9. Consider the following expressions:[2016, Set 2, 1 Mark]
2. Consider the first-order logic sentence F: " x ( $ y R(x,y)). (i) false (ii) Q
Assuming non-empty logical domains. which of the sentences
(iii) true (iv) PÚQ
below are implied by F? [2017, Set - 1, 1 Mark]
(v) ØQÚP
I. $ y ( $ y R(x, y)) II. $ y ( " x R(x, y)) The number of expressions given above that are logically
III. " y ( $ x R(x, y)) IV. Ø $ x ( " y Ø R(x, y)) implied by Þ P ^ (P Þ Q) is ________.
(a) IV only (b) I and IV only 10. A binary relation R on ¥ × ¥ is defined as follows: (a,
(c) II only (d) II and III only b)R(c, d). If a £ c or b £ d, consider the following
3. Let p, q, r denote the statements “It is raining”. “It is propositions: [2016, Set 2, 2 Marks]
cold”, and “It is pleasant”. respectively. Then the P: R is reflexive
statement “It is not raining and it is pleasant, and It is Q: R is transitive
not pleasant only if it is raining and it is cold” is Which one of the following statements is TRUE?
represented by [2017, Set - 2, 1 Mark] (a) Both P and Q are true.
(a) (Ø p Ù r) Ù (Ø r ® (p Ù q)) (b) P is true and Q is false.
(b) (Ø p Ù r) Ù (p Ù q) ® Ø r) (c) P is false and Q is true.
(c) (Ø p Ù r) Ú (p Ù q) ® Ø r) (d) Both P and Q are false.
(d) (Ø p Ù r) Ú (r ® (p Ù q)) 11. Which one of the following well-formed formulae in
predicate calculus is NOT valid? [2016, Set 2, 2 Marks]
4. If the ordinary generating function of a sequence {an }µ
n =0 (a) ( " x p(x) Þ " xq(x)) Þ ( $ x Ø p(x) Ú " xq(x))
1+z (b) ( $ x p(x) Ú $ xq(x)) Þ $ x (p(x) Ú q(x))
is 3 , then (a3 – a0) is equal to ________.
(1–z) (c) $ x (p(x) Ù q(x)) Þ ( $ x p(x) Ù $ xq(x))
[2017, Set - 2, 2 Mark] (d) " x (p(x) Ú q(x)) Þ ( " x p(x) Ú " xq(x))
5. Let p, q, r, s represent the following propositions: 12. Consider a set U of 23 different compounds in a Chemistry
lab. There is a subset S of U of 9 compounds, each of
[2016, Set 1, 1 Mark]
which reacts with exactly 3 compounds of U. Consider the
p: x Î {8, 9, 10, 11,12} following statements: [2016, Set 2, 2 Marks]
q: x is a composite number I. Each compound in U \ S reacts with an odd number
r: x is a perfect square of compounds.
s: x is a prime number II. At least one compound in U \ S reacts with an odd
The integer x > 2 which satisfies Ø((p Þ q) ^ ( Ø r Ú Ø s)) is _____. number of compounds.
III. Each compound in U \ S reacts with an even number
6. Let an be the number of n-bit strings that do NOT contain of compounds.
two consecutive 1s. Which one of the following is the
Which one of the above statements is ALWAYS TRUE?
recurrence relation for an? [2016, Set 1, 1 Mark]
(a) Only I (b) Only II
(a) an = an–1+ 2an–2 (b) an = an–1+ an–2
(c) Only III (d) None
(c) an = 2an–1+ an–2 (d) an = 2an–1+ 2an–2
13. The value of the expression 1399 (mod 17), in the range
7. The coefficient of x12 in (x3 + x4 + x5 + x6 + ...)3 is _______ . 0 to 16, is ______ . [2016, Set 2, 2 Marks]
[2016, Set 1, 2 Mark]
12
What is the value of fg(h(2,5,7,3), 4,6,8)?
x g(h(x))
14. If g(x) =1 – x and h(x) = , then is 20. Consider the following two statements.[2015, Set 2, 1 Mark]
x -1 h(g(x))
S1: If a candidate is known to be corrupt, then he will not be
[2015, Set 1, 1 Mark] elected
S2: If a candidate is kind, he will be elected.
h(x) -1
(a) (b) Which one of the following statements follows from S1 and
g(x) x S2 as per sound inference rules of logic?
x (a) If a person is known to be corrupt, he is kind
g(x)
(c) (d) (b) If a person is not known to be corrupt, he is not kind
h(x) (1 - x) 2
(c) If a person is kind, he is not known to be corrupt
15. Suppose L = {p,q,r,s,t} is a lattice represented by the (d) If a person is not kind, he is not known to be corrupt
following Hasse diagram: 21. Let R be the relation on the set of positive integers such that
t aRb if and only if a and b distinct and have a common divisor
other than 1. Which one of the following statements about
R is true? [2015, Set 2, 1 Mark]
r s (a) R is symmetric and reflexive but not transitive
q
(b) R is reflexive but not symmetric and not transitive
(c) R is transitive but not reflexive and not symmetric
p (d) R is symmetric but not reflexive and not transitive
For any x, y Î L, not necessarily distinct, x Ú y and x Ù y are 22. Suppose U is the power set of the set S = {1, 2, 3, 4, 5, 6}. For
join and meet of x, y respectively. Let L3 = {(x,y,z): x,y,z Î L} any T Î U, let |T| denote the number of elements in T and T1
be the set of all ordered triplets of the elements of L. Let pr denote the complement of T. For any T, R Î U, let T\ R be the
be the probability that an element (x, y, z) Î L3 chosen set of all elements in T which are not in R. Which one of the
equiprobably satisfies x Ú (y Ù z) = (x Ú y) Ù (x Ú z). Then following is true?
[2015, Set 1, 2 Marks] (a) " X Î U (|X| = |X'|)
(a) pr = 0 (b) pr = 1 (b) $ X Î U $ Y Î U (|X| = 2, |Y| = 5 and X Ç Y = 0)
(c) " X Î U " Y Î U (|X| = 2, |Y| = 3 and X / Y = 0)
1 1
(c) 0 < pr £ (d) < pr < 1 (d) " X Î U " Y Î U (X/Y = Y'/X')
5 5
23. The CORRECT formula for the sentence, “not all rainy days
16. For a set A, the power set of A is denoted by 2A. If A = {5, {6},
are cold” is [2014, Set-3, 2 Marks]
{7}}, which of the following options are TRUE?
(a) " d (Rainy(d) Ù ~ Cold(d))
I. fÎ 2A II. f Î 2A
(b) " d (~Rainy(d) ® Cold(d))
III. {5, {6}} Î 2A IV. {5{6}} Í 2A
(c) $ d (~Rainy(d) ® Cold(d))
[2015, Set 1, 1 Mark]
(d) $ d (Rainy(d) Ù ~ Cold(d))
(a) I and III only (b) II and III only
24. Which one of the following propositional logic formulas is
(c) I, II and III only (d) I, II and IV only TRUE when exactly two of p, q, and r are TRUE?
17. Let a n represent the number of bit strings of length n [2014, Set-1, 2 Marks]
containing two consecutive 1s. What is the recurrence
(a) ((p « q) Ù r) Ú (p Ù q Ù ~ r)
relation for an? [2015, Set 1, 2 Marks]
(a) an–2 + an–1 +2n–2 (b) an–2 +2a n–1 +2n–2 (b) (~(p « q) Ù r) Ú (p Ù q Ù ~ r)
(c) 2a n–2 +a n–1 +2n–2 (d) 2a n–2+2an–1 +2n–2 (c) ((p « q) Ù r) Ú (p Ù q Ù ~ r)
18. The cardinality of the power set of {0, 1, 2,…, 10} (d) (~(p « q) Ù r) Ù (p Ù q Ù ~ r)
is _______. 25. Consider the statement
19. If p, q, r, s are distinct integers such that:[2015, Set 2, 1 “Not all that glitters is gold”
Mark] Predicate glitters (x) is true if x glitters and predicate gold
f(p, q, r, s) = max(p, q, r, s) (x) is true if x is gold. Which one of the following logical
g(p, q, r, s) = min(p, q, r, s) formulae represents the above statement?
h(p, q, r, s) = remainder of (p×q)/(r×s) if [2014, Set-1, 1 Mark]
(p × q)> (r × s) or remainder of (r×s)/(p×q) if (r×s) > (p×q) (a) "x : glitters( x ) Þ Øgold ( x )
Also a function fgh(p, q, r, s) = f(p, q, r, s) × g(p, q, r, s) × h(p,
q, r, s) (b) "x : gold ( x ) Þ glitters( x )
Also the same operations are valid with two variable (c) $x : gold ( x ) Ù Øglitters( x )
functions of the form f(p, q).
(d) $x : glitters( x ) Ù Øgold ( x )
13
26. Consider the following statements: 32. The following is the incomplete operation table of a 4-
P: Good mobile phones are not cheap element group
Q: Cheap mobile phones are not good
* e a b c
L: P implies Q
M: Q implies P e e a b c
N: P is equivalent to Q a a b c e
Which one of the following about L, M, and N is b
CORRECT? [2014, Set-3, 1 Mark] c
(a) Only L is TRUE.
The last row of the table is [2004, 2 Marks]
(b) Only M is TRUE.
(a) c a e b (b) c b a e
(c) Only N is TRUE.
(c) c b e a (d) c e a b
(d) L, M and N are TRUE.
33. How many graphs on n labelled vertices exist which have
27. Which one of the following Boolean expressions is NOT a at least (n2 – 3n)/2 edges? [2004, 2 Marks]
tautology? [2014, Set-2, 2 Marks]
(a) ((a ® b) Ù (b ® c) )® (a ® c) (n 2 - 3n) / 2
(n 2 - n) / 2
(b) (a « c) ® ( ~ b ® (a Ù c)) (a) C
(n 2 -3n) / 2
(b) å (n 2 - n)C k
k= 0
(c) (a Ù b Ù c) ® ( c Ú a)
(d) a ® (b ® a) n
(n 2 - n)
Proportional and First Order Logic
(c) (n 2 - n) / 2
Cn (d) å 2
Ck
k= 0
34. Which of the following is a valid first order formula?
¥
(Here a and b are first order formulae with x as their only
28. Let G(x) = 1/ (1 – x)2 = å g(i)x , where |x| < 1. What is
i
free variable) [2003, 2 Marks]
i=0
g(i)? [2005, 2 Marks] (a) ("x) [a] Þ ("x) [b] Þ ("x) [a Þ b]
(b) ("x) [a] Þ [$x] [a Ù b]
(a) i (b) i + 1
(c) ("x) [a Ú b] Þ [$x] [a] ("x) [a]
(c) 2i (d) 2i
(d) ("x) [a Þ b] Þ (("x) [a] Þ ("x) [b])
29. Identify the correct translation into logical notation of the
following assertion. Some boys in the class are taller than 35. Consider the following logic program P :
all the girls. A(x) ¬ B(x, y), C(y)
¬ B(x, x)
Note Taller (x, y) is true, if x is taller than y.
Which of the following first order sentences is equivalent
[2004, 1 Mark] to P? [2003, 2 Marks]
(a) ($x) (boy (x) ® ("y) (girl (y) Ù taller (x, y))) (a) ("x) [$y] [B(x, y) Ù C(y)] Þ A(x)] Ù Ø ($x) [B(xx)]
(b) ($x) (boy (x) Ù ("y) (girl (y) Ù taller (x, y))) (b) ("x) ["y] [B(x, y) Ù C(y)] Þ A(x)] Ù Ø ($x) [B(xx)]
(c) ($x) (boy (x) ® ("y) (girl (y) ® taller (x, y))) (c) ("x) [$y] [B(x, y) Ù C(y)] Þ A(x)] Ú Ø ($x) [B(xx)]
(d) ($x) (boy (x) Ù ("y) (girl (y) ® taller (x, y))) (d) ("x) ["y] [B(x, y) Ù C(y)] Þ A(x) Ù Ø ($x) [B(xx)]
30. The following propositional statement is 36. Consider the following formula a and its two
interpretations l1 and l2
(P ® (Q Ú R)) ® ((P Ù Q) ® R) [2004, 2 Marks]
a : ("x) [Px Û ("y)[Qxy Û Ø Qxy]] Û ("x) [ØPx]
(a) satisfiable but not vaild
l1 : domain : the set of natural numbers
(b) valid Px º x is a prime number
(c) a contradiction Qxy º y divides x
(d) None of these l2 : same as l1 except that Px = x is a composite number
31. The inclusion of which of the following sets into Which of the following statements is true?
S = {{1, 2}, {1, 2, 3}, {1, 3, 5}, {1, 2, 4}, {1, 2, 3, 4, 5}} is [2003, 2 Mark]
necessary and sufficient to make S a complete lattice (a) l1 satisfies a, l2 does not
under the partial order defined by set containment? (b) l2 satisfies a, l1 does not
[2004, 2 Marks] (c) Neither l1 nor l2 satisfies a
(a) {1} (d) Both l1 and l2 satisfy a
(b) {1}, {2, 3} 37. The following resolution rule is used in logic programming
(c) {1}, {1, 3} Derive clause (P Ú Q) from clauses (P Ú R), (Q Ú Ø R)
Which of the following statements related to this rule is
(d) {1}, {1, 3}, {1, 2, 3, 4}, {1, 2, 3, 5}
false? [2003, 2 Marks]
14
(a) (P Ú R) Ù (Q Ú Ø R) Þ (P Ú Q) is logically valid 42. Consider the set of all functions f : {0, 1, ..., 2014} ® {0, 1, ...,
(b) (P Ú Q) Þ (P Ú Q) Ù (Q Ú Ø R) is logically valid 2014} such that f (f (i)) = i, for all 0 £ i £ 2014. Consider the
(c) (P Ú Q) is satisfiable if and only if (P Ú R) Ù (Q ÚØ R) following statements:
(d) (P Ú R) Þ False if and only if both P and Q are P. For each such function it must be the case that for
unsatisfiable every i, f (i) = i.
38. Let å = {a, b, c, d, e} be an alphabet. We define an Q. For each such function it must be the case that for
encoding scheme as follows g(a) = 3, g(b) = 5, g(c) = 7, some i, f (i) = i.
g(d)= 9, g(e) = 11. Let Pi denotes the i th prime number R. Each such function must be onto.
(pi = 2)
Which one of the following is CORRECT?
For a non-empty string s = a1....an, where each a1Îå,
[2014, Set-3, 2 Marks]
define f(s) = Õin= 1 pig(ai) . (a) P, Q and R are true
For a non-empty sequence <s1 ...sn> of strings from å*. (b) Only Q and R are true
(c) Only P and Q are true
define h(<s1....sn >) = Õin=1 pif (si .)
(d) Only R is true
Which of the following numbers is the encoding h of a 43. Let S denote the set of all functions f: {0, 1}4 ® {0,1}.
non-empty sequence of strings? [2003, 2 Marks] Denote by N the number of functions from S to the set
7 7 7 8 8 8
(a) 2 3 5 (b) 2 3 5 {0,1}. The value of log2 log2 N is ________ .
(c) 29 39 59 (d) 210 510 710 [2014, Set-1, 2 Marks]
39. Consider the set å* of all strings over the alphabet 44. A pennant is a sequence of numbers, each number being 1
å = {0 , 1} å* with the concatenation operator for strings or 2. An n-pennant is a sequence of numbers with sum
[2003, 1 Mark] equal to n. For example, (1, 1, 2) is a 4-pennant. The set of all
(a) does not form a group possible 1-pennants is {(1)}, the set of all possible
(b) forms a non-commutative group 2-pennants is {(2), (1,1)}and the set of all 3-pennants is
(c) does not have a right identify element {(2,1), (1,1,1), (1,2)}. Note that the pennant (1,2) is not the
(d) forms a group, if the empty string is removed fromå* same as the pennant (2,1). The number of 10-pennants is
______________. [2014, Set-1, 2 Marks]
Sets & Relations,Functions, Partial orders, 45. If V1 and V2 are 4-dimensional subspaces of a 6-dimensional
Latices & Groups vector space V, then the smallest possible dimension of
40. Consider the following relation on subsets of the set S of V1 Ç V2 is ______. [2014, Set-3, 1 Mark]
integers between 1 and 2014. For two distinct subsets U
Graphs
and V of S we say U < V if the minimum element in the
symmetric difference of the two sets is in U. 46. The maximum number of edges in a bipartite graph on 12
Consider the following two statements: vertices is _________________. [2014, Set-2, 1 Mark]
S1: There is a subset of S that is larger than every other 47. The number of distinct minimum spanning trees for the
subset. weighted graph below is _____ [2014, Set-2, 2 Marks]
S2: There is a subset of S that is smaller than every other 2
subset.
Which one of the following is CORRECT? 2 1 2 1
+ a b c × a b c
a b a c a a b c
b a b c b b c a
c a c b c c c b
20
1. " x ($ y R ( x, y )) ¾¾
® $y ($x R( x, y)) is correct.
(1 - z ) -3 = (1 + z )*(1 + 3C1 z + 4C2 z 2 + 5C3 z 3 + ......¥)
Since $y ($x R( x, y)) º $x ($y R( x, y)) a0 is first term in the expansion of above series and a3
is the fourth term or coefficient of z3.
º "x ($ y R( x, y))
Then, we find the value of a0 and a3, so
a0 (coefficient of z0) = 1
2. " x ($y R ( x, y )) ¾¾
®$y (" x R( x, y)) is incorrect,
a3 (coefficient of z3) = 5C3 + 4C2
because $y (it is stronger when it is outside).
= 10 + 6 = 16
3. " x ($y R ( x, y )) ¾¾
®" y $x R ( x, y ) is incorrect, Then, a3 – a0 = 16 – 1 = 15.
Hence 15 is correct answer.
because R(x, y) may not be symmetric in x and y.
4. " x ($ y R( x, y )) ¾¾
®(Ø $ x " y Ø R( x, y)) is correct 5. (p Þ q) will result {8, 9, 10, 12}
because Ø r will result {8,10, 11, 12}
Ø s will result {8, 9, 10, 12}
Ø ($x " y Ø R( x, y)) º (Ø $x )(Ø" y )(Ø (Ø R( x, y))) ( Ø r Ú Ø s) will result {8, 9, 10, 11, 12}
(p Þ q) Ù ( Ø r Ú Ø s) will result {8, 9, 10, 12}
(Ø ($x )(" y )Ø (Ø R( x, y))) º " x ($ y R( x, y))
Ø ((p Þ q) Ù ( Ør Ú Ø s)) will result 11.
\Ø ($= 6. Case I ® First bit is ‘0’
x ) "x , Ø ("=
y ) $y , ØØ R( x, =
y) R( x, y)
So, it will be reduced to
0_ _ a_n _–1_ _ _
" x ($ y R( x, y)) ¾¾
®" x $ y R( x, y) Case II ® First bit is ‘1’
which is trivially correct. 0_ _an_–2_ _ _ 10 ® (It must be zero)
So correct answer is I and IV only.
Hence option (b) is correct. \ an = an –1 + an – 2
21
7. (x3 + x4 + x5 + x6 + ....)3
= x9 (1 + x + x2 + .......)3
(ii) ( $xp ( x ) Ú $xq ( x ) ) Þ $x ( p ( x ) Ú q ( x ) )
= x9 ((1 – x)–1)3 If Ps or Qs is not empty, then Ps U Qs is not empty..
= x9 (1 – x)–3
It can be easily showed that this holds for any model.
¥
( n + 1)( n + 2 ) x n
=x
9
å 2
(iii) $x ( p ( x ) Ù q ( x ) ) Þ ( $xp ( x ) Ù $xq ( x ) )
n=0
To find the coefficient of x12, put n = 3 If Ps I Qs is non-empty then Ps is non-empty and Qs
4´5 is non-empty. Anything can model this.
= = 10
2 (iv) "x ( p(x) Ú q ( x ) ) Þ x" ( p(x) Ú "xq(x) )
8. In the given properties, we can observe that f(1) = f(2)
= f(3) = f(4) = f(6) = f(7) and f(5) = f(10) = f(15) = .... If Ps U Qs = W, then P s = W or Qs = W. This is
Obviously, the range of f(x) will contain two distinct obviously not true for any choice of Ps and Qs. Actually
elements only. the only times it will be true is:
9. Given expression is : (a) When Ps = W, meaning P(x) = True, or
= P Ù (P Þ Q) (b) When Qs = W, meaning Q(x) = True, or
= P Ù (P¢Ú Q) When Ps I Qs ¹ W , i.e., when there is a value
(c)
= (P Ù P¢) Ú (P Ù Q) of x where both P(x) and Q(x) do not hold.
= F Ù (P Ù Q) In any other case the choice of P() and Q() will
= (P Ù Q) not satisfy (iv).
1. (P Ù Q) Þ F = (P Ù Q)¢ Ú F = (P¢ Ú Q¢) Ú F = (P¢ Ú Q¢) 12. (b) The given problem can be solved by taking an
= Contingency but not Tautology undirected graph with 23 vertices and 9 of these with
degree 3.
2. (P Ù Q) Þ Q = (P Ù Q)¢ Ú Q = (P¢ Ú Q¢) Ú Q = P¢ Ú (Q¢ Ú
Suppose that if two compounds react with each other,
Q) = P¢ Ú T = T
then there exists an edge between the vertices.
= Tautology According to Theorem of Degree, atleast one of the
3. (P Ù Q) Þ T = (P Ù Q)¢ Ú T = T = Tautology remaining vertices must have odd degree (since
4. (P Ù Q) Þ P Ú Q = (P Ù Q)¢ Ú P Ú Q = (P¢ Ú Q¢) Ú P Ú Q number of vertices of odd degree is always even).
= (P¢ Ú P) Ú (Q Ú Q¢) 13. We have 13 * 13 * 13 * ... * 13 (total 99 terms)
= T Ú T = T = Tautology By Remainder theorem, Þ (-4) * (-4) * ... * (-4) (total 99
terms) Þ 16 * 16 * ... * 16 * (-4) (total 50 terms, 49
5. (P Ù Q) Þ Q¢ Ú P = (P Ù Q)¢ Ú Q¢ Ú P = (P¢ Ú Q¢) Ú Q¢ Ú
terms for 16 and one term for -4). Reapplying
P = (P¢ Ú P) Ú (Q¢ Ú Q¢) Remainder theorem, Þ (-1) * (-1) * ... * (-1) * (-4) (total
= T Ú Q¢ = T = Tautology 50 terms, 49 terms for -1 and one term for -4) Þ (-1) * (-
Therefore, statements (2), (3) (4) and (5) satisfies. 4) Þ 4
10. (b) R is reflexive as every ordered pair is related to itself. 14. (a) g(x) = 1 – x ...(1)
(a, b) R (a, b) since a £ a or b £ b x
It is not transitive as (2, 4) R (3, 2) and (3, 2) R(1, 3) but h (x) = ...(2)
x -1
(2, 4) R (1, 3). Replace x by h (x) in ...(1)
11. (d) P and Q are unary relations. Therefore one can model Replace x by g (x) in ...(2)
each of them as setsPs and Qs, where P(x) iff x Î Ps and g(h(x) ) =1– h (x)
Q(x) iff x Î Qs. Let W be every object in the universe.
Now we can convert each statement into sets: x -1
= 1- =
x -1 x -1
(i) ("xp ( x ) Þ "xq ( x ) ) Þ ( $xØp ( x ) Ú "xq ( x ) )
g (x)
Converting the Ú to Þ, we get h ( g ( x )) = =
1- x
g (x) -1 -x
( "xp ( x ) Þ "xq ( x ) ) Þ ( Ø$xØp ( x ) Þ "xq ( x ) )
g ( h ( x )) x
( "xp ( x ) Þ "xq ( x ) ) Þ ( "xp ( x ) Þ "xq ( x ) ) h ( g ( x ))
=
( x - 1)(1 - x )
Hence, the formula is valid if, for any model where
x
( "xp ( x ) ) Þ "xq ( x ) ) h o l d s , g ( h ( x ))
= -1
x
that ( "xq ( x ) Þ "xq(x ) ) also holds. h ( g ( x )) 1- x
22
= q® ~ p (contrapositive rule)
g ( h ( x )) h (x)
= and s2 : r ® q
h ( g ( x )) g (x) Þ r ® ~p (transitive rule)
15. (d) Number of elements in L3 = Number of ways in which i.e., If a person is kind, he is not known to be corrupt
we can choose 3 elements from 5 with repetition \ Option is (c).
= 5 × 5 × 5 = 125 Now, when we take x = t, then also the 21. (d) R is not reflexive as each element can’t be related to
given condition is satisfied for any y and z. Here, y itself.
and z can be taken in 5 × 5 = 25 ways. R is symmetric
Take x = r, y = p, z = p, these, also the given condition
Let a = 3, b = 6 and c = 10 then 3 and 6 have a common
25 1 division other than 1
is satisfied. So, pr > > .
125 5
6 and 10 have a common division other than 1
For x = p, y = r, z = t , the given condition is not
satisfied. but 3 &10 have no common division other than 1
So, Pr ¹ 1. 3R6 and 6R10 but 3 R 10
So, (d) corret option. R is not transitive.
16. (c) 2A ® Power set of A i.e., set of all subsets of A. Since
22. (d) Counter example :
empty set is a subset of every set
(a) Let X = {1} Þ X¢ = S – X {2, 3, 4, 5, 6} Þ |X| ¹ |X¢|
\ φ Í 2A and φ Î 2 A (b) Since |S| = 6 and |X| = 5 = |Y|
Since {5, 6 } Í and 5 Ï 2A \ Atleast 4 elements common in X and Y
Þ X Ç Y = f is false
\ {5, 6 } Î 2 A and {5, 6 }Í 2 A
(c) Counter example : Let X = {1, 2} and Y = {2, 3, 4}
then X/Y = {1} ¹ f
\ I, II and III are TRUE
17. (a) Y¢
(d) X/ Y = X – Y= X Ç Y¢ and = Y¢ - X¢ = Y¢ Ç (X¢)
18. Cardinality of the power set of {0, 1, 2, … , 10} is 2 11 X¢
= Y¢ Ç X = X Ç Y¢
i.e.., 2048
7´3 X Y¢
®1 \ = , V X, Y Î U
19. h (2, 5, 7, 3) = Remainder of Y X¢
2´5
fg (h (2, 5, 7, 3), 4, 6, 8) = fg (1, 4, 6, 8) 23. (d)
= f (1, 4, 6, 8) × g (1, 4, 6, 8)
24. (b) (~ (p « q) Ù r) Ú (p Ù qÙ ~ r)
=8× 1=8
20. (c) Let p: candidate known to be corrupt We prove the truth table as follows:–
q: candidate will be elected As the 2nd term in each given option is common we
r: candidate is kind
have included this term only once in the truth table:
then S1 = p ® ~q
Also as given exactly two of p, q and r are to be true, so we So, the statement is saying that “Not all the shiny
need to consider only three combinations as above. surface is Gold.” From the statement it can be deduced
We see that only option (B) (~ (p « q) Ù r) Ú (p Ù qÙ ~ r) that there is “Some glitters that is “definitely” not
gold”. However, nothing can be deduced that whether
is true in all three cases when exactly two of p, q and r are
“some glitters is Gold” or “No glitters is Gold.”
true.
(A) For all x : glitters (x) Þ gold (x)
25. (d) The Given statement is:
It says that if something is glitters then it must not be
“Not all that glitters is Gold”
Gold, which may not be true according to the above
Here “Glitters” means the “Golden shiny surface” that discussion.
looks like gold.
23
(B) For all x : gold (x) Þ glitters (x) 31. (a) The hasse diagram of the given poset is
It says that if something is Gold then it must be Glitters,
which can’t be deduced from given statement. {1, 2, 3, 4, 5}
(C) $ x : gold (x) ^ glitters (x)
It says that if something x is available which is not
glitters and is Gold. However this also can’t be {1, 2, 3} {1, 2, 4}
deduced from given statement. {1, 3, 5}
(C) | f (A Ç B) |= 1 Graphs
\ (C) is false. 46. (1) 1, 11 Þ 1 × 11 = 11 edges
(D) is true (2) 2, 10 Þ 2 × 10 = 20 edges
42. (b) Consider a function as : (3) 3, 9 Þ 3 × 9 = 27 edges
f (0) = 1, f (1) = 0, f (2) = 3, f (3) = 2, ...., f (2012) = 2013, (4) 4, 8 Þ 4 × 8 = 32 edges
f (2013) = 2012 and f (2014) = 2014 (5) 5, 7 Þ 5 × 7 = 35 edges
Clearly f (f (i)) = i for 0 < i < 2014 (6) 6, 6 Þ 6 × 6 = 36 edges (maximum)
Here f (i) ¹ i for every i and f (i) = i for some i
Also f is onto 47. a 2
Hence, only Q and R are true
43. The value of log2 log2 N is 16. 2 1 2 1
We know that the total no. of functions f : A ® B b
c
= (Cardinality of B) (Cardinality of A) = |B||A|
Now for the given questions: 2 2
{0, 1}4 represents all 4-tubles on the set {0, 1},
1 1 2 1
e.g. (1, 0, 1, 0,), (1, 1, 1, 0) etc.
d e
Total no. of 4-tubles on {0, 1} = 24 = 16
(Since each element of four tuble has 2 choice) 2
2
Total no. of functions f : {0, 1}4 ® {0, 1} = 216 (|B||A|)
A B Edges picked to make MST is given the double line.
In the right side of MST, we could either pick ‘d’ or ‘e’
Set S contains all these functions, so cardinality (S) = 216
In the left side we could either pick ‘a’, ‘b’ or ‘c’ in MST.
Now, N denotes the no. of func. g: S ® {0, 1}.
There are two options for one edge to be picked and three
Þ N = |{0, 1}||s| = 22
16
option for other edge to be picked.
16
\ Total possible MSTs = 2 × 3 = 6
Þ N = 22 1
a G a G b a b
b
Þ log2log2 2 ( ) = 16
216
48.
c
44. A 10 percent will be a sequence of any no. of 1s and 2s such cd c
that sum is 10. c
d c
p.g. (1, 1, 2, 2, 1, 1, 2) is a 10 pennant.
I. When sequence contains all 1s: b
d
no. of such pennants = 1 (1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
II. When sequence contains Eight 1s and one ‘2’ : (8 × 1, 1 G and G1 are complement and isometric to each other when
× 2) there are 5 vertices.
49. As per Lagrange’s theorem, order of subgroup divides
9! order of group
no. of such pennants = 9C1 = =9
1!8! \ 3, 5 and 15 can be order of subgroup.
III. When sequence contains six 1s and Two 2s : Given, L ¹ G \ it is not 15
6 × 1, 2 × 2 (e.g. 1, 1, 1, 1, 1, 1, 2, 2,)
and L is atleast 4 \ it is not 3
18! \ size of L is 5
no. of pennants = 18C2 = = 28
2!6! 50. (a) A binary operation Å on a set of integers is defined
IV. When sequence contains 4 1s and 3 2s:- as x Å y = x2 + y2
4 × 1, 3 × 2 (e.g. (1, 1, 1, 1, 2, 2, 2))
x Å y = x2 + y2
7! y Å x = y2 + x2
no. of pennants = 7C3 = = 35
3!4! = x2 + y2 (Q Addition is commutative)
V. When sequence contains 2 1s and 4 2s : \ Å is commutative.
2 × 1, 4 × 2 (e.g. (1, 1, 2, 2, 2, 2,)) (x Å y) Å z = (x2 + y2) Å z = (x2 + y2)2 + z2
6! x Å (y Å z) = x Å (y2 + z2) = x2 + (y2 + z2)2
no. of pennants = 6C4 = = 15
4!2! Clearly, (x Å y) Å z ¹ x Å (y Å z)
VI. When sequence contains 5 2s and no. 1s: \ Å is not associative.
no. of pennants = 1 (i.e. (2, 2, 2, 2, 2)) Hence, Å is commutative but not associative.
Total no. of 10 pennants 51. (c) P : Number of odd degree vertices is even.
= 1 + 9 + 28 + 35 + 15 + 1 = 89. Q : Sum of degrees of all vertices is even
45. Let the vector space, V be {a, b, c, d, e, f} Q is true
For smallest possible dimension of V1 Ç V2 , Explanation Calculating the sum of degrees of all
V1 = {a, b, c, d} and V2 = {c, d, e, f} vertices.
\ V1 Ç V2 = {c,d} Considering an edge, it is joining two vertices (not
necessarily distinct), hence 2 is the sum of degrees.
\ Smallest possible dimension = 2
26
Hence, for ‘e’ edges, the sum of degrees of all
vertices is 2e (i.e., even) P Q P®Q
This is valid even in the case of self loops. F F T
P is true F T T
Explanation Let us assume, number of odd degree
T F F
vertices is odd. So, the contribution of odd degree
vertices in total sum is odd. T T T
Now, the contribution of even degree vertices is also
even (whether the number is even or odd). i.e., if there was not rain [i.e., P is F in logic table] then
Including vertex of degree zero in even degree match may or may not be played because in both case
vertices. P ® Q is true.
So, total sum becomes odd, which is not possible. So, the correct inference is—the cricket match might
Hence, P is true. be played.
\ Both P and Q statements are ture for undirected 54. (b) The given graph is with degree of each node.
graphs. Hence answer is (c).
1 2
52. (c) The given statement or sentence is— 2
'Some real number are rational.' We can also write this 1
sentence as follows:
4
'There exists real number that are rational' therefore we 2
have to use $ (Existential) quantifier consider number 2 2
as random variable x. Then, Consider option (a) :
$x (real) (x)) Þ This, indicates 'There exists number In this graph, one vertex has degree of 3 but in the
that are real.' original graph, there is no vertex of degree 3. So, this
$ x (rational (x)) Þ This indicates 'There exists number graph is not isomorphic.
that are rational.' 2
Hence, $x (real (x) Ù rational (x) Þ 1
1 3
This indicates 'There exists real number that are rational.
53. (b) I1 : If it rains, then then the cricket match will not be 4
played. 1
2 2
The cricket match was played.
Inference : There was no rain. Consider option (c) :
Here, the same explanation as above given. This graph
Hence, I1 is correct. is also not isomorphic.
Proof
Suppose P : It rains 1 2
1 3
Q : The cricket match will not be played.
It is given P ® Q 3
2
We know that P ® Q º ~ Q ® ~ P 2 2
\ ~ Q : The circket match will be played. Consider option (d) :
In this graph, there is a 4 length but in the original
~ P : It is not rain.
graph, there is no cycle of length 4. So this graph is
\ If the cricket match was played, then there was not isomorphic.
no rain [P ® Q = ~ PQ ® ~ P] 2
2 1
\ I1 is correct.
I2 : If it rains, then the cricket match will not be played. 2
It did not rain. 4
1
Inference : The cricket match was played. 2 2
I2 is not correct. 55. (c) Here, given graph is a complete graph and we can
choose any 4 vertices from given 6 vertices to make
Proof cycle of length 4.
According to logic table P ® Q i.e., We can arrange 4 vertices in (4 – 1)! ways or 3! ways
because there is a cycle.
27
Hence, number of cycles of length (ii) × is an associative operation.
6! 6´5 (iii) 1 Î S is the identity element.
4 = 6 × 6C4 = 6 ´ = 6´ = 90 cycle (iv) 1–1 = 1, w–1 = (w2) –1 = w
4! 2! 2
56. (d) In any graph, bounded faces or bounded region and \ Inverse axiom is satisfied on given set.
unbounded regions are present. \ (S, *) is a group
For example 60. (c) Given, S and T are two different trees with
x(S) = x(T)
2 Þ 2|ES| = 2|ET|
1 (By handshaking theorem x(G) = 2|EG|)
Þ |ES| = |ET|
In the above graph, there are 2 regions, 1 st is bounded Þ |S| – 1 = |T| – 1
region or bounded face graph and 2nd is unbounded. Þ |S| = |T|
So, we have to calculate the regions of the graph. (In a tree |ES| = |S| – 1 and |ET| = |T| – 1, where |S| and |T|
In the question, G is a simple undirected graph on 10 are numbers of vertices of trees S and T respectively)
vertices and 15 edges and G is connected garph, so
61. (d) Let n (X) denotes the number of elements of set X.
there are total number of regions (r).
r = e – v + 2, r = 15 – 10 + 2 Given, n (X) = x
r =7 n (Y) = y
\ Total number of regions in the given graph are 7 but n (Z) = z
one extra region is unbounded and 6 are bounded. n (E) = Number of all subsets of W
Hence, answer is 6. = Number of all subsets of X × Y
= 2n(X).n(Y)=2xy
Therefore, the number of functions from Z to E
= [n (E)]n(Z)
57. (b) Þ = (2xy)z = 2xyz
62. (b) Given, V = 13, E = 19
K4 is planar
Let R be the number of regions.
Applying Euler’s formula, (Here faces and regions
mean one and the same).
R= E – V + 2
Þ or R = 19 – 13 + 2 = 8
63. (b) Given, V = 13, E = 19
Q3 is planar Let, R be the number of regions
Applying Euler's formula (Here faces and regions mean
Both K4 and Q3 is planar
one and the same)
58. (c) Let the set 64. (a) From figure (a)
S = {a, b, c, d, e}
Relation is subset of S × S
There are totally 52 = 25 ordered pairs in S × S including
five ordered pairs (a, a), (b, b), (c, c), (d, d) and (e, e) that
must be included in order to find reflexive
\ Total number of reflexive relation on S
S = 225–5 = 220
Touch each other.
59. (a) Here, we have onlyh one operation given. So, not planar.
Therefore, given options viz; ring, integral domain
and field are ruled out. From figure (b)
As it requires two binary operations.
Alternative Method
(i) For all a, b, Î S
a×bÎS
a*bÎS
i.e.,
\ Closure property hold son set S.
28
From figure (c) 68. (d) Given, |E| £ 3 |V| –6
\ 2 |E| £ 6|V| – 12 ...(i)
Now å degrees = 2|E|
If minimum degree = k, then å degrees ³ k|V|
i.e., 2|E| ³ k |V| ...(ii)
From Eqs. (i) and (ii), we can say that
k |V| £ 6 |V| – 12
Now substituting k = 3, 4 , 5 , 6 in order
From figure (d) k=3Þ 3 |V| £ 6 |V| – 12
Þ |V| ³ 4 which is possible
k=4Þ 4 |V| £ 6 |V| – 12
Þ |V| ³ 6 which is possible
k=5Þ 5 |V| £ 6 |V| – 12
Þ |V| ³ 12 which is possible
k=6Þ 6 |V| £ 6 |V| – 12
which is not possible.
65. (b) Given, V = 13, E = 19
\ Minimum degree cannot be 6.
Let R be the number of regions.
Applying Euler’s formula, (Here faces and regions 69. (a) The number of perfect matchings in a complete
mean one and the same). graph of n vertices, where n is even, reduces of the
R=E–V+2 problem of finding unordered partitions of the vertex
or R = 19 – 13 + 2 = 8 set of the type p(2n; 2, 2, 2, ....n times)
66. (c) An assignment of the colors 1, 2, 3 and 4 to the
(2n)!
vertices of the graph is shown below such that the
graph is shown below such that the graph is (2!)n n!
properly colored. For n =3, 2n = 6, i.e., complete garph K6, we have
3 6!
Number of perfect matchings =
2 1 (2!) n n!
4 4 6 ´ 5 ´ 4 ´ 3´ 2 ´1
3 2 = = 15
2´2´2´6
1 Combinatorics
So, 4 colors are required. 70. (a) A tree with 1 node is not possible, since it is given that
67. (c) Maximum components will result after removal of a
every node has exactly 1 child.
node, if graph G is a star graph as shown below
a
v
b
or a null graph of n vertices as shown below
Now, consider a tree with 2 nodes (0 is the root)
Now, a has exactly one child, number of descendants
v of a = 2 but this contradicts the given fact that every
node has an odd number of descendants.
Now, consider a tree with 3 nodes. Since, every node
In either case, if node v is removed, the number of
components will be n – 1, where n is the total has exactly one child, it must be of the form.
number of nodes in the star graph. a
\ n – 1 is the maximum number of components
possible. Minimum components will result, if the
node being removed is a lone vertex in which case, b
the nubmer of components will be K – 1.
\ The number of components must necessarily lie c
between K – 1 nad n – 1.
29
Here, a has 3 descendants, b has 2 descendants and c 73. (a) Group properties are closure, associativity, existence of
has one. Again we have contradiction in that b does identity and existence of inverse for every element.
not have odd number of descendants. Similarly, we Commutativity is not required for a mathematical
can show that for tree with 4, 5, 6, ... nodes, it is not structure to become a group.
possible to have all nodes with odd number of 74. (d) Given, R = {x, y}, (x, z), (z, x), (z, y)} on set {x, y, z}
descendants. So, correct answer is the trees has 0 Now, since (x, y) ÎR and (y, x) Ï R, R is not symmetric.
nodes. Also since (x, z) Î R and (z, x) Î R, R is not anti-symmetric
71. (c) The correct translation of gold and silver ornaments either.
are precious is choice (d). \ R is neither symmetric nor anti-symmetric.
" x ((G(x) Ù S(x)) ® P(x)) 75. (b) In a simple connected undirected graph (with more
which reads as “if an ornament is gold or silver, then it than two vertices) atleast two vertices must have same
is precious”. Since, a given ornament cannot be both degree, since, if this is not true then all vertices would
gold and silver at the same time. have different degree. A graph with all vertices would
72. (b) The given table can be converted into Boolean have different degree. A graph with all vertices having
function by adding minterms corresponding to true- different degrees is not possible to construct. Notice
row. that it is possible to construct graph satisfying choices
(a), (c) and (d).
Translates P Ú Q = PQ + PQ' + P'Q'
76. (c) If an n-vertex simple contex simple connected graph
Using this we can check the choices one by one to see
contains no cycles of odd length, then its chromatic
which is equivalent to P + Q
number is two, since the vertices cna be alternately
Choice (a) Ø Q Ú Ø P º Q' Ú P' coloured with first colour, then the second colour, then
º Q' P' + Q' (P')' + (Q')' (P')' the first colour and then the second colour and so on.
º Q' P' + Q' P + QP Alternatively, since a simple connected graph with no
º Q' P' + P(Q + Q') cycles of odd length must be bipartite and since, the
º Q' P' + P (Q by complement law) chromatic number of a bipartite graph is always 2 (in a
bipartite graph each partition requires one colour (there
º (Q' + P) × (P' + P) (Q by distribution law)
are no edge within a partition of a bipartite graph) and
º Q' + P
there are only two partitions).
Choice (b) P Ú Ø Q = P Ú Q' 77. (b) The statement ‘Not every graph is connected’ is same
= PQ' + P (Q')' + P' (Q')' as ‘There exists some graph which is not connected'
º PQ' + PQ + P'Q which is same as $ x {graph (x) Ù Ø connected (x)}.
º P (Q' + Q) + P'Q 78. (a) For x, the predicate fsa there exists y and the
º P + P'Q (Q by complement law) corresponding predicate pda which is equivalent to x.
º (P + P') (P + Q) (Q by distribution law) \ (A x fsa (x))
= P+Q Þ ($ y pda (y) ^ (equivalent (x, y))
Choice (c) Ø P Ú Q = P' Ú Q 79. (b) (i) P Ù ~ Q º P + Q'
º P'Q + P'Q' + (P')' Q' (ii) ~ (~ P Ù Q) (P' + Q)' º P + Q'
º P'Q + P'Q' + PQ' (iii) (P Ù Q) Ú (P Ù ~ Q) Ú (~ P Ù ~ Q)
º P' (Q + Q') + PQ' = (PQ) + (PQ' ) + (P'Q')
= P' + PQ' (Q by complement law) = P(Q + Q') + P'Q'
= (P' + P) (P' + Q') º P' + Q' (Q by distribution law)
= P + P'Q'
Choice (d) Ø P Ø Q º P' Q'
= (P + P') (P + Q')
º P'Q' + P' (Q')' + (P')' (Q')'
= P + Q'
º P'Q' + P'Q + PQ
(iv) (P Ù Q) Ú (P Ù ~ Q) Ú (~ P Ù Q)
º P'(Q' + Q) + PQ
= (PQ) + (PQ' ) + (P'Q)
º P' + PQ (Q by complement law)
= P(Q + Q') + P'Q
º (P' + P) (P' + Q) (Q by distribution law)
= P' + Q = P + P'Q
(i) E¢ = E – V + 2 = 19 – 13 + 2 = 8
b c d
[{a, b, c, d, e},£] 94. (b) X : (P Ú Q) ® R
Y : (P ® R) Ú (Q ® R)
X : P + Q ® R º (P + Q)' + R º P'Q' + R
e
Y : (P' + R) + (Q' + R) º P' + Q' + R
The poset [{a, b, c, d, e}, £] is a lattice (since every Clearly, X ¹Y
pair of elements has LUB and GLB) but it is not a
distributive lattice. Because distributive latice Consider X ®Y
satisfies the following conditions. For any x, y, z º (P'Q' + R ) ® (P' + Q' + R)
x Ù (y Ú z) = (x Ù y) Ú (x Ù z) º (P'Q' + R)' + P' + Q' + R
x Ú (y Ù z) = (x Ú y) Ù (x Ú z)
º (P'Q')' R' + P' + Q' + R
where, Ù and Ú are meet and join operations but for
given poset [{a, b, c, d ,e} £] º (P + Q) R' + P' + Q' + R (Q by distribution law)
b Ù (c Ú d) = b Ù a = b º PR' + QR' + P' + Q' + R
(b Ù c) Ú (b Ù d) = e Ú e = e º (PR' + R) + (QR' + Q') + P'
So, it is not distributive. (Also element b has 2 º (P + R)(R' + R) + (Q + Q') × (R' + Q') + P'
complements c and d, which is not possible in the
º P + P' + R + R' + Q’ (by complente law)
distributive lattice, since, in a distributive lattice,
complement, if it exists, is always unique). º 1 + 1 + Q' = 1
\ X ® Y tautology.
Sets & Relations
95. (b) Every teacher is liked by some students, then the
92. (a) X = (A – B) – C logical expression is " (x) [teacher (x) ® $ (y)
= (A Ç B¢) Ç C¢ {student (y) Ù likes y(x)}]
= A Ç B¢ Ç C¢
where, likes (y, x) mean y likes x, such that y represents
Y = (A – C) – (B – C) the student and x represents the teacher.equivalence
= (A Ç C¢) – (B Ç C¢) and therefore, a valid first order formula.
= (A Ç C¢) Ç (B Ç C¢)¢ 96. (b) X : (P Ú Q) ® R
= (A Ç C ¢) Ç (B ¢È C) Y : (P ® R) Ú (Q ® R)
= (A Ç C¢ÇB¢) È (A Ç C¢Ç C) X : P + Q ® R º (P + Q)¢ + R = P¢ Q¢ + R
= A Ç B¢Ç C¢ Y : (P¢ + R) + (Q¢ + R) º P¢ + Q¢ + R
\ X= Y Clearly, X ¹Y
93. (a) Let A = {1, 2, 3, 5, 7, 8, 9} Consider X ® Y
Construct the table for any x, y Î A such that
º (PQ)¢ + R) ® (P¢ + Q¢ + R)
x * y = (x. y) mod 10
º (P¢Q¢ + R)¢ + P¢ + Q¢ + R
32
º (P¢ Q¢)¢ R¢ + P¢ + Q¢ + R R È S is not equivalence relations on A as it is not
º (P + Q) R¢ + P¢ + Q¢ + R transitive because (1, 2) 6 R È S and (2, 3) Î R È
º PR¢ + QR¢ + P¢ + Q¢ + R S but (1, 3) Ï R È S.
º (PR¢ + R) + (QR¢ + Q¢) + P¢ 99. (c) The number of combinations of pairs (a mod 3, b mod
5) is
º (P + R) (R¢ + R) + (Q + Q¢) × (R¢ + Q¢) + P¢
3 ´ 5 = 15
º P + P¢ + R + R¢ + Q¢
(since, a mod 3 can be 0, 1 or 2) and b mod 5 can
= 1 + 1 + Q¢ º 1 be 0, 1, 2, 3 or 4
\ X ® Y is a tautology. \ If 16 different ordered pairs are chosen at least 2
97. (b) Clearly form the shown diagram, of them must have (a mod 3, b mod 5) as same (basic
pigeon hole principle).
A B C Let such two pairs be (a, b) and (c, d) then
a mod 3 º c mod 3 Þ a º c mod 3
a 1 x and b mod 5 º d mod 5 Þ b º d mod 5.
b 2 y 100. (c) The set S = {1, 2, 4, 7, 8, 11, 13, 14} is a group under
3 multiplication modulo 15.
The identity element for this group is e = 1 since,
g is into "x ÎS,1× x mod 15 = x
f is onto
and h = g of is onto Now, let the inverse of 4 be 4–1.
Now, (4·4) mod 15 = 1
\ 4–1 = 4 (This inverse is unique)
98. (c) Given R and S be two equivalence relations on a
Similarly, let the inverse of 7 be 7–1.
non-empty set A. Then both are reflexive, symmatric
(7·7–1) mod 15 = 1
and transitive. –1
Putting each element of set as 7 by trial and error,
" x Î A, y Î A, z ÎA we get
(a) (x, x) Î R and (x, x) Î S
(7·13) mod 15 = 91 mod 15 = 1
Þ (x, x) Î R Ç S
\ 7–1 = 13
\ R Ç S is reflexive. –1 –1
So, 4 and 7 are respectively 4 and 13.
(a) (x, y) Î R Ç S
101. (a) X = (A – B) – C
Þ (x, y) Î R and (x, y) ÎS
= (A Ç B¢) Ç C ¢
Þ (y, x) ÎR and (y, x) Î S
(Q R, S are symmetric) = A Ç B¢ Ç C¢
Þ (y, x) Î R Ç S Y = (A – C) – (B – C)
Thus, R Ç S is symmetric = (A – C¢) – (B Ç C¢)
(c) (x, y) R Ç S and (y, z) Î R Ç S = (A Ç C¢) Ç (B Ç C¢)¢
Þ (x, y) Î R and (x, y) Î S = (A Ç C¢) Ç (B¢ È C)
and (y, z) Î R and (y, z) Î S = (A Ç C¢ Ç B¢) È (A Ç C¢ Ç C)
Þ [(x, y) Î R and (y, z) Î R] = A Ç B¢ Ç C¢
and [(x, y) Î S and (y, z) Î R] \ X= Y
Þ (x, z) Î R and (x, z) Î S 102. (b) S = {(x, y) | y = x + 1 and x, y Î{0, 1, 2,.....}}
(By transitivity of R and S)
= {(0, 1), (1, 2), (2, 3), (3, 4),....}
Þ (x, y) Î R Ç S
Now let T1 be the reflexive closure of S.
Hence, R Ç S is transitive.
T = {(0, 0), (1, 1), (2, 2), (3, 3)...}
Thus, R Ç S is an equivalence relation.
È {(0 ,1), (1, 2), (2, 3), (3, 4)....}
But R È S is not necessarily an equivalence relation
on A which can be explained by an example. = {(0, 0), (0, 1), (1, 1), (1, 2), (2, 2), (2, 3) (3, 3), (3,
Let A = {1, 2, 3} 4)....}
and R = {(1,1), (2, 2), (3, 3) (1, 2), (2, 1)} Let T2 be the transitive closure of S.
S = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (2, 3) (3, (0, 1), (1, 2) Î S Þ (0, 2) Î T2
2)} (0, 2), (2, 3) Î S Þ (0, 3) Î T2
Then, R È S = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (0, 3), (3, 4) Î S Þ (0, 4) Î T2
(2, 3), (3, 2)} and so on....
Cleanly, R and S are equivalence relations on A but Also, (1, 2), (2, 3) Î S Þ (1, 3) Î T2
33
(1, 3), (3, 4) Î S Þ (1, 4) Î T2 (b ´ x) + (c ´ y) = c ....(ii)
(1, 4), (4, 5) Î S Þ (1, 5) Î T2 Substitue first (x, y) = (a, a)
and so on.... LHS of Eq. (i) becomes
\ T2 = {(0, 1), (0, 2), (0, 3),....,(1, 2), (1, 3), (1, 4),...} (a ´ a) + (a ´ a) = a + a = b
Now, RHS of Eq. (i) = c.
Now the reflexive, transition closure of S will be
Therefore, LHS ¹ RHS. This means that (a, a) is not
T3 = T1 È T2 a solution pair. Similarly try each of the remaining
= {(0, 0), (0, 1), (0, 2)...., (1, 1), (1, 2)}, seven possible solution pairs. It will be found that
(1, 3)...(2, 2) (2, 3), (2, 4)....} and so on only two pairs (b, c) and (c, b) will satisfy both Eqs.
103. (d) If a £ x, since p(x) Þ p(y) whenever x £ y (i) and (ii) simultaneously.
\ p(a) Þ p(x) 106. (b) T(1) = 1
Now since p(a) = True, p(x) = cannot be false.
T(2) = T(1) + êë 2 úû
\ (d) cannot be true.
104. (a) consider A, B and f as defined below (since f needs =1+1=2
not be onto) T(3) = T(2) + êë 3 úû
A B =2+1=3
1 f
a T(4) = T(3) + êë 4 úû
2 b =3+2=5
c T(5) = T(4) + êë 5 úû
=5+2=7
Consider a subset D of B such that T(6) = T(5) + êë 6 úû
D = {a, c}
=7+2=9
h(D) = {1}
T(7) = 9 + 2 = 11
g(h(D)) = {a}
T(8) = 11 + 2 = 13
g(h(D)) Í D is true
Notice, that if the function f were both one-to-one T(9) = 13 + 9 = 16 and so on till.
and onto then g(h(D)) = D. T(16) = 16 + 6 ´ 3 + 4 = 38
105. (c) The possible solution pairs are (a, a), (a, b), (a, c), \ T(1) = 1, T(4) = 5, T(9) = 16 and T(16) = 38.
(b, a), (b, b), (c, a), (c, b) and (c, c). Choice (a) does not satisfy T(16).
Substitute them one by one in both equations and Choice (c) does not satisfy T(4).
see which of them satisfies both the equations. Choice (d) does not satisfy T(1).
The given equations are \ Answer is choice (b) which satisfies T(1) upto
(a ´ x) + (a ´ y) = c ...(i) T(16).