lib/heap.c
/* Rebuilds 'heap' to restore the heap invariant following a series of one or
 * more calls to heap_raw_*() functions.  (Otherwise this function need not be
 * called.)
 *
 * This takes time O(n) in the current size of the heap. */
Rebuilds 'heap' to restore the heap invariant following a series of one or
more calls to heap_raw_*() functions.  (Otherwise this function need not be
called.)

This takes time O(n) in the current size of the heap.
Rebuilds ' heap ' to restore the heap invariant following a series of one or more calls to heap_raw_ * () functions . ( Otherwise this function need not be called . ) This takes time O ( n ) in the current size of the heap .
void
heap_rebuild(struct heap *heap)
{
    size_t i;
    for (i = heap->n / 2; i >= 1; i--) {
        float_down(heap, i);
    }
}
void heap_rebuild ( struct heap * heap ) { size_t i ; for ( i = heap -> n / 2 ; i >= 1 ; i -- ) { float_down ( heap , i ) ; } }
Rebuilds 'heap' to restore the heap invariant following a series of one or
 more calls to heap_raw_*() functions.
Rebuilds ' heap ' to restore the heap invariant following a series of one or more calls to heap_raw_ * () functions .