Ds Cat Ques Paper
Ds Cat Ques Paper
13. i) Convert the given expresion to postfix using stack: B+C-{[XIS *M] +L} (5) (CO2] (K3)
ii)Evaluate the postfix expression using stack: 5 10 73+8* +3 +* 5 +. (5) [CO2) [(K3]
14. ldentify the data structure of Queue in which last node will directly (10) (CO2]|(K2)
communicate with first node and describe its algorithm with an example.
Bloom'e Remenbering Understanding Applying Analysing Evaluating Creating
Taxonomy Level (K1) (K2) (K3) (K4) (K6) (K6)
Percentage 10 40 50
22ALR}D
10 15
20 25 30 35
45
6 Write the advantages of binary search tree ver s: * tree. Give an example [CO3] [K2]
7. Define full binary tree with suitable example. [CO3][K2]
8 Write the preorder and postorder traversal for the below binary tree. [CO3]K3]
8
9 Specify the types of rotations in AVL tre. [CO3] [K1]
10. What do you mean by balance factor of a node in AVL tree? [CO3][K1]
Part - B (3 × 10 = 30 Marks)
ANSWER ANYTHREE QUESTIONS
11.
Implement a doubly linked list to perform the following operations and write|(10) [CO1) |[K3
the sample output.
a. Insertion at begin
b. Delete at middle
C. Display the list
12. |Write routines to perform the following operations in a binary search tree. (10) [CO03] [K2]
a. Insertion
b. Inorder Traversal
c. Find Max
13. i) Construct the expression tree for given infix expression. (5) [CO3](K3]
a*bte/m*k-ylz
ii)Construct a binary tree from the given sequence and traverse the tree in (5) [CO3] [K3]
preorder:
Postorder:9,1,2, 12,7,5,3, 11,4,8
Inorder: 9,5,1,7,2,12,8,4,3,11
14. Construct an AVL tree with the following elements. (10) [CO3] (K3]
|2,5,4,6,7,9,8,3,1, 10. Delete 10,2 and 1.
2
22 ALRIIO
KONGU ENGINEERING COLLEGE, PERUNDURAI 638 060
CONTINUOUS ASSESSMENT TEST II
(Regulations 2022)
Month and Year: August 2023 Roll Number:
Programme : B.Tech Date : 07.08.2023
Branch : AI-MIL & AI-DS Time : 09.00 - 10.30 AM
Semester :2
Course Code :22ADC21 Duration : 1.30 Hours
Course Name : Data Structures Max. Marks :50
PART- A (10 x 2 = 20 Marks)
ANSWER ALL THE QUESTIONS
1 Define strongly connected graph with an example.
[C04] [K1]
2. Compare Breadth First Search and Depth First Search. [C04] [K2]
3. Write the adjacency matrix for the given undirected graph
[C04] [K2]
12.
Find the articulation point for the given undirected graph by considering (5) [CO4]| [K3]
source node as 0.
1)Find the strongly connectedcomponents from the below graph. (5) [C04]| [K3]
13. i) Perform shell sort for the following elemer:s. (5) [CO5]| [K3]
35,33,42,10,14, 19,27,44
i)Write a program to perform binary searci: (5) [C05][K2]
14. Suppose a set of numbers = (3, 2, 9, 6, 11, 13,7, 12} is stored into an initially (10) [CO5] [K3]
empty hash table of size 10. Now, assume that a hash function His defined
as Hi(K)= 2K+3. Draw the resultant hash table that is obtained after
applying the ollowing collision resolution technique.
a. Separate Chaining
b. Linear Probing
c. Quadratic Probing
d. Double Hashing where Ha(K)=3K+1
Bloom's Remembering Understanding Applying Analysing Evaluating Creatiug
Taxonomy Level (K1) (K2) (K3) (K4) (K5) (K6)