DSA w23
DSA w23
P. Pages : 2 GUG/W/23/13802
*7389*
Time : Three Hours Max. Marks : 80
_____________________________________________________________________
Notes : 1. All questions are compulsory.
i) (A+B*C) X (E/F)+G
OR
i) Time complexity.
3. a) What is singly linked list? Write a function to insert a node at the given positions. 8
OR
5. a) What are structures? Create a structure for students database. Take attributes as 8
[ROLLNO, Name, Marks, Address]
OR
6. Describe singly linked list with example and memory representation. Also write functions 8
for the following.
GUG/W/23/13802 1 P.T.O
7. a) Describe the following. 8
i) Priority queues.
ii) Deques.
OR
8. a) Explain prim’s algorithm to find minimum cost spanning tree with suitable examples. 8
b) Write a complete algorithm for Breadth first search with suitable example. 8
b) Write the complete snapshots to sort the elements by using Bucket sort algorithm. 8
24, 47, 80, 40, 10, 50, 68, 90.
OR
10. a) What is Hashing? What is collisions? Explain linear probing technique in collision 8
resolution technique.
b) What is Heap sort? Sort the following list of an element using max heap tree 6, 5, 3, 1, 8, 8
7, 12, 4.
**********
GUG/W/23/13802 2