Question: Insert the following values in the given order into a Binary Search Tree and use the resulting BST in the next 5 questions. 15 8
Insert the following values in the given order into a Binary Search Tree and use the resulting BST in the next 5 questions.
15 8 3 6 23 9 11 10 20 13 5
a. What is the height of the resulting Binary Search Tree?
b. What is the depth of the node that stores the value 11?
c. Is there a path from the node storing the value 15 to the node storing the value 5? If so, show the path.
d. Is there a path from the node storing the value 8 to the node storing the value 20? If so, show the path.
e. Is there a path from the node storing the value 8 to the node storing the value 10? If so, show
the path.
f. What is the largest possible height for a Binary Search Tree with 8 nodes?
g. What is the smallest possible height for a Binary Search Tree with 8 nodes?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
