helper functions for compares and swaps . concode_field_sep Key[] pq concode_elem_sep Comparator<Key> comparator concode_elem_sep MaxPQ<Key> copy concode_elem_sep int N concode_field_sep Key next concode_elem_sep Key max concode_elem_sep void sink concode_elem_sep boolean isEmpty concode_elem_sep void insert concode_elem_sep boolean hasNext concode_elem_sep void main concode_elem_sep void remove concode_elem_sep Iterator<Key> iterator concode_elem_sep int size concode_elem_sep void exch concode_elem_sep void resize concode_elem_sep boolean isMaxHeap concode_elem_sep boolean isMaxHeap concode_elem_sep void swim concode_elem_sep Key delMax
boolean function ( int arg0 , int arg1 ) { if ( comparator == null ) { return ( ( Comparable < Key > ) pq [ arg0 ] ) . compareTo ( pq [ arg1 ] ) < 0 ; } else { return comparator . compare ( pq [ arg0 ] , pq [ arg1 ] ) < 0 ; } }