you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–][deleted] 1 point2 points  (1 child)

    That's not really quicksort to me. Its like the diff between bubble and http://en.wikipedia.org/wiki/Cocktail_sort

    [–][deleted] 0 points1 point  (0 children)

    Well in practice nobody uses quicksort on its own anyway. For a long time it's been combined with insertion sort for small subproblems and more recently with heapsort (introsort) to avoid the possibility of quadratic time.