Does anybody knows that how we can assign number to nodes for binomial tree . I mean how we can represent the number of nodes by array? please give me hint I am really confused .
In a binary tree, you can represent the tree from root to leaves as follows:
0 root 1 2 root's children 3 4 5 6 root's grandchildren etc.
To get the children of a node, you take its index x and compute 2x+1 and 2x+2.
This makes some certain assumptions: Each node has exactly two children, except the leaves, which are all on the same (or two neighboring) levels. If a level is not full, it is filled from left to right.