diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_unstable.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_instability.png similarity index 100% rename from docs/chapter_sorting/selection_sort.assets/selection_sort_unstable.png rename to docs/chapter_sorting/selection_sort.assets/selection_sort_instability.png diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step1.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step1.png index f884b631c..69b3fbd71 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step1.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step1.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step10.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step10.png index 60dfe309a..e4c380490 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step10.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step10.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step11.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step11.png index ebf8a1967..66744dfcb 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step11.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step11.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step2.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step2.png index 207e388de..c0ce09958 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step2.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step2.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step3.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step3.png index 394d997f0..2ae9d025c 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step3.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step3.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step4.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step4.png index 33c279237..2618ec7e3 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step4.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step4.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step5.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step5.png index 867d3172f..b91f8e89f 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step5.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step5.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step6.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step6.png index 0f18e5d55..887192b16 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step6.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step6.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step7.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step7.png index 49a93b5e1..155cb029c 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step7.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step7.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step8.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step8.png index 0fdac8f30..793123f74 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step8.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step8.png differ diff --git a/docs/chapter_sorting/selection_sort.assets/selection_sort_step9.png b/docs/chapter_sorting/selection_sort.assets/selection_sort_step9.png index 88d145520..6676c5adb 100644 Binary files a/docs/chapter_sorting/selection_sort.assets/selection_sort_step9.png and b/docs/chapter_sorting/selection_sort.assets/selection_sort_step9.png differ diff --git a/docs/chapter_sorting/selection_sort.md b/docs/chapter_sorting/selection_sort.md index 2abb07eb5..a7e1dff44 100644 --- a/docs/chapter_sorting/selection_sort.md +++ b/docs/chapter_sorting/selection_sort.md @@ -109,4 +109,4 @@ - **空间复杂度 $O(1)$ 、原地排序**:指针 $i$ , $j$ 使用常数大小的额外空间。 - **非稳定排序**:在交换元素时,有可能将 `nums[i]` 交换至其相等元素的右边,导致两者的相对顺序发生改变。 -![选择排序非稳定示例](selection_sort.assets/selection_sort_step11.png) +![选择排序非稳定示例](selection_sort.assets/selection_sort_instability.png)