II.(e)Ill.(a)(b)IV.(a)(b)
V.
(a)VI.(b)(c)(a)(b)2
",I
PARTB
(a)(b)(4
x
15'"60)
--.---
If
p,q
and
r
aretrue,findthetruthvalueoftheproposition
(p
V
q)/\P/\
r
V
q.
(3)Determinewhethertherelationdefmedonthesetofpositiveintegersisreflexive,symmetric,antisymmetric,transitiveand/orapartialorder(i)
(x,y)
E
R
if
2
divides
x+
y
(ii)
(x,y)
E
Rif3
divides
X+
y.
(4)Let
R
betherelationonthesetofeight-bitstringsbys.Rs,providedthat
51
and
S2
havethesamenumberofzeros.(i)Showthat
R
is
an
equivalencerelation
(ii)
How
many
equivalenceclassesarethere?
(iii)
Listonememberofeachequivalenceclass.
OR
(8)StateandprovethegeneralizedDeMorgan'slawsforlogic.ConsiderA
=
B
=
C
=
Randlet
f:
A
-)0
Band
g:
B
-)0
C
be
definedby
f(
)
=
X
+
9
and
g
(y)
=
y2
+
3.
Findthefollowingcompositionfunctions.
(i)
fof(a)
(ii)
gog(a)
(iii)
fog(b)
(iv)
gof(b)
(v)
gof(
4)
(vi)
fog(
-4).
(9)(6)
OR
Differentiatebetweenanalysisandcomplexityofalgorithms.Explainthedifferentnotationsforrepresentingcomplexity.Findthecomplexityof
2n
+
3log,
n.
OR
Solvetherecurrencerelation
an
=
-8a
n_
1
-16a
n_
2
subjecttoinitialconditions
ao
=
2,
a
1
=
-20.
StatethePigeonHolePrinciple.Twofairdicearerolled.Findtheprobabilityofgettingdoublesorthesumof
5.
(10)(5)(7)(5)(3)Findthelengthoftheshortestpathandashortestpathbetweeneachpairofverticesintheweightedgraph.
b
:G
h
Q.·D·"
I
(i)a,f(,(ii)
bj
J
Drawtheundirectedgraphrepresentedbyincidencematrix
Ml
asshownbelow.(10)ele2e3e4ese6
a
01001
1
b
01
1
01
0
c
000101
d
1
00
00
0
(5)
e
1
001
0
0
OR
(Contd..
.3)