Now, regarding developing structures, let’s talk about balancing trees.
Sometimes it is not just a problem of a difference in proportion of branches, but an unsuitable root node. So, what to do?
First, prepare a replacement root node.
Link the new root node to the tree structure.
Make sure all the connections are updated.
Do proper testing and inspection. Multiple tests over time are preferred.
There’s nothing wrong with some application of exception handling.
The goal is for the new root node to properly support the structure and handle the load.