user191776
user191776

Reputation:

"Rotating" to get AVL Tree

Why is the process of balancing to get an AVL tree called rotation? (While you are at it, what's single & double rotation?)

Every textbook of mine blatantly uses that word without any explanation.

Upvotes: 4

Views: 919

Answers (2)

SLaks
SLaks

Reputation: 887315

See Wikipedia.

Upvotes: 1

Svisstack
Svisstack

Reputation: 16616

This is a operation of changing root in sub-tree of your tree, this is very simple operation and this can not be explained (because is simple).

alt text

Upvotes: 7

Related Questions