-
Trees
What binary tree would be produce if inserting the elements in the following order ( DRAW THE TREE)
3 8 5 17 30 23 54 76 66 67 8 78 98 2 7 88
I know that 3 would be the smallest element and would be placed in the far left side of the tree and 98 would be in the far right side of the tree.
How would i know which element would be the root?
Thanks
David
-
genrally the first element you add is the root of a binary tree.
it would look something like the attached file (zipped bitmap)
Cheers
U.
-
thank you sooo much for taking the time to draw it for me i understand now
-