Trees Assignment Question
Trees Assignment Question
Assignment Question
4. Explain the concept of Binary Search Tree(BST)? Make a BST for the following
sequence of numbers 45,36,76,23,89,115,98,39,41,56,69,48.
Traverse the tree in Preorder, Inorder and Postorder.
5. Given the following Inorder and Preorder traversal use following sequence to
construct a binary tree:
Inorder sequence: D, G, B, H, E, A, F, I, C
Preorder sequence: A, B, D, G, E, H, C, F, I.
6. Write a non-recursive pseudo code for post order traversal of binary tree.
7. Write a non-recursive pseudo C++ code for any DFS traversal of binary tree.
8. Write a function for deletion of an element from threaded binary search tree.