diff --git a/docs/chapter_sorting/index.assets/sorting_examples.png b/docs/chapter_sorting/intro_to_sort.assets/sorting_examples.png similarity index 100% rename from docs/chapter_sorting/index.assets/sorting_examples.png rename to docs/chapter_sorting/intro_to_sort.assets/sorting_examples.png diff --git a/docs/chapter_sorting/index.md b/docs/chapter_sorting/intro_to_sort.md similarity index 97% rename from docs/chapter_sorting/index.md rename to docs/chapter_sorting/intro_to_sort.md index 3febe21..f9a9d0f 100644 --- a/docs/chapter_sorting/index.md +++ b/docs/chapter_sorting/intro_to_sort.md @@ -2,14 +2,14 @@ comments: true --- -# 排序算法 +# 排序简介 「排序算法 Sorting Algorithm」使得列表中的所有元素按照从小到大的顺序排列。 - 待排序的列表的 **元素类型** 可以是整数、浮点数、字符、或字符串; - 排序算法可以根据需要设定 **判断规则** ,例如数字大小、字符 ASCII 码顺序、自定义规则; -![sorting_examples](index.assets/sorting_examples.png) +![sorting_examples](intro_to_sort.assets/sorting_examples.png)
Fig. 排序中的不同元素类型和判断规则
diff --git a/mkdocs.yml b/mkdocs.yml index d31cec1..29ea196 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -162,7 +162,7 @@ nav: - 哈希查找: chapter_searching/hashing_search.md - 小结: chapter_searching/summary.md - 排序算法: - - chapter_sorting/index.md + - 排序简介: chapter_sorting/intro_to_sort.md - 冒泡排序: chapter_sorting/bubble_sort.md - 插入排序: chapter_sorting/insertion_sort.md - 快速排序: chapter_sorting/quick_sort.md