Binary Tree Restructuring
Sometimes, when creating a balanced tree, rotations may not be sufficient. In this case, a technique called trinode structuring comes in, which is essentially one or two rotations combined. The operation of restructuring from a node $x$ involves these steps:
|
|
graph TD
B((b)) --- A((a)) & C((c))
A --- E((T1)) & F((T2))
C --- G((T3)) & H((T4))
Ignore the colors, here this figure is from an explanation of red-black trees.