Update 8.4冒泡排序(稳定).md

This commit is contained in:
岩岩
2022-03-29 12:24:29 +08:00
committed by GitHub
parent 07a9a88b20
commit 5438eaf587

View File

@@ -1,8 +1,8 @@
## 冒泡排序——Bubble 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_1638449861667](F:\408数据结构\图片\uTools_1638449861667.png)
![uTools_1638449861667](https://github.com/oxyanyano/2022-WangDao-CS-DS-Notes/blob/main/images/uTools_1638449861667.png)
`冒泡排序`是一种简单的排序算法。它重复地走访过要排序的数列,`一次比较两个元素`,如果它们的顺序错误就把它们交换过来。走访数列的工作是重复地进行直到没有再需要交换,也就是说该数列已经排序完成。这个算法的名字由来是因为`越小的元素会经由交换慢慢“浮”到数列的顶端`
@@ -55,4 +55,4 @@ void BubbleSort(int A[],int n){
算法稳定性:`稳定`
顺序表和链表都可以。
顺序表和链表都可以。