subject

Two different implementations of the list adt: arraylist and lllist. for each of the following applications, decide which list implementation would be better for that particular application. you should consider both time efficiency and space efficiency, and you should assume that both implementations have an associated iterator like the lllistiterator that we discussed in lecture. explain your answers.

you need to store information about the gardening tools that you sell in your online store. to do so, you maintain a list of product records, each of which contains information about a single type of product, including how many copies of it you have in stock. you don’t tend to change the types of tools that you sell, and thus items are seldom added or removed from the list. however, you need to update a product’s record whenever your inventory of that product changes (e. g., because someone purchases a product’s position in the list is also its product id, and therefore updating a record involves using the product id to get the corresponding record and modifying its contents.

you need to maintain a list of tweets that are made by government officials in the current week. the number of tweets can vary widely from week to week in a way that is hard to predict. you start with an empty list at the start of the week, and as tweets are made you add them to the list. you need to frequently display the tweets in reverse chronological order – from most recent to least recent.

you are responsible for maintaining a monthly list of events for an online arts calendar. the number of events is fairly consistent from month to month. events are added to the list in chronological order, and you need to display them in that same order.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:30
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
question
Computers and Technology, 24.06.2019 06:30
For which utilities, if any, does the landlord pay?
Answers: 2
question
Computers and Technology, 24.06.2019 16:30
Pressing the backspace key deletes the text to the of the insertion point. the left or the right?
Answers: 1
You know the right answer?
Two different implementations of the list adt: arraylist and lllist. for each of the following appl...
Questions
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
History, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
History, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
question
Mathematics, 16.09.2020 06:01
Questions on the website: 13722361