hi
i just want to know how to write a c program for heap sort. please help me

Recommended Answers

All 4 Replies

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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.