mirror of
https://github.com/oxyanyano/2022-WangDao-CS-DS-Notes.git
synced 2026-02-02 18:29:00 +08:00
Update 8.5快速排序(不稳定).md
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
## 快速排序——Quick Sort
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
`快速排序`的基本思想:通过一趟排序将待排记录`分隔成独立的两部分`,其中一部分记录的关键字均比另一部分的关键字小,则`可分别对这两部分记录继续进行排序`,以达到整个序列有序。
|
||||
|
||||
@@ -59,4 +59,4 @@ void QuickSort(int A[],int low,int high){
|
||||
最坏时间复杂度=$$O(n^2)$$
|
||||
平均`时间复杂度`=$$O(nlog_2n)$$
|
||||
|
||||
算法稳定性:`不稳定`
|
||||
算法稳定性:`不稳定`
|
||||
|
||||
Reference in New Issue
Block a user