Neocortex 🧠

Search

Search IconIcon to open search

Binary Tree Rotations

Last updated Jan 1, 2022 Edit Source

A rotation of a Binary Tree node is basically replacing a node with one of its children. In order to sustain the search tree property of a binary tree however, when replacing a node with its left child, the host becomes its right child, and the reverse applies when replacing wit its right child. One or more rotate operations can be applied consecutively to esentially restructure a tree.


Interactive Graph