Balanced Binary Search trees

As previously discussed, a binary tree which is highly imbalanced may require time to perform an operation, where is the number of nodes. This section provides an example of binary search tree with additional constraints that ensure that every node has depth .

Height constraints

Rotation

Double Rotation

Worst case depth

results matching ""

    No results matching ""