Update 8.5快速排序(不稳定).md

This commit is contained in:
岩岩
2022-03-29 12:26:25 +08:00
committed by GitHub
parent 06b331c14b
commit 6a5cb0dbad

View File

@@ -1,8 +1,8 @@
## 快速排序——Quick Sort
![uTools_1638450353573](F:\408数据结构\图片\uTools_1638450353573.png)
![uTools_1638450353573](https://github.com/oxyanyano/2022-WangDao-CS-DS-Notes/blob/main/images/uTools_1638450353573.png)
![uTools_1638451646054](F:\408数据结构\图片\uTools_1638451646054.png)
![uTools_1638451646054](https://github.com/oxyanyano/2022-WangDao-CS-DS-Notes/blob/main/images/uTools_1638451646054.png)
`快速排序`的基本思想:通过一趟排序将待排记录`分隔成独立的两部分`,其中一部分记录的关键字均比另一部分的关键字小,则`可分别对这两部分记录继续进行排序`,以达到整个序列有序。
@@ -59,4 +59,4 @@ void QuickSort(int A[],int low,int high){
最坏时间复杂度=$$O(n^2)$$
平均`时间复杂度`=$$O(nlog_2n)$$
算法稳定性:`不稳定`
算法稳定性:`不稳定`