
Signature
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
Andrew Marcus wrote:
>> I have implemented a heap using Vector class.But I couldnot implement
>> the removeMin() function to remove the smallest element.Can anyone
>> help??
> Why don't you post the code?
That's a good suggestion for the OP, as is to cease multi-posting.
java.util.Vector is an archaic class, supplanted in 1998 by
java.util.ArrayList and the Collections.synchronizedList() version of it if
synchronization is needed.
Also, the API class java.util.PriorityQueue
<http://java.sun.com/javase/6/docs/api/java/util/PriorityQueue.html>
implements a heap.

Signature
Lew