5
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by abhishaki
0

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?

0

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.....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.