This commit is contained in:
krahets
2024-09-28 09:26:54 +08:00
parent 03a6cd27ca
commit 4ac4f94628
25 changed files with 119 additions and 162 deletions

View File

@@ -12,7 +12,7 @@ comments: true
1. 翻开字典约一半的页数,查看该页的首字母是什么,假设首字母为 $m$ 。
2. 由于在拼音字母表中 $r$ 位于 $m$ 之后,所以排除字典前半部分,查找范围缩小到后半部分。
3. 不断重复步骤 `1.` 步骤 `2.` ,直至找到拼音首字母为 $r$ 的页码为止。
3. 不断重复步骤 `1.` 和步骤 `2.` ,直至找到拼音首字母为 $r$ 的页码为止。
=== "<1>"
![查字典步骤](algorithms_are_everywhere.assets/binary_search_dictionary_step1.png){ class="animation-figure" }