MCPcopy Create free account
hub / github.com/TheAlgorithms/C / heapifyUp

Function heapifyUp

sorting/heap_sort_2.c:82–89  ·  view source on GitHub ↗

* @brief heapifyUp Adjusts arr[i] to the correct position in the heap * This heapify procedure can be thought of as building a heap from * the bottom up by successively shifting upward to establish the * heap property. * @param arr array to be sorted * @param i index of the pushed element * @return void */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

heapSortFunction · 0.85

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected