File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
When which is better - Heap Sort or Quick Sort
Joined: Nov 04, 2007
Feb 01, 2008 03:46:00
Both Heap-Sort and Quick-Sort have time complexities of O(n log n).
Then which sorting technique is better in which case?
Joined: Sep 17, 2006
Feb 01, 2008 04:15:00
Neither is 'better' - each has it's strengths. It would be better if you can provide a context for this question, in the simple case - neither is better: Each has it's correct place and use.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
subject: When which is better - Heap Sort or Quick Sort
Heap Sort and Quick Sort
Quicksort vs Merge Sort
Quick Sort in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015