private static void heapify ( int [ ] heap , int [ ] reverseIndex , int count , float [ ] values ) { int start = ( count - 2 ) / 2 ; while ( start >= 0 ) { siftDown ( heap , reverseIndex , start , count - 1 , values ) ; start -- ; } }
Builds a min - heap and a reverseIndex into the heap from the given array of values