Question

(e) Consider an initially empty max-heap, where the following keys are to be inserted one at...

(e) Consider an initially empty max-heap, where the following keys are to be inserted one at a time: 11, 19, 23, 12, 13, 17, 13, 14, 18, and 33. Draw the tree that results after building this max-heap.

(f) Is it possible to find the maximum in a min-heap in O(log n) time? Justify.

Important Notes:

• For part (e) of this problem, you must draw the min (or max) heaps using the appropriate graphics tools at your convenience.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. max Heap: /9 2.3 2 3 2. 3 I1 (11 11) (1 12 19 2 2.3 12 3) 9 3 2 2.3 i3) 13(19 32. 3 2.3 3) (19 12 13 1 3 1 3 2.3 23 l) (17 i37 1.3 1 (13 23 2.3 -2 132 3 23 33) 13 13 (33 1113)12 2.3 3 23) (19 113 12 リ(13) (

Add a comment
Know the answer?
Add Answer to:
(e) Consider an initially empty max-heap, where the following keys are to be inserted one at...
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