DSC Cat 2 Set 1
DSC Cat 2 Set 1
K1
Part – A (Answer All the Questions) - 6 X 2 = 12 Marks CO to Marks
K6
A1 Define peek() operation. 3 K1 2
A2 What are the applications of Queue? 3 K2 2
A3 Differentiate Single rotation and double rotation in AVL tree. 4 K2 2
A4 Define max heap with suitable example. 4 K1 2
A5 State Bi-connected graph with example. 5 K1 2
A6 Trace the applications of graph? 5 K2 2
K1
Part – B (Answer All the Questions ) - 3 X 16 = 48 Marks CO to Marks
K6
B1 (a) Write a C program to implement following ADT operations 4 K3 16
of Binary Search Tree.
1.Insertion
2. Deletion
3. Find
4. Findmin and Findmax
6. Display
(OR)
B1 (b) Construct an AVL tree for the following data 13, 8, 5, 9, 4, 6, 4 K3 16
12, 2, 1 and 3.Explain about AVL rotation.
B2 (a) Differentiate BFS and DFS with suitable example. 5 K2 16
(OR)
B2 (b) Write a C program to implement topological sort with proper 5 K2 16
example.
B3 (a) (i) Explain about euler circuit with proper example. 5 K2 4
(ii) Construct Expression tree for a b c * + d e * f + g * + 4 K3 4
(iii) Explain queue operation with suitable program. 3 K3 8
enqueue() - 4,17,13,21,9,2
dequeue() – element 4
(OR)
B3 (b) (i) Sort the given digraph using topological sort using source 5 K3 4
removal algorithm.