This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Heap Sort and Quick Sort Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Heap Sort and Quick Sort" Watch "Heap Sort and Quick Sort" New topic
Author

Heap Sort and Quick Sort

Stephanie Ll
Greenhorn

Joined: Jan 06, 2006
Posts: 4
Hi
Could someone give me an example where quick sort will be better than heap sort.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

You might find Wikipedia's heapsort article interesting. There's a section that compares it (in general terms) to quick sort.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
 
subject: Heap Sort and Quick Sort