There are two variations of this operation, a "right rotation" in which begins as the left child of and ends as the right child of , and a "left rotation" in which begins as the right child of and ends as the left child of .