Gujarat Technological University
Gujarat Technological University
___________
1
(b) Given A = {x ∶ x is an integer and 1 ≤ x ≤ 5}, 04
𝐵 = {3, 4, 5, 17}, and 𝐶 = {1, 2, 3, . . . }, find 𝐴 ∩ 𝐵, 𝐴 ∪ 𝐵, 𝐴 ∩ 𝐵 ∩ 𝐶
and 𝐴 ∪ 𝐶.
(c) (i) Show that every subgroup of a cyclic group is normal 03
(ii) The subset 𝐻 = {0,2} is a subgroup of (ℤ4 , +4 ). Find all left and right 04
cosets of 𝐻 in (ℤ4 , +4 ). Is 𝐻 a normal subgroup?
OR
Q.3 (a) Define 𝑓: (ℕ × ℕ,∗) → (ℚ,×) by 𝑓(𝑎, 𝑏) = 𝑎. Show that 𝑓 is a 03
𝑏
homomorphism.
(b) In a class of 50 students, 12 enrolled for both Mathematics and Science, 32 04
enrolled for Science. If the students of the class enrolled for at least one of
the two subjects, then how many students enrolled for only Mathematics but
not Science?
(c) Consider the ring ℤ10 = {0, 1, 2, … ,9} of integers modulo 10. 07
(a) Find the units of ℤ10 .
(b) Find −3, −8 and 3−1 .
(c) Let 𝑓 (𝑥) = 2𝑥 2 + 4𝑥 + 4. Find the roots of 𝑓 (𝑥) over ℤ10 .
Q.4 (a) Let 𝑋 = {1, 2, 3, 4} and 𝑅 = {〈𝑥, 𝑦〉/ 𝑥 > 𝑦} . Draw the graph of 𝑅 and 03
also give its matrix.
(c) Solve 07
𝑎𝑛 = 11𝑎𝑛−1 − 39𝑎𝑛−2 + 45𝑎𝑛−3, 𝑎0 = 5, 𝑎1 = 11, 𝑎2 = 25.
Q.5 (a) A tree 𝑇 has 3 vertices of degree 4, 3 vertices of degree 3. Find the number 03
of pendant vertices in tree 𝑇.
2
(b) Find reachable set of each node of the given digraph. Also find 04
𝑑(𝑉1 , 𝑉3 ), 𝑑(𝑉3 , 𝑉1 ).
(c) Define Strong, unilateral, week component. Also Find strong, unilateral, 07
week component from the given digraph.
OR
Q.5 (a) Define null graph, centre of a graph and complete graph. 03
(b) Find the path matrix using adjacency matrix of the following graph. 04
(c) Define tree. In which order does a pre-order, in-order and post-order 07
traversal visit the vertices of the ordered rooted tree shown in figure?
*****
3
Seat No.: ________ Enrolment No.___________
Q.1
(a) If A = x x = 3n , n 6, n N B = x x = 9n , n 4, n N then find 03
A B , A B and A − B .
(b) Check whether the relation R defined in the 1, 2,3, 4,5,6 as 04
(II) Let Y = n2 : n N and f : N → Y defined as f (n) = n2 . Show 04
1
(b) Show that in a lattice if a b c , then 04
(I) a b = b c and (II) (a b) (b c) = b = (a b) (a c)
(c) Solve the recurrence relation which represents the Fibonacci sequence 07
Fn = Fn−1 + Fn−2 with F0 = F1 = 1 .
OR
Q.3 (a) The Indian cricket team consist of 16 players. It includes 2 wicket 03
keepers and 5 bowlers. In how many ways eleven player can be selected
if we have to select on wicket keeper and at-least 4 bowlers?
(b) Prove that any graph has even number of odd vertices. 04
(c) Find the generating function of an+2 = an+1 + an , where a0 = a1 = 1 for 07
n1
Q.4 (a) If G is an abelian group with n elements g1, g2 ,....., gn then show that 03
OR
Q.5 (a) Define cycle, walk and tree. 03
(b) Find transitive closure by Warshall’s Algorithm if A = {1,2,3,4,5} and 04
R = {(1, 2 ) , ( 3, 4 ) , ( 4,5 ) , ( 4,1) , (1,1)}
(c) Define Isomorphic Graphs. Determine whether the following graphs are 07
isomorphic or not.
2
3
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) If A = {a, b} and B = {c, d} and C = {e, f} then find (i) ( A B )U ( B C ) 03
(ii ) A ( BUC ).
(b) Define even and odd functions. Determine whether the function 04
f : I R defined by f ( x0 2 x 7 is one-to-one or bijective.
(c) (i) Show that the relation x y (mod m) defined on the set of integers I is 03
an equivalence relation.
(ii) Draw the Hasse diagram for the partial ordering {( A, B ) / A B} on 04
the power set P (S ) , where S {a, b, c}.
Q.2 (a) Define equivalence class. Let R be the relation on the set of integers I 03
defined by ( x – y ) is an even integer, find the disjoint equivalence classes
(b) A committee of 5 persons is to be formed from 6 men and 4 women. In 04
how many ways can this be done when (i) at least 2 women are included
(ii) at most 2 women are included ?
(c) Solve the recurrence relation an 5an1 6an2 3n 2 using the method 07
of undetermined coefficients.
OR
(c) Solve the recurrence relation using the method of generating function 07
an 5an1 6an2 3n , n 2; a0 0, a1 2.
Q.3 (a) Define simple graph, degree of a vertex and complete graph. 03
(b) Define tree. Prove that there is one and only one path between every pair 04
of vertices in a tree T.
(c) (i) A graph G has 15 edges, 3 vertices of degree 4 and other vertices of 03
degree 3. Find the number of vertices in G.
(ii) Define vertex disjoint and edge disjoint subgraphs by drawing the 04
relevant graphs.
OR
Q.3 (a) Show that (G, 5 ) is a cyclic group, where G={ 0, 1, 2, 3, 4 }. 03
(b) Define the following by drawing graphs (i) weak component (ii) 04
unilateral component (iii) strong component.
(c) (i) Construct the composite tables for (i) addition modulo 4 and (ii) 03
multiplication modulo 4 for Z 4 {0,1,2,3} . Check whether they have
identity and inverse element.
a 0 04
(ii) Define ring. Show that the set M / a, b R is not a ring
b 0
under the operations of matrix addition and multiplication.
1
Q.4 (a) Define algebraic structure, semi group and monoid. Also give related 03
examples.
(b) Use Warshall’s algorithm to obtain path matrix from the adjacency matrix 04
of
v1 v4
v5
v2 v3
(c) (i) Is the algebraic system ( Q, * ) a group? Where Q is the set of 03
rational numbers and * is a binary operation defined by
a * b a b ab , a, b Q.
(ii) Let ( Z, + ) be a group, where Z is the set of integers and + is an 04
operation of addition. Let H be a subgroup of Z consisting of elements
multiple of 5. Find the left cosets of H in Z.
OR
Q.4 (a) Prove that there are always an even number of vertices of odd degree in a 03
graph.
(b) Prove that every subgroup H of an abelian group is normal. 04
(c) (i) Find the number of edges in a r – regular graph with n – vertices. 03
(ii) A tree T has 4 vertices of degree 2, 4 vertices of degree 3, 2 vertices 04
of degree 4. Find the number of pendant vertices in T.
Q.5 (a) Show that the operation * defined by x * y x y on the set N of natural 03
numbers is neither commutative nor associative.
(b) Prove that an algebraic structure ( G, * ) is an abelian group, where G is 04
the set of non-zero real numbers and * is a binary operation defined by
ab
a *b .
2
(c) (i) Find out using truth table, whether ( p r ) p is a tautology. 03
(ii) Obtain the dnf of the form ( p (q r )). 04
OR
Q.5 (a) If f : x 2 x , g : x x 2
and h : x ( x 1), then show that 03
( fog )oh fo( goh ).
(b) Define lattice. Determine whether the POSET ({1,2,3,4,5};1) is lattice. 04
(c) (i) If p: product is good, q: service is good, r: company is public limited, 03
write the following in symbolic notations (i) either product is good or the
service is good or both, (ii) either the product is good or service is good
but not both, (iii) it is not the case that both product is good and company
is public limited.
(ii) For the universe of integers, let p(x), q(x), r(x), s(x) and t(x) be the 04
following open statements: p(x): x > 0; q(x): x is even; r(x): x is a perfect
square; s(x): x is divisible by 4; t(x): x is divisible by 5. Write the
following statements in symbolic form: (i) At least one integer is even,
(ii) There exists a positive integer that is even, (iii) If x is even then x is
not divisible by 5, (iv) No even integer is divisible by 5, (v) There exists
an even integer divisible by 5.
2
Seat No.: ________ Enrolment No.___________
1
(c) Solve the recurrence relation: 07
𝑎𝑛+2 − 5𝑎𝑛+1 + 6𝑎𝑛 = 2.
Q.4 (a) Define group with example. Give an example of a non-abelian group. 03
(b) Let 𝐻 = {[0], [3]} in 𝑍6 under addition. Find left and right cosets in < 04
𝑍6 , +6 >.
(c) Prove that 𝐺 = {1,2,3,4,5,6} is a finite abelian group of order 6 with 07
respect to multiplication modulo 7.
OR
Q.4 (a) Define subgroup and group Homomorphism. 03
(b) Is addition a binary operation on {-1,0,1}? Justify. 04
(c) Explain Cosets and Lagrange’s theorem. 07
Q.5 (a) How many nodes are necessary to construct a graph with exactly 8 edges 03
in which each node is of degree 2.
(b) Find the shortest path between each pair of vertices for a simple digraph 04
using Warshall’s Algorithm.
(c) Define Isomorphic Graphs. Verify the following graphs are Isomorphic 07
or not (Justify).
OR
Q.5 (a) Define Cyclic graph, Null graph and Strongly connected graph. 03
(b) Draw a graph which is regular but not bipartite. 04
(c) For the following set of weights construct an optimal binary prefix code. 07
For each weight in the set, give corresponding code word.
5, 7, 8, 15, 35, 40
*************
2
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) Determine whether each of these statements is true or false. 03
1)0 ∈ ∅ 2)∅ ⊂ {0} 3){0} ∈ {0}
4) ∅ ∈ {∅} 5){∅} ∈ {{∅}} 6) {{∅}} ⊂ {∅, {∅}}
(b) Determine whether f is a function from the set of all bit strings to the set 04
of integers if
1) 𝑓(𝑠) is the position of a 0 bit in S.
2) 𝑓(𝑠) is the number of a 1 bits in S.
Find the range of each of the following functions that assigns:
3) to a bit string the number of one bits in the string
4) to each bit string twice the number of zeros in that string.
(c) 1) Find the bitwise OR, and bitwise XOR of the bit string 1111 0000, 07
1010 1010
2) Show that the function 𝑓: 𝑅 → 𝑅 + ∪ {0} defined by 𝑓(𝑥) = |𝑥| is
not invertible. Modify the domain or codomain of 𝑓 so that it
becomes invertible.
3) Let 𝑆 be subset of a universal set ∪. The characteristic function 𝑓𝑆
: ∪→ {0,1} , 𝑓𝑆 (𝑥) = 1, 𝑖𝑓 𝑥 ∈ 𝑆 𝑎𝑛𝑑 0 𝑖𝑠 𝑥 ∉ 𝑆.
Let A and B be sets. Then show that 𝑓𝐴∩𝐵 (𝑥) = 𝑓𝐴 (𝑥). 𝑓𝐵 (𝑥)
Q.2 (a) Let P(x) be the statement “x = x2 “. If the domain consists of the integers, 03
what are the truth values of the following?
1) ∃𝑥 𝑃(𝑥) 2) ∀𝑥 ¬𝑃(𝑥) 3) ∃𝑥 ¬𝑃(𝑥)
(b) Identify the error or errors in this argument that supposedly shows that if 04
∃x P(x) ∧ ∃x Q(x) is true then ∃x (P(x) ∧ Q(x)) is true.
1. ∃x P(x) ∧ ∃x Q(x) Premise
2. ∃x P(x) Simplification from (1)
3. P(c) Existential instantiation from (2)
4. ∃x Q(x) Simplification from (1)
5. Q(c) Existential instantiation from (2)
6. 𝑃(c) ∧ 𝑄(𝑐) Conjunction from (3) and (5)
7. ∃𝑥 (𝑃(𝑥) ∧ 𝑄(𝑥)) Existential generalization
OR
1
(c) 1) Suppose that the domain of Q(x, y, z) consists of triples x, y, z, 07
where x = 0, 1, or 2, y = 0 or 1, and z = 0 or 1. Write out following
propositions using disjunctions and conjunctions.
i) ∃𝑧¬𝑄(0,0, 𝑧) ii). ∀𝑦𝑄(0, 𝑦, 0)
2)
i) Show that ∃𝑥 𝑃(𝑥) ∧ ∃𝑥 𝑄(𝑥) and ∃𝑥(𝑃(𝑥) ∧ 𝑄(𝑥)) are
not logically equivalent.
ii) Show that ∃𝑥(𝑃(𝑥) ∨ 𝑄(𝑥)) and ∃𝑥 𝑃(𝑥) ∨ ∃𝑥 𝑄(𝑥) are
logically equivalent.
Q.3 (a) For the relation {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)} on the set 03
{1,2,3,4}, decide whether it is reflexive, whether it is symmetric, whether
it is antisymmetric, and whether it is transitive..(Justify your answer if the
property is not satisfied)
(c) 1) Draw the Hasse diagram for the poset ({2, 4, 6, 9, 12, 18, 27, 36, 48, 07
60, 72}, |). Hence find 𝑔𝑙𝑏({60,72}) and all maximal elements.
2) Determine whether the relation with the directed graph shown is
an equivalence relation.
OR
Q.3 (a) Suppose that the relations 𝑅1 and 𝑅2 on a set A are represented by the 03
matrices
1 0 1 1 0 1
M𝑅1 = [1 0 0] and M𝑅2 = [0 1 1]
0 1 0 1 0 0
What are the matrices representing 𝑅1 ∪ 𝑅2 and 𝑅1 ∩ 𝑅2 ?
(b) Use Warshall’s algorithm to find the transitive closures of the relation 04
𝑅 = {(1,4), (2, 1), (2,3), (3,1), (3,4), (4,3)} on {1, 2, 3, 4}
(c) 1) Draw the Hasse diagram for the poset({2, 4, 5, 10, 12, 20, 25}, |). 07
Hence, find the are maximal and minimal elements.
2) Which of these collections of subsets are partitions of
{1, 2, 3, 4, 5, 6}? Justify your answer if it is not a partition.
i) {1, 2}, {2, 3, 4}, {4, 5, 6}
ii) {1, 4, 5}, {2, 6}
2
(b) 1) Define Isomorphic Graphs 04
2) Verify the following graphs are Isomorphic or not (Justify).
Graph -1 Graph-2
OR
Q.4 (a) 1) Define: i) Isolated vertex ii) Null graph 03
2) Identify Isolated vertex/vertices from the following graph
3
Q.5 (a) 1) Define: SemiGroups. 03
2) Let S = {a, b, c, d}. The following multiplication table, define
operations ∙ on S. Is 〈S, ∙〉semigroup? Justify
(c) 1) Define:Ring. 07
2) Write elements of the ring 〈𝑧10 , +10 , ×10 〉. And find −3, −8 , 3−1 , 4−1
OR
Q.5 (a) Consider the set Q of a rational numbers. Let ∗ be the operation on Q 03
defined by a∗ 𝑏 = 𝑎 + 𝑏 − 𝑎𝑏. Find
1) 3 ∗ 4 2) the identity element for ∗.
(c) We are given the ring 〈{𝑎, 𝑏, 𝑐, 𝑑}, +,∙〉 the operations + and ∙ on 𝑅 are as 07
shown in the following table.
+ a b c d ∙ a b c d
a a b c d a a a a a
b b c d a b a c a c
c c d a b c a a a a
d d a b c d a c a a
1) Does it have an identity?
2) What is the zero of this ring?
3) Find the additive inverse of each of its elements
********
4
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) Find the power sets of (i)a , (ii)a, b, c. 03
(b) If f ( x) 2 x, g ( x) x 2 , h( x) x 1 then find (fog)oh and fo(goh). 04
(c) (i) Let N be the set of natural numbers. Let R be a relation in N defined 03
by xRy if and only if x 3 y 12 . Examine the relation for (i) reflexive
(ii) symmetric (iii) transitive.
(ii) Draw the Hasse diagram representing the partial ordering {(a,b)/ a 04
divides b} on {1,2,3,4,6,8,12}.
Q.4 (a) Show that the algebraic structure (G,*) is a group, where 03
G {(a, b) / a, b R, a 0} and * is a binary operation defined by
(a, b) * (c, d ) (ac , bc d ) for all (a, b), (c, d ) G.
(b) Define path and circuit of a graph by drawing the graphs. 04
(c) (i) Show that the operation * defined by x * y x y on the set N of 03
natural numbers is neither commutative nor associative.
(ii) Define ring. Show that the algebraic system (Z 9 , 9 ,9 ) , where 04
Z 9 {0,1,2,3,...,8} under the operations of addition and multiplication
of congruence modulo 9, form a ring.
1
Q.5 (a) Define subgraph. Let H be a subgroup of (Z,+), where H is the set of 03
even integers and Z is the set of all integers and + is the operation of
addition. Find all right cosets of H in Z.
(b) Define adjacency matrix and find the same for 04
(c) (i) Draw the composite table for the operation * defined by x*y=x, 03
x, y S {a, b, c, d }.
(ii) Show that an algebraic structure (G ,) is an abelian group, where 04
1 0 1 0 1 0
G={A,B,C,D}, A ,B ,C ,
0 1 0 1 0 1
1 0
D and is the binary operation of matrix multiplication.
0 1
Q.7 (a) Check the properties of commutative and associative for the operation 03
* defined by x*y=x+y-2 on the set Z of integers.
(b) Define group permutation. Find the inverse of the permutation 04
1 2 3 4
.
3 1 4 2
(c) (i) Show that p q p q is a tautology. 03
(ii) Obtain the d.n.f. of the form ( p q) (p q). 04
********
2
Seat No.: ________ Enrolment No.___________
1
Q.4 (a) Let 〈𝐿, ≤〉 be a lattice. Show that for 𝑎, 𝑏, 𝑐 ∈ 𝐿, following inequalities holds. 07
𝑎 ⊕ (𝑏 ⋆ 𝑐) = (𝑎⨁𝑏) ⋆ (𝑎⨁𝑐)
𝑎 ∗ (𝑏⨁𝑐) = (𝑎 ∗ 𝑏)⨁(𝑎 ∗ 𝑐)
(b) Let 𝐺 = {(𝑎, 𝑏)|𝑎, 𝑏 ∈ 𝑅}. Define binary operation (∗) on 𝐺 as 07
(𝑎, 𝑏), (𝑐, 𝑑) ∈ 𝐺, (𝑎, 𝑏) ∗ (𝑐, 𝑑) = (𝑎𝑐, 𝑏𝑐 + 𝑑). Show that an algebraic structure
(𝐺,∗) is a group.
OR
Q-4 (a) Let 𝐺 be the set of non-zero real numbers. Define binary operation (∗) on 𝐺 as 07
𝑎𝑏
𝑎 ∗ 𝑏 = 2 . Show that an algebraic structure (𝐺,∗) is an abelian group.
(b) Explain the following terms with proper illustrations. 07
a) Directed graphs
b) Simple and elementary path
c) Reachability of a vertex
d) Connected graph.
Q-5 (a) Show that sum of in-degrees of all the nodes of simple digraph is equal to the sum 07
of out-degrees of all the nodes and this sum equal to the number of edges in it.
(b) Let = {1, 2, 3, 4} . For the relation 𝑅 whose matrix is given, find the matrix of the 07
transitive closure by using Warshall’s algorithm.
1 0 0 1
1 1 0 0
𝑀𝑅 = [ ]
0 0 1 0
0 0 0 1
OR
Q-5 (a) Define tree and root. Also prove that tree with 𝑛 vertices has 𝑛 − 1 edges. 07
(b) Define in-degree and out-degree of a vertex and matrix of a relation. Let 𝐴 = 07
{𝑎, 𝑏, 𝑐, 𝑑} and let 𝑅 be the relation on 𝐴 that has the matrix
1 0 0 0
0 1 0 0
𝑀𝑅 = [ ]
1 1 1 0
0 1 0 1
*************
2
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) A committee 5 persons, is to be formed from 6 men and 4 women. In how 03
many ways this can be done when (i) at least 2 women are included, (ii) at
most 2 women are included.
(b) If A 4,5, 7,8,10 , B 4,5,9 and C 1, 4, 6,9 , then verify that 04
A B C A B A C .
(c) Define Functionally complete set of connectives, Principal Disjunctive 07
Normal Form (PDNF). Obtain PDNF for the expression
p q p q q r
Q.3 (a) Define Partition of a Set. Let A 1, 2,3, 4,5 and 03
R 1, 2 , 1,1 , 2,1 , 2, 2 , 3,3 , 4, 4 , 5,5 be an equivalence
relation on A . Determine the partition for R 1 , if it an equivalence
relation.
(b) Draw Hasse Diagram for the lattice S30 , D where S30 is the set of 04
divisors of 30 and D is the relation divides.
(c) a b 07
Show that the set S of all matrices of the form where a, b R is
b a
a field with respect to matrix addition and matrix multiplication.
OR
Q.3 (a) Define Semi Group, Monoid. Give an example of an algebraic structure 03
which is semi group but not monoid.
1
(b) Consider the a relation R defined on A 1, 2,3 whose matrix 04
representation is given below. Determine its inverse R 1 and complement
R' .
1 0 0
M R 1 1 1
0 0 1
(c) Define free variable and bound variable. 07
Rewrite the following argument using quantifiers, variables and predicate
symbols. Prove the validity of the argument.
Q.4 (a) Define Abelian group and prove that the set 0,1, 2,3, 4 is a finite abelian 03
group under addition modulo 5 as binary operation.
(b) Define even permutation. Show that the permutation 04
1 2 3 4 5 6 1 2 3 4 5 6
is odd and is even.
5 6 2 4 1 3 6 3 4 5 2 1
(c) Define Principal Ideal. Find all the principal Ideal of the ring 07
0,1, 2,3, 4,5 , 6 , 6 .
OR
Q.4 (a) Define cut vertex. List out all the cut vertices of the graph given in Figure 03
1.
(b) Define adjacency matrix and path matrix of a graph. Find out adjacency 04
matrix for the graph given in Figure 1.
(c) Define the terms: Simple Graph, Multi – Graph, Weighted Graph, Degree 07
of a vertex, in degree and out degree of a vertex. Illustrate each with an
example.
Q.5 (a) State Lagrange’s theorem and find out all possible subgroups of group 03
1, 1, i, i , .
(b) Define Eulerian graph, Planar Graph. 04
Justify whether the graph given in Figure 1 is Planer or not using Euler’s
formula.
(c) Define Binary tree, Spanning tree, Minimal Spanning tree, Find the 07
minimal spanning tree for the weighted graph given in Figure 2.
OR
Q.5 (a) Define Cyclic group, Normal subgroup. Illustrate with an example. 03
(b) Form a binary search tree for the data 16,24,7,5,8,20,40,3. 04
(c) Explain Post order traversal. Given the postorder and inorder traversal of 07
a binary tree, draw the unique binary tree.
Postorder: d e c f b h i g a
Inorder: d c e b f a h g i.
2
Figure 1 Figure 2
***************