Question
NEED RESPONSE ASAP. PLEASE ANSWER COMPLETELY. WILL GIVE THUMBS UP FOR A CORRECT COMPLETE ANSWER. 1. Memory Allocation Analysis: Describe your process for calculating memory
NEED RESPONSE ASAP.
PLEASE ANSWER COMPLETELY. WILL GIVE THUMBS UP FOR A CORRECT COMPLETE ANSWER.
1. Memory Allocation Analysis: Describe your process for calculating memory required for the following examples. Give an estimate in MB/GB of the amount of memory required in RAM.
(a) Array of Doubles that contains 100,000 elements.
(b) Linked List of chars contains 1,000,000 nodes.
2. Describe the purpose of implementing a Queue, Stack, or Hashmap on an Array or Linked List. Describe why one would implement a Queue, Stack, or Hashmap.
3. Big O SECTION List appropriate Worst Case Big O Notation under the different algorithms or data structure operations. Choose from right column and place under left column. Right column can be used more than once or not all.
A. Empty() check method on Stack of 1000 elements with array as underlying data structure | O(1) |
B. Traversing a Linked List from the Last Node to the Head Node | O(n) |
C. Look Up of Node in a 100,000 element Binary Search Tree | O(n^2) |
D. Traversing every node in Queue with array as underlying data structure | O(log n) |
E. Accessing key in 1,000,000 element Hash Map | O(n log n) |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started