Heaps / Heap Sort


Heap Sort Problems

Problem : In terms of space, why is heap sort attractive?


Problem : Does the following array represent a heap?


{8, 5, 9, 3, 6, 2, 1}


Problem : What is the maximum depth of a heap with n elements?


Problem : Imagine that instead of using an array to represent the heap, we use a singly linked list. Why might this be innefficient? (Hint: Consider the insertions that must be done).


Take a Study Break

Green YOUR SCHOOL!

Click here to get involved with dosomething.org!

John Krasinski's BIG MIRACLE

Click to watch the trailer and read exclusive star interviews!

Do you like Anna?

Read Dear Albert... from ANNA's perspective!

BATTLESHIP, the movie

Here's why we're super jazzed about it.


The Book

Cover image

Read What You Love, Anywhere You Like

Get Our FREE NOOK Reading Apps