1.

A self – balancing binary search tree can be used to implement ________(a) Priority queue(b) Hash table(c) Heap sort(d) Priority queue and Heap sortThe above asked question is from Binary Trees in section Binary Trees of Data Structures & Algorithms II have been asked this question in an interview for job.

Answer»

Right choice is (a) Priority queue

Explanation: SELF-balancing binary search trees can be used to construct and MAINTAIN ordered LISTS, to achieve the OPTIMAL worst case performance. So, self – balancing binary search tree can be used to implement a priority queue, which is ordered list.



Discussion

No Comment Found

Related InterviewSolutions