noRulez
Member
Im wondering if anyone in this board knows a bit about AVL trees? My problem is short, but...in my mind...not simple. Im 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 its right subtree minus the depth of its 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.