
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CMSC 132 Quiz 6 Worksheet
The next quiz of the course will be on Friday, Aug 4. The following list provides more information about the quiz:
The following exercises cover the material to be included in this quiz. Solutions to these exercises will not be provided, but you are welcome to discuss your solutions with TAs and instructors during office hours.
Exercises
http://www.cs.umd.edu/class/spring2006/cmsc132/Movies/HeapPart1.mov http://www.cs.umd.edu/class/spring2006/cmsc132/Movies/HeapPart2.mov
key value than either of its children. The class definition associated with the MaxHeap class is:
public class MaxHeap<E extends Comparable
Complete the implementation of the MaxHeap class, by providing the following methods:
a. insert – Inserts an element in the heap. b. remove – Removes the largest element from the heap and returns that element. c. size – Returns the size of the heap.