diff --git a/chapter_array_and_linkedlist/array.md b/chapter_array_and_linkedlist/array.md index a5cd5a3fb..c38247cde 100755 --- a/chapter_array_and_linkedlist/array.md +++ b/chapter_array_and_linkedlist/array.md @@ -2,7 +2,7 @@ comments: true --- -# 4.1.   数组 +# 4.1.   数组(Array) 「数组 Array」是一种将 **相同类型元素** 存储在 **连续内存空间** 的数据结构,将元素在数组中的位置称为元素的「索引 Index」。 diff --git a/chapter_array_and_linkedlist/linked_list.md b/chapter_array_and_linkedlist/linked_list.md index 8a5130309..77e4a1d6f 100755 --- a/chapter_array_and_linkedlist/linked_list.md +++ b/chapter_array_and_linkedlist/linked_list.md @@ -2,7 +2,7 @@ comments: true --- -# 4.2.   链表 +# 4.2.   链表(Linked List) !!! note "引言" diff --git a/chapter_array_and_linkedlist/list.md b/chapter_array_and_linkedlist/list.md index 2bd56684b..5e68d4c2f 100755 --- a/chapter_array_and_linkedlist/list.md +++ b/chapter_array_and_linkedlist/list.md @@ -2,7 +2,7 @@ comments: true --- -# 4.3.   列表 +# 4.3.   列表(List) **由于长度不可变,数组的实用性大大降低**。在很多情况下,我们事先并不知道会输入多少数据,这就为数组长度的选择带来了很大困难。长度选小了,需要在添加数据中频繁地扩容数组;长度选大了,又造成内存空间的浪费。 diff --git a/chapter_graph/graph.md b/chapter_graph/graph.md index 2645b638a..6726f0a18 100644 --- a/chapter_graph/graph.md +++ b/chapter_graph/graph.md @@ -2,7 +2,7 @@ comments: true --- -# 9.1.   图 +# 9.1.   图(Graph) 「图 Graph」是一种非线性数据结构,由「顶点 Vertex」和「边 Edge」组成。我们可将图 $G$ 抽象地表示为一组顶点 $V$ 和一组边 $E$ 的集合。例如,以下表示一个包含 5 个顶点和 7 条边的图 diff --git a/chapter_hashing/hash_map.md b/chapter_hashing/hash_map.md index eaba30d6f..7d310ed85 100755 --- a/chapter_hashing/hash_map.md +++ b/chapter_hashing/hash_map.md @@ -2,7 +2,7 @@ comments: true --- -# 6.1.   哈希表 +# 6.1.   哈希表(Hash Map) 哈希表通过建立「键 key」和「值 value」之间的映射,实现高效的元素查找。具体地,输入一个 key ,在哈希表中查询并获取 value ,时间复杂度为 $O(1)$ 。 diff --git a/chapter_heap/heap.md b/chapter_heap/heap.md index c8384eaa2..00938aa58 100644 --- a/chapter_heap/heap.md +++ b/chapter_heap/heap.md @@ -2,7 +2,7 @@ comments: true --- -# 8.1.   堆 +# 8.1.   堆(Heap) 「堆 Heap」是一棵限定条件下的「完全二叉树」。根据成立条件,堆主要分为两种类型: diff --git a/chapter_stack_and_queue/deque.md b/chapter_stack_and_queue/deque.md index 653adea3b..b2956de59 100644 --- a/chapter_stack_and_queue/deque.md +++ b/chapter_stack_and_queue/deque.md @@ -2,7 +2,7 @@ comments: true --- -# 5.3.   双向队列 +# 5.3.   双向队列(Deque) 对于队列,我们只能在头部删除或在尾部添加元素,而「双向队列 Deque」更加灵活,在其头部和尾部都能执行元素添加或删除操作。 diff --git a/chapter_stack_and_queue/queue.md b/chapter_stack_and_queue/queue.md index 3c5f5cc3a..fcffa5b75 100755 --- a/chapter_stack_and_queue/queue.md +++ b/chapter_stack_and_queue/queue.md @@ -2,7 +2,7 @@ comments: true --- -# 5.2.   队列 +# 5.2.   队列(Queue) 「队列 Queue」是一种遵循「先入先出 first in, first out」数据操作规则的线性数据结构。顾名思义,队列模拟的是排队现象,即外面的人不断加入队列尾部,而处于队列头部的人不断地离开。 diff --git a/chapter_stack_and_queue/stack.md b/chapter_stack_and_queue/stack.md index 86cf65648..dbff303d4 100755 --- a/chapter_stack_and_queue/stack.md +++ b/chapter_stack_and_queue/stack.md @@ -2,7 +2,7 @@ comments: true --- -# 5.1.   栈 +# 5.1.   栈(Stack) 「栈 Stack」是一种遵循「先入后出 first in, last out」数据操作规则的线性数据结构。我们可以将栈类比为放在桌面上的一摞盘子,如果需要拿出底部的盘子,则需要先将上面的盘子依次取出。 diff --git a/chapter_tree/binary_tree.md b/chapter_tree/binary_tree.md index e2b21d778..e0c193028 100644 --- a/chapter_tree/binary_tree.md +++ b/chapter_tree/binary_tree.md @@ -2,7 +2,7 @@ comments: true --- -# 7.1.   二叉树 +# 7.1.   二叉树(Binary Tree) 「二叉树 Binary Tree」是一种非线性数据结构,代表着祖先与后代之间的派生关系,体现着“一分为二”的分治逻辑。类似于链表,二叉树也是以结点为单位存储的,结点包含「值」和两个「指针」。