Click here to Skip to main content
15,911,646 members

Comments by Mesrop Simonian (Top 12 by date)

Mesrop Simonian 24-Jun-11 13:09pm View    
Now that definitely looks like it would work. I'm going to try it now.
Mesrop Simonian 24-Jun-11 13:08pm View    
the SetNewTotal method always returns 0s... also, isn't total at some point supposed to be assigned the value of r?
Mesrop Simonian 23-Jun-11 19:36pm View    
Absolutely. You may be on to something here, because I think you have a partial solution for POP, but POT is still a different issue. I compared the edited solution to the previous version and I only saw differences in the IncrementChildren section. So this IncrementChildren method, I assume, is on branch level, not tree level. If so, where are POP and POT? Branch level or tree level? POP can be branch level and this solution might work, but POT cannot, because "root" is not known at branch level (out of scope). And if that's the case the solution is not implementable. Do you see why?
Mesrop Simonian 23-Jun-11 18:49pm View    
Bottom up vs top-down doesn't matter I think. The question is the ability to do horizontal navigation as well - we got the up/down we need the left/right, so instead of a depth-first search, it needs to be a breadth-first search, but in that case I don't know how to ensure that every single branch in the structure will be visited.
Mesrop Simonian 23-Jun-11 18:42pm View    
MainBranch I meant to say