File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Heap Sort and Quick Sort" Watch "Heap Sort and Quick Sort" New topic

Heap Sort and Quick Sort

Stephanie Ll

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

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
I agree. Here's the link:
subject: Heap Sort and Quick Sort
It's not a secret anymore!