Question: [ 4 pts ] Assume that you need to keep track of some data. To store those data, you have the following options: A )
pts Assume that you need to keep track of some data. To store those data, you have the
following options:
A A linked list maintained in sorted order.
B A linked list of unsorted records.
C A binary search tree.
D An array maintained in sorted order.
E An array of unsorted records.
For each of the following scenarios, which of the above choices would be the best ie you will
pick Justify your answer.
The records are guaranteed to arrive in sorted order from lowest to highest ie whenever a
record is inserted, its key value will always be greater than that of the last record inserted A
total of inserts will be interspersed with a maximum of searches.
The records arrive with values having a uniform random distribution ie the BST is likely
to be well balanced in case you want to use it insertions are performed, followed by
searches.
The records arrive with values having a uniform random distribution ie the BST is likely
to be well balanced in case you want to use it insertions are interspersed with
searches.
The records arrive with values having a uniform random distribution ie the BST is likely
to be well balanced in case you want to use it insertions are performed, followed by
searches.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
