Question: Binary Search Tree HW Part 1. [2 pts] Show the BST after inserting nodes with key values 5, 1, 10, 4, 16, 17, 21 in

Binary Search Tree HW

Part 1. [2 pts] Show the BST after inserting nodes with key values 5, 1, 10, 4, 16, 17, 21 in this order.

Part 2. [3 pts] What is the minimum possible height of a BST with the set of data provided in question #1? In what order then the data should be provided in question #1 such that after insertion you obtain a BST with minimum possible height.

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!