CPSC 211, Sec 201-203: Quiz 8
Mar 24, 2004

Name:________________________________________

  1. (2 pt) Draw two different binary min-heaps both of which contain the same set of keys: {10, 7, 6, 4, 3, 1}.







  2. (1 pt) Draw the result of removing the minimum element from this binary heap, using the remove algorithm given in class:









  3. (1 pt) Describe the heapsort algorithm.









  4. (1 pt) What is the worst-case asymptotic running time of heapsort for sorting n keys?