Adding the chapter of hello_algo and bug fixes (#1217)
* Add the chapter of hello_algo * Remove the comment field from the landing page * Update the link in the landing page * Fix a typo * Bug fiixes * Fix the bug of underlined terms * Fix the format of English terms * Fix "静态数据结构" vs. "动态数据结构" in classification_of_data_structure.md
This commit is contained in:
parent
043085d0ea
commit
5e2eef0b4d
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
## ASCII 字符集
|
## ASCII 字符集
|
||||||
|
|
||||||
<u>ASCII(码)</u>是最早出现的字符集,其全称为 American Standard Code for Information Interchange(美国标准信息交换代码)。它使用 7 位二进制数(一个字节的低 7 位)表示一个字符,最多能够表示 128 个不同的字符。如下图所示,ASCII 码包括英文字母的大小写、数字 0 ~ 9、一些标点符号,以及一些控制字符(如换行符和制表符)。
|
<u>ASCII 码</u>是最早出现的字符集,其全称为 American Standard Code for Information Interchange(美国标准信息交换代码)。它使用 7 位二进制数(一个字节的低 7 位)表示一个字符,最多能够表示 128 个不同的字符。如下图所示,ASCII 码包括英文字母的大小写、数字 0 ~ 9、一些标点符号,以及一些控制字符(如换行符和制表符)。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
- **基于数组可实现**:栈、队列、哈希表、树、堆、图、矩阵、张量(维度 $\geq 3$ 的数组)等。
|
- **基于数组可实现**:栈、队列、哈希表、树、堆、图、矩阵、张量(维度 $\geq 3$ 的数组)等。
|
||||||
- **基于链表可实现**:栈、队列、哈希表、树、堆、图等。
|
- **基于链表可实现**:栈、队列、哈希表、树、堆、图等。
|
||||||
|
|
||||||
基于数组实现的数据结构也称“静态数据结构”,这意味着此类数据结构在初始化后长度不可变。相对应地,基于链表实现的数据结构也称“动态数据结构”,这类数据结构在初始化后,仍可以在程序运行过程中对其长度进行调整。
|
链表在初始化后,仍可以在程序运行过程中对其长度进行调整,因此也称“动态数据结构”。数组在初始化后长度不可变,因此也称“静态数据结构”。值得注意的是,数组可通过重新分配内存实现长度变化,从而具备一定的“动态性”。
|
||||||
|
|
||||||
!!! tip
|
!!! tip
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ $$
|
|||||||
|
|
||||||
根据以上内容,我们可以总结出动态规划的常用术语。
|
根据以上内容,我们可以总结出动态规划的常用术语。
|
||||||
|
|
||||||
- 将数组 `dp` 称为<u>$dp$(表)</u>,$dp[i]$ 表示状态 $i$ 对应子问题的解。
|
- 将数组 `dp` 称为 <u>dp 表</u>,$dp[i]$ 表示状态 $i$ 对应子问题的解。
|
||||||
- 将最小子问题对应的状态(第 $1$ 阶和第 $2$ 阶楼梯)称为<u>初始状态</u>。
|
- 将最小子问题对应的状态(第 $1$ 阶和第 $2$ 阶楼梯)称为<u>初始状态</u>。
|
||||||
- 将递推公式 $dp[i] = dp[i-1] + dp[i-2]$ 称为<u>状态转移方程</u>。
|
- 将递推公式 $dp[i] = dp[i-1] + dp[i-2]$ 称为<u>状态转移方程</u>。
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
1962 年 G. M. Adelson-Velsky 和 E. M. Landis 在论文“An algorithm for the organization of information”中提出了<u>AVL(树)</u>。论文中详细描述了一系列操作,确保在持续添加和删除节点后,AVL 树不会退化,从而使得各种操作的时间复杂度保持在 $O(\log n)$ 级别。换句话说,在需要频繁进行增删查改操作的场景中,AVL 树能始终保持高效的数据操作性能,具有很好的应用价值。
|
1962 年 G. M. Adelson-Velsky 和 E. M. Landis 在论文“An algorithm for the organization of information”中提出了 <u>AVL 树</u>。论文中详细描述了一系列操作,确保在持续添加和删除节点后,AVL 树不会退化,从而使得各种操作的时间复杂度保持在 $O(\log n)$ 级别。换句话说,在需要频繁进行增删查改操作的场景中,AVL 树能始终保持高效的数据操作性能,具有很好的应用价值。
|
||||||
|
|
||||||
## AVL 树常见术语
|
## AVL 树常见术语
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ extra:
|
|||||||
social:
|
social:
|
||||||
- icon: fontawesome/brands/github
|
- icon: fontawesome/brands/github
|
||||||
link: https://github.com/krahets
|
link: https://github.com/krahets
|
||||||
- icon: fontawesome/brands/twitter
|
- icon: fontawesome/brands/x-twitter
|
||||||
link: https://twitter.com/krahets
|
link: https://twitter.com/krahets
|
||||||
- icon: fontawesome/solid/code
|
- icon: fontawesome/solid/code
|
||||||
link: https://leetcode.cn/u/jyd/
|
link: https://leetcode.cn/u/jyd/
|
||||||
|
Loading…
Reference in New Issue
Block a user