Gujarat Technological University
Gujarat Technological University
___________
MARKS
Q.1 (a) Compare static memory allocation and dynamic memory allocation. 03
(b) Differentiate: 04
(i) primitive and non-primitive data structures
(ii) linear and non-linear data structures
(c) What is time and space complexity? Explain asymptotic notations in 07
detail.
Q.4 (a) Define complete binary tree and almost complete binary tree. 03
(b) What is a graph? Explain various representations of graphs. 04
(c) What is a binary search tree? Create a binary search tree for inserting the 07
following data.
50, 35, 100, 25, 41, 120, 105, 46, 90, 95
Explain delete operation for above tree.
OR
Q.4 (a) Discuss the properties of a B-Tree. 03
(b) Construct a binary tree from the traversals given below: 04
Inorder: 5, 8, 11, 12, 13, 16, 15, 19, 18, 21
Postorder: 5, 11, 12, 8, 16, 18, 21, 19, 15, 13
1
(c) What is a minimum spanning tree? Explain Kruskal’s algorithm for 07
finding a minimum spanning tree.
*************