not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
491 B

package net.jrtechs.www.DataStructures.Trees.Heap;
/**
* Definition for behavior of heaps
*
* @author Jeffery Russell 8-26-18
*/
public interface IHeap<E extends Comparable>
{
/**
* Add element to heap.
*
* @param o
*/
public void insert(E o);
/**
* Remove top element from heap
*
* @return top element
*/
public E remove();
/**
* Fetches top element
*
* @return top element
*/
public E peek();
}