Question: In the language java PART T 7) Given the following list of values: 45, 54, 89, 32, 23, 58, 65, 76, 88, 55, 42, 12,
PART T 7) Given the following list of values: 45, 54, 89, 32, 23, 58, 65, 76, 88, 55, 42, 12, 38, 34, 57,79, 90, 66 a) Draw the binary search tree that would evolve by inserting the values into the tree in the order in which they are presented b) Draw the array representation of this binary scarch trec. You may use notation as long as you label the array cells c) In what order would you insert the valucs so as to get a complete binary scarch tree? d) In what order would you insert the values so as to get a linked list that uses left references only? Right references only? e) How many elements would be needed for each of the binary trees described in part d if implemented as arrays? DWhy are binary search tree more often implemented using linked structures rather than arrays? N CA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
