subject

Below, for each situation described in the left column, select the most appropriate data structure to use from the right column. You do not know the total number of items (keys) to be inserted, but you may assume that both hashCode and compareTo are fast (constant time). Note: Some may be used more than once while others might not be used at all. You need to provide put(key, value), get(key) and delete(key) operations and you want them to be as fast as possible on average. You need to provide put(key, value), get(key), and delete(key) operations and you want them to be as fast as possible, but you must guarantee that these operations never take linear time. 1. SequentialSearchST (unsorted linked list) 2. BinarySearchST (sorted array) 3. BinarySearchTree In addition to put(key, value), get(key), and delete(key) operations, you need to periodically provide the list of keys in order from most recently inserted (newest) to least recently inserted(oldest). The list of keys from newest to oldest must be provided as fast as possible. 4. RedBlackBST 5. Linear Probing HashST In addition to put(key, value), get(key) and delete(key), you need to periodically provide the list of keys in order from smallest to greatest. This list should be constructed in no more than linear time while keeping the other operations as fast as possible.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
How can you make your column headings stand out?
Answers: 1
question
Computers and Technology, 24.06.2019 02:50
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
You know the right answer?
Below, for each situation described in the left column, select the most appropriate data structure t...
Questions
question
Biology, 07.12.2019 09:31
Questions on the website: 13722363