Question

17. Given the array pictured below, draw the binary tree that can be created from its ele- ments. (The elements are arranged
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Assuming Full Binary Tree Starting from index 0, the tree will most likely be

15

10 12

3   47 8 3

20 17 8

Keep numbering the nodes sequentially and place them like shown above.

We start with 15 as the root node and it has two children 10(index 1), 12 (index 2).

10 has two children 3 (index 3) and 47 (index 4).

12 has two children 8 (index 5) and 3 (index 6)

3 has two children 20 and 17 while 47 has only left child as 8.

Add a comment
Know the answer?
Add Answer to:
17. Given the array pictured below, draw the binary tree that can be created from its...
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