subject

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 above choices would be the best (i. e. you will pick)

1. The records are guaranteed to arrive already sorted from lowest to high- est (i. e., whenever a record is inserted, its key value will always be greater than that of the last record inserted). A total of 1000 inserts will be interspersed with 1000 searches.
2. The records arrive with values having a uniform random distribution (so the BST is likely to be well balanced). 1,000,000 insertions are performed, followed by 10 searches.
3. The records arrive with values having a uniform random distribution (so the BST is likely to be well balanced). 1000 insertions are interspersed with 1000 searches.
4. The records arrive with values having a uniform random distribution (so the BST is likely to be well balanced). 1000 insertions are performed,

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
You know the right answer?
Assume that you need to keep track of some data. To store those data, you have the following options...
Questions
question
Spanish, 03.12.2021 14:00
question
Mathematics, 03.12.2021 14:00
question
Mathematics, 03.12.2021 14:00
question
Physics, 03.12.2021 14:00
Questions on the website: 13722361