Important DS UNIT 4
Important DS UNIT 4
ASSESSMENT TEST
Date of Assessment:
Solution:
4 The order of nodes of a binary tree in inorder and postorder traversal are CO3 10 2022-23
as follows:
In order: B, I, D, A, C, G, E, H, F.
Post order: I, D, B, G, C, H, F, E, A.
(i) Draw the corresponding binary tree.
(ii) Write the pre order traversal of the same tree.
Discuss left skewed and right skewed binary tree. Construct CO3 10 2022-23
5
an AVL tree by inserting the following elements in the order
of their occurrence:
60, 2, 14, 22, 13, 111, 92, 86.
What is B-Tree? Write the various properties of B- Tree. Show the CO3 10 2022-23
6 results of inserting the keys F, S, Q, K, C, L, H, T, V, W, M, R, N, P, A,
B in order into an empty B-Tree of order 5.
What is the significance of maintaining threads in Binary Search Tree? CO3 10 2021-22
7 Write an algorithm to insert a node in thread binary tree.
8 (i) Why does time complexity of search operation in B-Tree is better than CO3 10 2021-22
Binary Search Tree (BST)?
(ii) Insert the following keys into an initially empty B-tree of order 5
a, g, f, b, k, d, h, m, j, e, s, i, r, x, c, l, n, t, u, p
(iii) What will be the resultant B-Tree after deleting keys j, t and d in
sequence?
9 Write an iterative function to search a key in Binary Search Tree CO3 5 2021-22
(BST).
10 If the in order of a binary tree is B, I, D, A, C, G, E, H, F and its CO3 10 2020-21
post order is I, D, B, G, C H, F, E, A then draw a corresponding
binary tree with neat and clear steps from above assumption.
11 Write Short notes of following CO3 10 2020-21
(a) Extended Binary Trees (b) Complete Binary Tree
(c) Threaded Binary Tree.
12 Insert the following sequence of elements into an AVL tree, starting CO3 10 2020-21
with empty tree 71,41,91,56,60,30,40,80,50,55 also find the minimum
array size to represent this tree.
13 What is the difference between a binary search tree and heap? For a CO3 10 2019-20
given sequence of numbers, construct a heap and a BST.
34,23,67,45,12,54,87,43,98,75,84,93,31
14 Can you find a unique tree when any two traversals are given? Using the CO3 10 2019-20
following traversals construct the corresponding binary tree:
INORDER: H K D B I L E A F C M J G
PREODER: A B D H K E I L C F G J M
Also find the post order traversal of obtained tree
15 What is a B-Tree? Generate a B-Tree of order 4 with the alphabets CO3 10 2019-20
(letter) arrive in the sequence as follows:
agfbkdhmjesirxclntup
16 What is height balanced tree? Why height balancing of Tree is required? CO3 7 2018-19
Create an AVL Tree for the following elements:
a, z,b,y,c,x,d,w,e,v,f.
17 Write an algorithm for deletion of an element in binary search Tree. CO3 7 2018-19