You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Heap (1)class Heap {private Node[] heapArray;private int maxSize; // size of arrayprivate int currentSize; // number of nodes in arraypublic Heap(int mx) // constructor{maxSize = mx;currentSize = 0;heapArray = new Node[maxSize]; // create array}public boolean isEmpty() {}return currentSize == 0;23