MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / buildMaxheap

Function buildMaxheap

highs/util/HighsSort.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void buildMaxheap(HighsInt* heap_v, HighsInt n) {
142 HighsInt i;
143 for (i = n / 2; i >= 1; i--) {
144 maxHeapify(heap_v, i, n);
145 }
146}
147
148void buildMaxheap(HighsInt* heap_v, HighsInt* heap_i, HighsInt n) {
149 HighsInt i;

Callers 1

maxheapsortFunction · 0.85

Calls 1

maxHeapifyFunction · 0.85

Tested by

no test coverage detected