Data Structure Assignment-CSE
Data Structure Assignment-CSE
Shiplu Das
Assistant Professor, CSE
Adamas University Data Structure and Algorithm
ASSIGNMENT-1
ASSIGNMENT-2
ASSIGNEMT-3
5. What is Binary tree and characteristics of binary tree with proper example.
6.Construct a tree for the given inorder and postorder traversals
Inorder DGBAHEICF
Postorder GDBHIEFCA
8. Give the Preorder, Postorder and Inorder traversal of the tree given in below fig.
9. Construct binary search tree for the following data Find its inorder, preorder and postorder traversal
sequence from the BST. Show all the steps
a. 10,3,15,22,6,45,65,23,78,34,5.
b. 50, 60, 25, 40, 30, 70, 35, 10, 55, 65, 5
c. 40, 65,25, 55, 10,70,30,50,15,80,75
d. 45,56,39,12,34,78,54,67,10,32,89,81 0
e. 60, 15, 4, 30, 70, 65, 10, 95, 25, 34
10. Insertion and deletion of binary search tree. Draw the tree after each operation.
11. Define Binary tree using sequential and Linked representation.
12. Define weight balanced binary tree with proper example.
13. Define Complete and Full binary tree with proper example.
14. Define Balance factor.
15. Define LL, RL, LR, RR rotation of AVL Tree.
16. Define height of the binary tree. Define height balanced tree with its advantages. Construct
a height balanced binary tree (AVL tree) for the following data
42,06,54,62,88,50,22,32,12,33
17. Define height balanced tree. Construct a height balanced binary tree (AVL tree) for
Mr. Shiplu Das
Assistant Professor, CSE
Adamas University Data Structure and Algorithm
thefollowing data 32,16,44,52,78,40,12,22,02,23
18. Define an AVL tree. Obtain an AVL tree by inserting one integer at a time in the following
sequence. 150, 155, 160, 115, 110, 140, 120, 145, 130, 147, 170, 180. Show all the steps.
19. How delete the data from AVL tree with proper example.
20. Define a B-Tree tree. Obtain a B-Tree with order 4 by inserting one integer at a time in
the followingsequence. 150, 155, 160, 115, 110, 140, 120, 145, 130, 147, 170, 180. Show
all the steps.
21. Define a B-Tree tree. Obtain a B-Tree with order 4 by inserting one integer at a time in the
followingsequence. 15, 18, 16, 65, 10, 18, 80, 45, 30, 47, 70, 80. Show all the steps.
22. Define Red-Black Tree with proper example.
23. Deference between B-Tree and Binary Tree.
_____________________________________________________________________________
Mr. Shiplu Das
Assistant Professor, CSE
Adamas University Data Structure and Algorithm