Gujarat Technological University
Gujarat Technological University
___________
Q.2 (a) 0 0 1 1 0 1 07
Let A = [1 0 1] and B = [1 1 0]
0 1 1 0 0 1
Compute, AB, AB, AT, BT ,AʘB
(b) Let X = {1,2,3,4} R={<x,y> | x>y}. Draw a graph of R and also give its matrix. 07
Check whether the given relation an equivalence relation?
OR
(b) (1) Write a statement in English corresponding to the following symbolic 04
statements:
P(x) : x is integer
Q(x) : x is a rational number
R(x) : x is prime integer
1) P(5)
2) ∀x ~P(x)
3) Ǝx R(x)
4) Ǝx ~Q(x)
(2) Use a truth table to determine whether the following statement form is valid:
pq 03
pr
therefore, p q r
Q.3 (a) Let X={ball, bed, dog, let, egg} and let the relation R be given as: R={<x,y> | x,y 07
X xRy, if x and y contain some common letters.}
Identify a relation. Draw a graph for R and find maximal compatibility block for
the same.
(b) Let X={2,3,6,12,24,36} and the relation ≤ be such that x≤y if x divides y. draw 07
the Hasse Diagram of < x,≤ >.
OR
Q.3 (a) Let X={1,2,3}, f,g,h and s be function X to X given as 07
1
f = {<1,2>, <2,3>, <3,1>}
g = {<1,2>, <2,1>, <3,3>}
h = {<1,1>, <2,2>, <3,1>}
s = {<1,1>, <2,2>, <3,3>}
Find f·h·g, g·s, s·s, f·g, g·f
Are functions s and f invertible?
(b) Prove that : A(BC) ≡ (AB) (AC) 07
Q.5 (a) Define sub-graph. Find all sub-graphs for the given graph. 07
(b) Draw di-graph and find in-degree and out-degree of each vertex from the given 07
adjacency matrix. Use adjacency matrix, find total no. of path of length 1 and 2
between each vertex.
1 1 1
A =[1 1 1]
1 1 1
OR
Q.5 (a) Define Tree. Draw a graph of tree represented by : 07
(A(B(C(D)(E))(F(G)(H(J))))(K(L)(M(N)(P(Q)(R)))))
Obtain a binary tree corresponding to it.
(b) On a tree in the above question, perform the following traversals: 07
1. Pre-order traversal
2. Post-order traversal
3. In-order traversal
***********