Question: Question 2 - Binary Search Trees You are given the following numbers: 45, 70, 75, 30, 20, 85, 5, 35, 95, 40, 25, 80. 1)

Question 2 - Binary Search Trees You are given the following numbers: 45, 70, 75, 30, 20, 85, 5, 35, 95, 40, 25, 80. 1) Insert these numbers in a Binary Search Tree, and draw the tree. 2) Write the node sequence for PreOrder traversal. 3) What is the height of this tree? Explain your answer. 4) What is the depth of 5? Explain. 5) What is the height of 40? Explain. 6) Delete 35, and draw the updated tree. 7) Work on the updated tree, and delete the root. Draw the updated tree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
