How to write a C Program Heap Sort Using C Programming Language ?
A sorting algorithm that works by first organizing the data to be sorted into a special type of binary tree called a heap. The heap itself has, by definition, the largest value at the top of the tree, so the heap sort algorithm must also reverse the order.A complete binary tree is a binary tree in which each non-leaf has two children and all the leaves are at the same depth from the root.
A nearly complete binary tree is a binary tree constructed from a complete binary tree by eliminating a number of nodes (possibly none) from right at the leaf level.
A heap is a node-labeled, nearly complete binary tree with a special property.
The (Binary) heap data structure is an array object that can be
viewed as a nearly complete binary tree.
See More : Heapsort