Question

explain how to get the answer A to this question. ^Binary Trees - Number of Compares...

explain how to get the answer A to this question.
^Binary Trees - Number of Compares
~Given the following numbers in array A ...

    7 34 12 28 33 21 15 24 29 

... and using these numbers to draw a Binary Tree, how many compares
will it take to find the 21?


a.  5
b.  4
c.  6
d.  7
e.  9
0 0
Add a comment Improve this question Transcribed image text
Answer #1
Yes,
5 number of comparisions
3y la 2 4
See the above tree.
Comparisions with 
7
32
12
28
21
 

Please upvote the solution if it helped. Thanks!

Note: Please comment below if you have any doubts

Add a comment
Know the answer?
Add Answer to:
explain how to get the answer A to this question. ^Binary Trees - Number of Compares...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT