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 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u.s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
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
Mathematics, 11.02.2020 04:31
question
Mathematics, 11.02.2020 04:31