Which of the following is not a self-balancing binary search tree?

Which of the following is not a self-balancing binary search tree?

a) AVL Tree
b) Red-Black Tree
c) Binary Heap
d) Splay Tree

Answer:

c) Binary Heap

Explanation:

A Binary Heap is not a self-balancing binary search tree. It is a complete binary tree where each parent node is greater than or equal to (max heap) or less than or equal to (min-heap) its child nodes.

In contrast, AVL Trees, Red-Black Trees, and Splay Trees are all self-balancing binary search trees. They maintain balance during insertions and deletions to ensure that operations like search, insertion, and deletion have logarithmic time complexity.

Binary Heaps are typically used to implement priority queues, whereas self-balancing binary search trees are used for efficient sorted data management.

Reference:

DSA (Data Structures and Algorithms) MCQ Questions and Answers

Scroll to Top