I've been looking online for C code for a quicksort that is both in-place and non-recursive. There are example of each but does anyone have a link to code that is both?
C- quicksort in-place and non-recursive
Collapse
X
-
Tags: None
-
Er, I think non-recursive and in-place are mutually exclusive. I mean, doesn't in-place mean non-calling-anything? -
Comment
-
If you're interested in a nice big-Oh-wise stable in-place non-recursive sortingOriginally posted by DarkArchonIn place means that the list is not copied in to subsequent sublists, but rather swapped around
algorithm check the heap sort algorithm. It has O(n*log(n)) performance just
like the quick sort algorithm.
kind regards,
JosComment
-
Of course. I must have been confused by in-line.Originally posted by DarkArchonIn place means that the list is not copied in to subsequent sublists, but rather swapped around
I need more coffee.Comment
Comment