Dec - 2021 MCS-21
Dec - 2021 MCS-21
om
MCA (Revised) / BCA (Revised)
Term-End Examination
.c
December, 2021
ru
MCS-021 : DATA AND FILE STRUCTURES
u
tG
Time : 3 hours Maximum Marks : 100
en (Weightage : 75%)
stack : 10
X * Y * (Z|P – Q) * T + R
IG
MCS-021 1 P.T.O.
(c) Find the Adjacency Matrix for the
following graph : 5
.c om
uru
tG
(d) Write an algorithm to create a doubly-linked
list and addition of elements to it. 5
en
(e) Find the minimum cost spanning tree for
the following graph using Prim’s algorithm :
m
ign
ss
UA
3
NO
process. 10
MCS-021 2
2. (a) Write the Depth First Search (DFS)
algorithm and travel the following graph
om
using DFS algorithm : 10
.c
ru
(b) Explain Indexed Sequential File
organization with the help of an example.
u
Also write its advantages. 10
tG
3. (a) Write an algorithm for addition of two
polynomials. en 10
(b) What is Heap Sort ? What is its complexity ?
Explain how a heap is created using an
example. 10
m
(i) Forest
(ii) Priority Queue
IG
MCS-021 3 P.T.O.