Content deleted Content added
Geysirhead (talk | contribs) m removed Category:Sorting algorithms using HotCat redundant |
m Remove duplicate consequent word "avoid" |
||
Line 286:
|url=http://www.inference.org.uk/mackay/sorting/sorting.html
|date=December 2005|archive-url=https://web.archive.org/web/20090401163041/http://users.aims.ac.za/~mackay/sorting/sorting.html
|archive-date=1 April 2009 |url-status=live}}</ref> The main disadvantage of quicksort is the implementation complexity required to
Quicksort also competes with [[merge sort]], another {{math|''O''(''n'' log ''n'')}} sorting algorithm. Merge sort's main advantages are that it is a [[stable sort]] and has excellent worst-case performance. The main disadvantage of merge sort is that it is an out-of-place algorithm, so when operating on arrays, efficient implementations require {{math|''O''(''n'')}} auxiliary space (vs. {{math|''O''(log ''n'')}} for quicksort with in-place partitioning and tail recursion, or {{math|''O''(1)}} for heapsort).
|