191CSC303T - DS
191CSC303T - DS
12. State the difference between array and linked list. CO1 K2
17. Find the adjacency matrix and adjacency list of the given graph? CO4 K3
18. What is strongly connected and weakly connected graph? Give example CO4 K1
5,3,2,9,8,7,6,1,4
20. Write the routine for simple hash function. CO5 K1
PART C – (5 x 14 = 70 Marks)
Compulsory Question
21. Develop routine to perform insertion, deletion of first and last node CO1 K5
from singly linked list.
24. Illustrate with the all rotations and construct the AVL trees with the CO3 K3
following values 15, 20, 24, 10, 13, 7, 30, 36, 25.
25. Write the routine for Dijkstra’s algorithm and find the shortest path for CO4 K4
the given graph with start vertex A.
26. Construct minimum spanning tree for the given graph using Prim’s and CO4 K4
Kruskal’s algorithm. Start vertex 6.
27. Construct the quick sort with algorithm for the following set of CO5 K5
numbers 62, 22, 36, 6, 79, 26, 75, 13, 31, 76 and analyze the time
complexity of quick sort.