public abstract class Heap<E> extends Object
Heap(int initialCapacity)
void
add(E e)
protected abstract int
compare(E elem1, E elem2)
E
get(int i)
removeAt(int i)
root()
protected abstract void
setIndex(E elem, int index)
int
size()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Heap(int initialCapacity)
public int size()
public E root()
public void add(E e)
public E get(int i)
public E removeAt(int i)
protected abstract void setIndex(E elem, int index)
protected abstract int compare(E elem1, E elem2)
Copyright © 2021. All rights reserved.