3.3, due October 3
Difficult:
The hardest part of the section was definitely the proof of Theorem 3.3.10, about the minimal number of nodes in an AVL tree. That proof took some thinking through.
Reflective:
One question I had while I was reading was, when you re-balance an AVL tree, do you have a maximum of two rotations? I understood by the end of the section that you do not -- that is the worst case for one set of three nodes, but that can result in an imbalanced tree that cascades all the way up.
The hardest part of the section was definitely the proof of Theorem 3.3.10, about the minimal number of nodes in an AVL tree. That proof took some thinking through.
Reflective:
One question I had while I was reading was, when you re-balance an AVL tree, do you have a maximum of two rotations? I understood by the end of the section that you do not -- that is the worst case for one set of three nodes, but that can result in an imbalanced tree that cascades all the way up.
Comments
Post a Comment