Be Computer Engineering Semester 3 2023 December Data Structurerev 2019 C Scheme
Be Computer Engineering Semester 3 2023 December Data Structurerev 2019 C Scheme
Q.3. A,) Write a prograrn in C to rmplement queLre ADT using linked list. I l0l
B) Construct ari AVL tree by inserting the follow'ing elements in the given ir0 j
Q.4 .{) Write Cl tunction for tsFS graph traversal. Show the stepwrse BFS traversal [ 0]
w,ith the help of data structures for the lollowing graph:
Q.5. .{) Build a Binary Search Tree, grven the fotlowing sequences: [05]
Inorder'" 35. 41. 48. 52, 57, ,-2^ 79, 85, 86, 90
Preorder: 57, 41, 35. 52, 48, 90, 72,85,79, 86
B) What is topoiogical sorr? Explain Topological Sorling with an example, l0sl
, 39186 Page 1 of 2
C) Wira.t ;s coliision'/ Using linear probing, insert the following values in the t10]
hash table of size 1l & count the no. of collisions:
83. 53, 64. 25, 39, 96, 12,7 l.
85 t02
JL 59 92 105 120
39186 Page 2 of 2