DDS(2022S)
DDS(2022S)
Page 1 of 2
Q.3 A) Write an algorithm for circular link list for (1) Insertion of a node at any given position (07)
(2) Deletion of the node at the end.
B) Write a recursive function for Tower of Hanoi problem. Show the steps for disk n=3. (08)
OR
B) Write an algorithm for simple link list for (1) Deletion of a node at any given position (08)
(2) Insertion of the node at the end.
Q.4 A) Examine the algorithm for Insertion sort and sort the following array: (07)
25,75,85,98,80,30,15,100,95
OR
A) Write Merge Sort algorithm. Apply the algorithm to the following elements: (07)
10,5,28, 7, 39, 310, 55,15,1
B) Discuss algorithm of Breadth First Search (BFS) traversal for a Graph. Explain with an (08)
example.
Page 2 of 2