Hey I'm thinking through a project for my data structures class and I've run into a roadblock. For this project I'm implementing a BST which can also be converted to an AVL tree or splay tree so we need to update the height member of each node on insertion, but I'm not allowed to add an additional parent node pointer to the nodes. I'm wondering how I would go about updating the height member of each affected node after insertion when I'm not able to recurse back up the tree.
#Updating BST, AVL tree, splay tree height member
3 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Updating BST, AVL tree, splay tree height member