noRulez
Newcomer
I'm wondering if anyone in this board knows a bit about AVL trees? My problem is short, but...in my mind...not simple. I'm having trouble figuring out how to update the skews of all the nodes after I do an insert. I have been through at least 200 web pages and none of them go into depth on this subject. They will tell you that the skew of the node is equal to the depth of it's right subtree minus the depth of it's left subtree. But how do you get the depth of either subtree? I am just wondering if anyone knows of a clean and simple way to update all the skews after an insert
Thanks in advance.
Thanks in advance.