This sounds like an interesting application. I just need some clarification... We're both in the same car, I just want to know where what road we're on, and if the road leads to green pastures :-).
From what I am getting, the root node determins the LNode and RNode:
|Lnode|Root|RNode|`
2 1 3
4 2 5
6 3 7
8 4 9
If that is the case, I would multiple the root by 2 this will give you LNode, then add one to get the value of RNode.
Private Sub CalculateNodes(root As Integer)
' declare the nodes
Dim LNode, RNode as Integer
'assign the nodes
LNode = root * 2
RNode = LNode + 1
End Sub
Maligui
Junior Poster in Training
84 posts since Aug 2012
Reputation Points: 0
Solved Threads: 17
Skill Endorsements: 2
Question Answered as of 8 Months Ago by
Maligui