Question: Consider the following BST: 7 / 4 10 / / 2 6 8 (a) Draw the structure of the BST for each call

Consider the following BST:

7

/ \

4 10

/ \ /

2 6 8

(a) Draw the structure of the BST for each call involved in adding the value "5" to the tree. Indicate which node is being pointed at during each call.

(b) Draw the structure of the BST for each call involved in deleting the value "4" from the tree. Indicate which node is being point at during each call. Use the initial 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!