Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

AVL Tree Rotations

4

Flashcards

0/4

Still learning
StarStarStarStar

Single Left Rotation (RR Rotation)

StarStarStarStar

Used when a right-heavy imbalance occurs at a node, particularly after an insertion into the right subtree of the right child.

StarStarStarStar

Single Right Rotation (LL Rotation)

StarStarStarStar

Used when a left-heavy imbalance occurs at a node, particularly after an insertion into the left subtree of the left child.

StarStarStarStar

Double Left-Right Rotation (LR Rotation)

StarStarStarStar

Used when an imbalance occurs at a node with a balance factor greater than 1, and the left child has a balance factor less than 0.

StarStarStarStar

Double Right-Left Rotation (RL Rotation)

StarStarStarStar

Used when an imbalance occurs at a node with a balance factor less than -1, and the right child has a balance factor greater than 0.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.