Which Data Structure?
For each problem, describe which data structure(s) you would use and give an explanation for your choice.
a. Java uses garbage collectionto find available memory locations and stores such locations in a repository so that allocations for new objects can be made. Whenever the new command is used, memory is allocated to create storage for the new object being instantiated. In what data structure would you store these locations? Why?
b. A video editor allows a user to create movies by splicing together video clips. The user can add a clip between any two clips and delete or move a clip to a different location. Finally, the spliced clips are played consecutively so that the final video looks right. In what data structure would you store the clips be stored? Why?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.