Hello,
im confused, how we starting when we have an orded array and we want to represent it in binary tree?
Example : Array(A):{1,2,3,4,5,6,7,8,9}
Starting from first element, or from middle?
1 reply to this topic
#1
Posted 23 May 2011 - 10:27 AM
"Programming is like sex. One mistake and you have to support it for the rest of your life."
-Michael Sinz|
|
|
#2
Posted 23 May 2011 - 01:31 PM
It depends on what type of encoding you want to use. Does it matter if the tree is balanced? Do you intend to recurse the tree using depth first search or breadth first search?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









