Which of the following data structures can be used for this purpose?
A. A heap can be used but not a balanced binary search tree
B. A balanced binary search tree can be used but not a heap
C. Both balanced binary search tree and heap can be used
D. Neither balanced binary search tree nor heap can be used
Answer:A
Which of the following data structures can be used for this purpose?
A. A heap can be used but not a balanced binary search tree B. A balanced binary search tree can be used but not a heap C. Both balanced binary search tree and heap can be used D. Neither balanced binary search tree nor heap can be used