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, 21.06.2019 15:00
1. what are the biggest risks when using the public internet as a wide area network (wan) or transport for remote access to your organization’s it infrastructure?
Answers: 2
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
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
English, 31.01.2020 14:42
question
History, 31.01.2020 14:42
Questions on the website: 13722363