subject

In lecture we’ve been looking at 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. Your should consider both time efficiency and space efficiency, and you should assume that both implementations have an associated iterator like the LLListIterator that will be discussed in lecture. Explain. 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 one!). 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: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
You know the right answer?
In lecture we’ve been looking at two different implementations of the list ADT: ArrayList and LLList...
Questions
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
English, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
French, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
French, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
question
Mathematics, 10.09.2020 18:01
Questions on the website: 13722360