function to delete element at an index concode_field_sep int d concode_elem_sep int heapSize concode_elem_sep int[] heap concode_field_sep int parent concode_elem_sep void printHeap concode_elem_sep boolean isEmpty concode_elem_sep void heapifyDown concode_elem_sep void insert concode_elem_sep void main concode_elem_sep int minChild concode_elem_sep int kthChild concode_elem_sep void makeEmpty concode_elem_sep int deleteMin concode_elem_sep boolean isFull concode_elem_sep int findMin concode_elem_sep void heapifyUp
int function ( int arg0 ) { if ( isEmpty ( ) ) throw new NoSuchElementException ( "srini_string" ) ; int loc0 = heap [ arg0 ] ; heap [ arg0 ] = heap [ heapSize - 1 ] ; heapSize -- ; heapifyDown ( arg0 ) ; return loc0 ; }