Question: A BST(binary search tree) is created (it is initially empty) where the key associated with the data in each node is an integer. Elements are

A BST(binary search tree) is created (it is initially empty) where the key associated with the data in each node is an integer.

Elements are added to the BST with these keys in this order: 5, 4, 8, 7, 6, 9, 3, 2, 1.

(a)Draw the resulting BST.

(b)What is the height of the tree?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!