Podcast
Questions and Answers
Which data structure wastes the least amount of space when storing elements of a list of size $n$?
Which data structure wastes the least amount of space when storing elements of a list of size $n$?
- Rootish Array Stack (correct)
- Array
- Array Stack
- LinkedList
What is the formula to calculate the number of elements stored in the Rootish Array Stack?
What is the formula to calculate the number of elements stored in the Rootish Array Stack?
- $r^2 + r = 2n$ (correct)
- $b = (-3 + \sqrt{9 + 8i})/2$
- $j = i - b(b + 1) / 2$
- $r + 1 = $block size
What is the equation to find the index $i$ given the block number $b$?
What is the equation to find the index $i$ given the block number $b$?
- $i = j - b(b + 1) / 2$
- $i = j + b(b + 1) / 2$ (correct)
- $j = i - b(b + 1) / 2$
- $j = i - b$
Which operation is performed to add an element to the Rootish Array Stack?
Which operation is performed to add an element to the Rootish Array Stack?
What is the condition to check if the Rootish Array Stack needs to grow in size?
What is the condition to check if the Rootish Array Stack needs to grow in size?