mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Updated average case for Quicksort
A small edit. Average case for quicksort changed from O(n^2) to O(n log n). Sited: https://en.wikipedia.org/wiki/Quicksort
This commit is contained in:
parent
c4234192fa
commit
a1c146a624
@ -55,7 +55,7 @@ From [Wikipedia][quick-wiki]: Quicksort (sometimes called partition-exchange sor
|
|||||||
__Properties__
|
__Properties__
|
||||||
* Worst case performance O(n^2)
|
* Worst case performance O(n^2)
|
||||||
* Best case performance O(n log n) or O(n) with three-way partition
|
* Best case performance O(n log n) or O(n) with three-way partition
|
||||||
* Average case performance O(n^2)
|
* Average case performance O(n log n)
|
||||||
|
|
||||||
###### View the algorithm in [action][quick-toptal]
|
###### View the algorithm in [action][quick-toptal]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user