This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Heap Sort and Quick Sort
 
It's not a secret anymore!