Divide and Conquer algorithm, relies on a partition operation that, given a pivot, divides the array into two parts:
ALGORITHM
Partitioning process

Here, the split position is
Heap Sort keeps the array as a max-heap:
Repeatedly perform Maximum Key Deletion:


