Lab 7. Heap
CS203, Spring 2006


1. Suppose we use an array to implement a MinHeap. We first insert the following numbers into the heap: 20, 31, 15, 21, 25, 12, 35, 14, 19, 30. We then call removeMin five times.

For this exercise, put the answers in a text file lab7.txt or an MS Word file lab7.doc.

2. Complete the MinHeap class by implementing the following methods:

(5pt) Write some test code to verify your answers for Excercise 1.

3. Turn in all the source code files and lab7.txt (or lab7.doc) through CSNS.