CHAPTER 7. AVL TREE
58
1) algorithm CheckBalance(
current)
2)
Pre:
current is the node to start from balancing
3)
Post:
current height has been updated while tree balance is if needed
4)
restored through rotations
5)
if
current.Left =
∅ and
current.Right =
∅
6)
Dostları ilə paylaş: