Question

Consider the following complete binary tree is stored in an array the way we learned during heap lecture. The root node is st
0 0
Add a comment Improve this question Transcribed image text
Answer #1

******************************************************************************************
Please Upvote the answer as it matters to me a lot :)
*****************************************************************************************
As per HomeworkLib expert answering guidelines,Experts are supposed to answer only certain number of questions/sub-parts in a post.Please raise the remaining as a new question as per HomeworkLib guidelines.
******************************************************************************************

1)
position 9 is the place where I have to start doing percolate down in heapify()
2)
in order to build the heap using heapify we need a time of
O(n)
3)
the total runtime to build heap from n elements without using heapify process is
O(N log N)

Add a comment
Know the answer?
Add Answer to:
Consider the following complete binary tree is stored in an array the way we learned during...
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