This is a Binary Tree diagram. I am having trouble understanding how the diagram was created. You have 5 at the top, but how do you decide what numbers come next and what order? Could someone walk me through this step-by-step?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ofcourse,
Well you said this is Binary Tree. So this is the algorithm:
When inserting new numbers, if the number is smaller, it goes left
if it is bigger, it goes right. You should check this applet for
generating Binary Trees to understand how it works
link to applet