This commit is contained in:
krahets
2023-05-31 01:03:18 +08:00
parent 16874a7e32
commit eb17d3fa5e
3 changed files with 7 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ comments: true
从数据结构与算法的角度来看,积木的各种形状和连接方式代表数据结构,而组装说明书上的一系列步骤则是算法。
![拼装积木](algorithms_are_everywhere.assets/assembling_blocks.jpg)
<p align="center"> Fig. 拼装积木 </p>
**例二:查阅字典**。在字典里,每个汉字都对应一个拼音,而字典是按照拼音的英文字母顺序排列的。假设我们需要查找一个拼音首字母为 $r$ 的字,通常会这样操作:
1. 翻开字典约一半的页数,查看该页首字母是什么(假设为 $m$