A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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."
I agree. Here's the link:
subject: When which is better - Heap Sort or Quick Sort
Quick Sort in Java
Heap Sort and Quick Sort
Quicksort vs Merge Sort
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014