hi
i just want to know how to write a c program for heap sort. please help me
This is a very complex sort. There's pseudocode on Wikipedia http://en.wikipedia.org/wiki/Heap_sort.
hi
i just want to know how to write a c program for heap sort. please help me
Do you know how to sort numbers according to Heap Sort manually on paper ? I hope your answer is yes,if not learn that first without it you cant understand how to make computer do it (code it).Go through these first:
1>How to construct a heap tree?
2>What number should be deleted or removed from tree to get numbers sorted?
3>When a number is removed what is the process of removal and how is the heap affected?
Have a look at the brilliant tutorial on sorting:
http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx#heap
hi
i just want to know how to write a c program for heap sort. please help me
i must insist you to first of all understand the concept of a heap tree as suggested by csurfer then you should try to write it's algorithm yourself , den after reach onto the program ....
this would really help try it.....