What is the major advantage that a heap implementation of a priority queue has over a binary search tree implementation?
What will be an ideal response?
The major advantage of the heap implementation is that a heap is always balanced. This is not the case with a binary search tree, which degrades the binary search tree’s efficiency.
Computer Science & Information Technology