MCS-021__merged
MCS-021__merged
MCS-021__merged
MCS–021
No. of Printed Pages : 3 MCS-021
M. C. A. (REVISED)/B. C. A. (REVISED)
(MCA/BCA)
Term-End Examination
June, 2023
MCS-021 : DATA AND FILE STRUCTURES
Weightage : 75%
P. T. O.
[2] MCS-021
MCS–021
No. of Printed Pages : 3 MCS-021
MCS-021 1 P.T.O.
(c) Write a ‘C’ program for insertion and
deletion of node in a link list. 10
MCS-021 2
(b) Write Pseudo code for Bubble Sort
Algorithm. Sort the following list using
bubble sort in ascending order :
35, 39, 10, 8, 78, 92, 20, 50
Also, write the steps involved. 10
MCS-021 3 P.T.O.
No. of Printed Pages : 4 MCS-021
Term-End Examination
December, 2022
MCS-021 1 P.T.O.
(c) Write the steps involved to find the
shortest path from Vertex ‘1’ of the graph
given below by using Dijkstra’s algorithm : 10
MCS-021 2
1
(b) Differentiate between the following : 42 =10
2
(i) Heap and Tree
(i) LL
(ii) LR
(iii) RR
(iv) RL
MCS-021 4
No. of Printed Pages : 3 MCS-021
Term-End Examination
December, 2021
MCS-021 1 P.T.O.
(c) Find the Adjacency Matrix for the
following graph : 5
MCS-021 2
2. (a) Write the Depth First Search (DFS)
algorithm and travel the following graph
using DFS algorithm : 10
MCS-021 3 P.T.O.
[2] MCS-021
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
(c) Write linear search algorithm and find its 5. (a) Explain the difference between row-major
time complexity. 5
representation of an array and column
3. (a) What is a Red-Black Tree ? Explain its
major representation of an array with the
properties. 6
help of a suitable example. 10
(b) Explain Direct-File organisation. 6
(c) Sort the following list using bubble sort in (b) Write short notes on the following : 5 each
MCS-021
P. T. O.
No. of Printed Pages : 3 MCS-021
Term-End Examination
February, 2021
MCS-021 1 P.T.O.
(d) Traverse the following tree in Preorder and
Postorder. 10
MCS-021 2
(b) What is sequential file organization ? What
are its disadvantages ? Explain how
indexed sequential file organization is
better than sequential file organization. 10
MCS-021 3 P.T.O.
No. of Printed Pages : 4 MCS-021
M.C.A. (REVISED)B.C.A. (REVISED)
(MCA/BCA)
Term-End Examination
June, 2020
MCS-021 : DATA AND FILE STRUCTURES
Weightage : 75%
of it. 10
121 MCS-021
element.
the list.
the matrix. 10
10
13 ] MCS-021
sorting : 10
P. T. O.
[4] MCS-021
complexity of DFS. 10
circular queue. 10
2493 0
MCS-021
1364424
No. of Printed Pages : 6 MCS-021
MASTER OF COMPUTER
APPLICATION (MCA)
Term-End Examination
December, 2019
MCS-021 : DATA AND FILE STRUCTURES
2 + 7n
3n
(iv) 4"
615 (B-28) P. T. 0.
[2] MCS-021
f(int x)
if (x < 2) return 1
else
return f (x — 1) + f (x -- 2)
623 + — 382 I + * 2 * * 3 +
jadnosmfjkl
MCS-021
I3I
(f) Apply the Bubble sort algorithm to sort the
following list. What is the time complexity
of bubble. sort ? 8
35 30 10 40 25 28 15 9
0 1 2 3 4
0 0 0 4 0 0
1 0 3 0 0 1
2 0 0 0 5 0
3 0 0 2 1 0
4 0 0 6 0 0
5 0 0 5 4 0
• 5 MCS-021
approach : 10
INTERNATIONAL
example. 10
P. T. O.
[6] MCS-021
MCS-021 12,000
No. of Printed Pages : 4 MCS-021
Term-End Examination
MCS-021 2
(h) Explain how a polynomial can be
represented using an array. Write an
algorithm to add two polynomials.
MCS-021 3 P.T.O.
(c) Draw the graph corresponding to the
following adjacency matrix : 3
a
a 0 1 1 0
b 1 0 0 1
c 1 0 0 1
d 0 1 1 0
MCS-021 4 8,000
No. of Printed Pages : 3 MCS 021
- I
MCA (Revised) / BCA (Revised)
Term-End Examination
December, 2018
C.19 e,3 :FA
MCS-021 2
(b) Find Minimum Cost, Spanning Tree
(MCST) of the following graph using Prim's
algorithm. Show all the intermediate steps. 10
10
12
MCS-021 3 11,000
No. of Printed Pages : 3 I MCS-021 I
MCA (Revised) / BCA (Revised)
Term-End Examination
n June, 2018
ei e4
v2 e3 v3
Figure
(ii) Draw all non-similar trees with
exactly six nodes. 5
MCS-021 2
5. Write short notes on the following : 4x5=20
MCS-021 3 10,000