Dsa 22
Dsa 22
MCA
(SEM II) THEORY EXAMINATION 2021-22
DATA STRUCTURES & ANALYSIS OF ALGORITHMS
SECTION A
2
(h) What are threaded binary tree? 4
13
_2
(i) How the graph can be traversed using Breadth First Search (BFS)? 5
2.
P2
24
2E
5.
SECTION B
.5
P2
17
2. Attempt any three of the following: 10*3 = 30
Q
|1
Qno Questions CO
(a) What is doubly linked list? Write a function to traverse a doubly linked 1
5 3
(c) Use heap sort algorithm to sort the following sequence: {8, 5, 45, 24, 3
36, 11, 43, 21}. What is the time complexity of the algorithm?
2
SECTION C
3. Attempt any one part of the following: 10*1 = 10
Qno Questions CO
(a) Write a function or algorithm to add two Polynomials using linked list. 1
(b) Define header linked list. Write a function to perform insertion at end 1
in a singly linked list.
MCA
(SEM II) THEORY EXAMINATION 2021-22
DATA STRUCTURES & ANALYSIS OF ALGORITHMS
2
13
_2
2.
P2
Qno Questions CO
24
(a) How BST is different from sorted array? Discuss the process to find an 4
2E
5.
element in BST?
.5
P2
|1
Qno Questions CO
9:
(a) What is minimum spanning tree (MST)? Draw MST of the following 5
:0