CST 3 Sem Data Structures 307 3 N Jun 2022
CST 3 Sem Data Structures 307 3 N Jun 2022
CST 3 Sem Data Structures 307 3 N Jun 2022
Full Marks: 60
Time Allowed: 3 Hours
following questions from Group-A, B & Cas directed.
Answer the
GROUP-A
alternative (Any 10) Ix 10-10
1. Choose the correct
Structs c) Trees
)Which data structure is defined
as a collection of similar data elements? a) Arrays b)
d) Graphs.
element on the stack? a) Pop b)Push c) Peek d) isEmpty.
ii) Which function places
an
6 3 24+- *? a) 1 b) 40 c) 74 d)-18
vi) What is the value of the postfix expression
be performed in the Selection Sort algorithm for
vii) What is the maximum number of swaps that can
'n' number of elements? a) n-1 b) n c) 1 d)n^
In the connected graph G, what is the value of rad(G) and diam(G)? a) 3, 2 b) 2, 2 c) 3, 3 d) 2,3
xii) given
Ix 10=10
2. Fill in the blanks (any ten):
6x1
5. Answer the question (any one):
Data Structures?
the differences between linear and nonlinear
a) What is Data Structure? Write down
b) What is Explain with a suitable example.
ADT?
c)Define a graph. Explain different representation of graph.
6x
6. Answer the question (any one): function.
a) Explain Priority queue and its types.
What will be the value of A (1,5) by using Ackerman
in an AVL tree
b) Write an algorithm to insert a node
2
c) Given the Pre-order and In-order traversal of binary tree. Draw the tree representation and write its
Post-order traversal-
Pre-order: B D E J C F G K
In-order: I B E J A F C K G