Nick Whelan
2005-10-02 22:34:52 UTC
I'm having a great amount of trouble with the UpdateRevAdaptive function....
does anyone have any psuedocode for it? It works fine until I have to
remove a zero node, and then the whole things goes to hell. Nodes get
overwritten or deleted... either the removeZero is still wrong (even after
the corrected typo on the clarifications page), or I'm missing something
critical in either my updateRevAdaptive or SlideAndDecrement code... What
exactly are you supposed to do once you find a node that's going to be zero?
and what does the comment "/* work down the tree */" mean? If anyone has
any kind of psuedocode for either of these functions and is willing to
share, it would be greatly appreciated.
does anyone have any psuedocode for it? It works fine until I have to
remove a zero node, and then the whole things goes to hell. Nodes get
overwritten or deleted... either the removeZero is still wrong (even after
the corrected typo on the clarifications page), or I'm missing something
critical in either my updateRevAdaptive or SlideAndDecrement code... What
exactly are you supposed to do once you find a node that's going to be zero?
and what does the comment "/* work down the tree */" mean? If anyone has
any kind of psuedocode for either of these functions and is willing to
share, it would be greatly appreciated.