Skip to content

Commit 5e457ab

Browse files
authored
Update 10-classical-sorting-algorithms.md
1 parent e778f21 commit 5e457ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cs-basics/algorithms/10-classical-sorting-algorithms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public static int[] merge(int[] arr_1, int[] arr_2) {
357357

358358
### 算法步骤
359359

360-
快速排序使用[分治法](https://zh.wikipedia.org/wiki/分治法)(Divide and conquer)策略来把一个序列分为较小和较大的 2 个子序列,然后递回地排序两个子序列。具体算法描述如下:
360+
快速排序使用[分治法](https://zh.wikipedia.org/wiki/分治法)(Divide and conquer)策略来把一个序列分为较小和较大的 2 个子序列,然后递归地排序两个子序列。具体算法描述如下:
361361

362362
1. 从序列中**随机**挑出一个元素,做为 “基准”(`pivot`);
363363
2. 重新排列序列,将所有比基准值小的元素摆放在基准前面,所有比基准值大的摆在基准的后面(相同的数可以到任一边)。在这个操作结束之后,该基准就处于数列的中间位置。这个称为分区(partition)操作;
@@ -738,4 +738,4 @@ public static int[] radixSort(int[] arr) {
738738
- <https://en.wikipedia.org/wiki/Sorting_algorithm>
739739
- <https://sort.hust.cc/>
740740

741-
<!-- @include: @article-footer.snippet.md -->
741+
<!-- @include: @article-footer.snippet.md -->

0 commit comments

Comments
 (0)