In the array implementation of the queue, if the number of elements used drops to 25% of the capacity, why can’t we immediately just reduce the capacity to one half?
A. There may be too many elements in the queue.
B. The queue may be wrapping around the array.
C. It would be faster to make some element adjustments first.
D. If the array is reduced to one-half its capacity, there may be memory leak for some of the elements.
B
Computer Science & Information Technology
You might also like to view...
A well-designed user interface acts like a menu system, or home page, for users so they do not have to search for objects in the ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
Discuss the advantage of having a disk image.
What will be an ideal response?
Computer Science & Information Technology