June - 2021 MCS-021
June - 2021 MCS-021
June - 2021 MCS-021
m
from circular queue. 10
o
(MCA/BCA)
.c
(c) Describe Big O and Ω notations in detail.
Term-End Examination
June, 2021
ru 10
G u
(d) Find minimum cost spanning tree for the
Time : 3 Hours Maximum Marks : 100
Weightage : 75%
e algorithm : 10
s ig
rest.
A s
(iii) All algorithms should be written near to
‘C’ language.
O U
N
IG
1. (a) Write algorithm for push and pop operations 2. (a) What is AVL tree ? Explain how a node is
of a stack. Also write algorithm to check inserted into an AVL tree and how a node
P. T. O.
[3] MCS-021 [4] MCS-021
(b) Write any five differences between arrays (b) Write an algorithm to implement singly
o m
5. (a) Explain the difference between row-major
u
r
major representation of an array with the
properties. 6
G u
help of a suitable example. 10
ascending order : 8
e (i) Adjecency matrix representation of
m
graph
n
25, 29, 8, 68, 92, 30, 40
(ii) Binary search
g
Show intermediate steps of the process.
4. (a) Traverse the following Binary tree in :
s
10
i
(i) Pre-order
(ii) Post-order
A s
O U
N
IG
MCS-021
P. T. O.