Heap Sort

Demonstrating Heap Sort in C#

Submitted by janobe on
Now, let’s learn how to demonstrate heap sort program in C#. But, before anything else let’s know what heapsort is? Here’s a short definition of it, heapsort is a comparison-based sorting algorithm that uses the heap data structure. In this program, the topmost item (the largest) is removed first and stored in an array. Then, it is replaced by the rightmost leaf and re-established the heap. The same process is repeated until there are no more items left in the heap and the array is sorted. Let’s begin:

Heap Sort Version 1.0

Submitted by jakerpomperada on
This is another sorting algorithm called heap sort that I wrote using Java programming language. The heap sort code is quiete complex but it is very useful when you are sorting a big amount of numbers. If you find this code useful send me an email at [email protected]. People here in the Philippines can reach me at my mobile phone number 09296768375. Thank you very much and Happy