![]() |
| | #1 |
| Registered User Join Date: Apr 2007 Location: Greece
Posts: 52
| Heapsort Google didn't help me a lot. It would be ideal to find the implementation that is used by some efficient library, or just a (proven?) efficient implementation. |
| myle is offline | |
| | #2 |
| and the Hat of Guessing Join Date: Nov 2007
Posts: 8,862
| I typed "C++ heapsort" into google, and most of the results on the first two pages had implementations. |
| tabstop is offline | |
| | #3 |
| MENTAL DETECTOR Join Date: Apr 2006 Location: United States
Posts: 3,295
| Library implementations are usually very general and you wouldn't necessarily learn how heap sort works any better than if you wrote a routine to sort a datatype you know, such as int. Keep the implementations you learn from specific until you know the algorithm. |
| whiteflags is offline | |
| | #4 |
| Registered User Join Date: Apr 2007 Location: Greece
Posts: 52
| The best result till now is this: http://en.wikibooks.org/wiki/Algorit...rting/Heapsort Thanks for your replies though. |
| myle is offline | |
| | #5 | |
| Algorithm Dissector Join Date: Dec 2005 Location: New Zealand
Posts: 2,746
| Quote:
If you want a proven efficient implementation you could read the implementations of make_heap and sort_heap from your favourite C++ compiler. But I think you'll find the ones you linked to a bit more readable.
__________________ My homepage Advice: Take only as directed - If symptoms persist, please see your debugger | |
| iMalc is offline | |
| | #6 |
| Weak. Join Date: Apr 2005
Posts: 166
| Here's an awesome article about various sorting algorithms including Heapsort http://www.eternallyconfuzzled.com/t...t_sorting.aspx |
| dra is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Heapsort | xENGINEERx | C Programming | 2 | 03-30-2008 07:17 PM |
| heapsort help please! | MAC77 | C++ Programming | 2 | 12-14-2005 12:28 PM |
| Heapsort | abalfazl | C Programming | 2 | 08-06-2005 06:11 PM |
| heapsort problem... | talz13 | C++ Programming | 9 | 09-23-2003 04:06 PM |
| heapsort help plz | nsssn73 | C# Programming | 0 | 06-02-2002 06:54 AM |