cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Max heap
Max heap
Jan 22, 2012 at 1:06pm UTC
Suhail khattak
(3)
I have to write code for a max heap, i have 10 names to b sorted by heap sort algorithm. . Such as {"suhail","jhon", "akram", . . . Etc}
i dont know how to sort a set of names using max heap. . ?
Jan 22, 2012 at 2:11pm UTC
closed account (
zwA4jE8b
)
A heap sort just involves adding the root node to the sorted list, deleting root, and repeating.
This is assuming your heap works properly
Topic archived. No new replies allowed.