| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--org.jutil.java.collections.AbstractDispenser
        |
        +--org.jutil.java.collections.AbstractPriorityQueue
              |
              +--org.jutil.java.collections.SkipListPQ
A SkipList based priority queue
| Field Summary | |
| static java.lang.String | CVS_REVISION | 
| Constructor Summary | |
| SkipListPQ(java.util.Comparator comparator)Initialize a new SkipListPQ with the given comparator. | |
| Method Summary | |
| protected  void | addImpl(java.lang.Object element)See superclass. average: O(log(n)) worst case: O(n) | 
|  void | clear()See superclass. | 
|  java.util.Comparator | getComparator()See superclass. | 
|  java.util.Iterator | iterator()See superclass. | 
|  java.lang.Object | min()See superclass. O(1) | 
|  int | nbExplicitOccurrences(java.lang.Object element)See superclass. | 
|  java.lang.Object | pop()See superclass. O(1) | 
|  int | size()See superclass. | 
| Methods inherited from class org.jutil.java.collections.AbstractPriorityQueue | 
| getNext, removeNext | 
| Methods inherited from class org.jutil.java.collections.AbstractDispenser | 
| add, isEmpty | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.jutil.java.collections.Dispenser | 
| add, isEmpty | 
| Field Detail | 
public static final java.lang.String CVS_REVISION
| Constructor Detail | 
public SkipListPQ(java.util.Comparator comparator)
comparator - The comparator that is used to determine the order
        of the added elements.| Method Detail | 
protected void addImpl(java.lang.Object element)
See superclass.
average: O(log(n))
worst case: O(n)
public java.lang.Object min()
See superclass.
O(1)
public java.lang.Object pop()
See superclass.
O(1)
public int nbExplicitOccurrences(java.lang.Object element)
See superclass.
public int size()
See superclass.
public java.util.Comparator getComparator()
See superclass.
public void clear()
See superclass.
public java.util.Iterator iterator()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||