Skip to content

Commit d1c210b

Browse files
committed
update category
1 parent 9fb84de commit d1c210b

160 files changed

Lines changed: 182 additions & 1019 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22

33
算法参考书籍列表,建议按照顺序阅读:
44

5+
* 《Hello算法》
56
* 《算法图解》
67
* 《啊哈算法》
78
* 《算法导论》
8-
* 《人工智能算法图解》
99
* 《labuladong的算法小抄》
10+
* 《人工智能算法图解》
1011

1112
## 章节说明
1213

13-
1. 【第一章】线性表数据结构:数组、链表、队列、栈。
14-
2. 【第二章】各类排序算法:(冒泡、插入、选择)、(快排、归并)、(桶、计数、基数)
15-
3. 【第三章】各类搜索算法:二分查找、调表、散列表、哈希算法
16-
4. 【第四章】树数据结构:二叉树、红黑树、递归树、堆
17-
5. 【第五章】图数据结构
14+
1. 【第一章】基础数据结构:数组、链表、队列、栈、哈希表
15+
2. 【第二章】树数据结构:二叉树、红黑树、递归树、堆
16+
3. 【第三章】图数据结构
17+
4. 【第四章】各类排序算法:(冒泡、插入、选择)、(快排、归并)、(桶、计数、基数)
18+
5. 【第五章】各类搜索算法:二分查找、调表、散列表、哈希算法
1819
6. 【第六章】字符串匹配算法
19-
7. 【第七章】贪心算法
20-
8. 【第八章】分治算法
21-
9. 【第九章】回溯算法
22-
10. 【第十章】动态规划算法
20+
7. 【第七章】分治算法
21+
8. 【第八章】回溯算法
22+
9. 【第九章】动态规划算法
23+
10. 【第十章】贪心算法
2324
11. 【第十一章】高级数据结构和算法
2425
12. 【第十二章】AI算法
2526
13. 【第十三章】算法示例程序
@@ -29,15 +30,15 @@
2930

3031
书中经典的算法示例使用python3语言实现。
3132

32-
整个工程分为三个部分。第1部分是阅读经典算法书籍后自己的总结,作为基础算法部分。
33-
第2部分是人工智能AI算法示例,第3部分是自己在LeetCode上面的刷题总结
33+
整个工程分为三个部分。第一部分是阅读经典算法书籍后自己的总结,作为基础算法部分。
34+
第二部分是人工智能AI算法示例,第三部分是自己在LeetCode上面的刷题总结
3435

3536
从2013年就开始写这个系列,写到动态规划后就停了,那段时间实在是太懒了。
3637
今年2020年开始决定继续把之前的捡起来,重新更新这个系列,做事情得有始有终,希望能把这个系列坚持写完。
3738

3839
有任何问题都可以联系我:
3940

40-
* Email: yidao620@gmail.com
41+
* Email: yidao620@gmail.com
4142
* Blog: https://www.xncoding.com/
4243
* GitHub: https://github.com/yidao620c
4344

@@ -67,12 +68,12 @@ Meanwhile you'd better follow the rules below
6768

6869
Copyright (c) 2013-2020 [Xiong Neng](https://www.xncoding.com/) and other contributors
6970

70-
Licensed under the Apache License, Version 2.0 (the "License");
71+
Licensed under the Apache License, Version 2.0 (the "License");
7172
you may not use this file except in compliance with the License. You may obtain a copy of the License at
7273

7374
http://www.apache.org/licenses/LICENSE-2.0
7475

75-
Unless required by applicable law or agreed to in writing,
76-
software distributed under the License is distributed on an "AS IS" BASIS,
77-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
76+
Unless required by applicable law or agreed to in writing,
77+
software distributed under the License is distributed on an "AS IS" BASIS,
78+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7879
See the License for the specific language governing permissions and limitations under the License.

algorithms/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
"""
44
《算法导论》第3版,使用python3语言实现书中经典的算法示例
55
"""
6-
7-
File renamed without changes.

algorithms/hello_algo/chapter06_hashing/array_hash_map.py renamed to algorithms/c01_data_structure/hashing/array_hash_map.py

File renamed without changes.

algorithms/hello_algo/chapter06_hashing/built_in_hash.py renamed to algorithms/c01_data_structure/hashing/built_in_hash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"""
22
File: built_in_hash.py
33
Created Time: 2023-06-15
4-
Author: Krahets (krahets@163.com)
54
"""
65

76
import sys
87
from pathlib import Path
98

109
sys.path.append(str(Path(__file__).parent.parent))
11-
from algorithms.hello_algo.modules import ListNode
10+
from algorithms.models import ListNode
1211

1312
"""Driver Code"""
1413
if __name__ == "__main__":

algorithms/hello_algo/chapter06_hashing/hash_map.py renamed to algorithms/c01_data_structure/hashing/hash_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pathlib import Path
99

1010
sys.path.append(str(Path(__file__).parent.parent))
11-
from algorithms.hello_algo.modules import print_dict
11+
from algorithms.models import print_dict
1212

1313
"""Driver Code"""
1414
if __name__ == "__main__":

algorithms/hello_algo/chapter06_hashing/hash_map_chaining.py renamed to algorithms/c01_data_structure/hashing/hash_map_chaining.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"""
22
File: hash_map_chaining.py
33
Created Time: 2023-06-13
4-
Author: Krahets (krahets@163.com)
54
"""
65

76
import sys
87
from pathlib import Path
98

109
sys.path.append(str(Path(__file__).parent.parent))
11-
from algorithms.hello_algo.chapter06_hashing.array_hash_map import Pair
10+
from algorithms.c01_data_structure.hashing.array_hash_map import Pair
1211

1312

1413
class HashMapChaining:

algorithms/hello_algo/chapter06_hashing/hash_map_open_addressing.py renamed to algorithms/c01_data_structure/hashing/hash_map_open_addressing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"""
22
File: hash_map_open_addressing.py
33
Created Time: 2023-06-13
4-
Author: Krahets (krahets@163.com)
54
"""
65

76
import sys
87
from pathlib import Path
98

109
sys.path.append(str(Path(__file__).parent.parent))
11-
from algorithms.hello_algo.chapter06_hashing.array_hash_map import Pair
10+
from algorithms.c01_data_structure.hashing.array_hash_map import Pair
1211

1312

1413
class HashMapOpenAddressing:

0 commit comments

Comments
 (0)