
A self-balancing binary tree is any tree that automatically keeps its height small in the face of arbitrary insertions and deletions on the tree. The height is usually maintained in the order of log n so that all operations performed on that tree take O(log n) time on an average. Now let us look at the most widely used self balancing binary trees, their complexities and their use cases. The various self balancing binary search trees are:
2-3 tree
Red-Black Tree
AVL tree
B tree
AA tree
Scapegoa...
Published on August 19, 2020 23:10