heap sort without vectors Algorithm

sort is a generic function in the C++ standard library for making comparison sorting. The specific sorting algorithm is not mandated by the language standard and may vary across implementations, but the worst-case asymptotic complexity of the function is specify:

heap sort without vectors source code, pseudocode and analysis