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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, gmc2771
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
image
Computers and Technology, 23.06.2019 00:20, mmmmaaarriiieeee
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, giannav57
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
image
Computers and Technology, 24.06.2019 08:10, anthonysutton82
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
Below, for each situation described in the left column, select the most appropriate data structure t...

Questions in other subjects:

Konu
Mathematics, 04.11.2019 22:31
Konu
Advanced Placement (AP), 04.11.2019 22:31