public interface PriorityQueue<E extends java.lang.Comparable>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Empties the queue.
|
E |
deleteMin()
Deletes the minimum element in the queue.
|
E |
findMin()
Finds the minimum element in the queue.
|
void |
insert(E element)
Inserts an element into the queue.
|
boolean |
isEmpty()
Determines whether the queue is empty or not.
|
int |
size()
Returns the size of the queue.
|
void clear()
int size()
void insert(E element)
element
-boolean isEmpty()
E findMin()
E deleteMin()