Skip to content

Commit 4bbbed0

Browse files
authored
Update Python语言进阶.md
1 parent 20c9315 commit 4bbbed0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Day16-20/Python语言进阶.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
- 评价算法的好坏:渐近时间复杂度和渐近空间复杂度。
88

99
- 渐近时间复杂度的大O标记:
10+
- <img src="http://latex.codecogs.com/gif.latex?O(c)" /> - 常量时间复杂度 - 布隆过滤器 / 哈希存储
11+
- <img src="http://latex.codecogs.com/gif.latex?O(log_2n)" /> - 对数时间复杂度 - 折半查找(二分查找)
12+
- <img src="http://latex.codecogs.com/gif.latex?O(n)" /> - 线性时间复杂度 - 顺序查找 / 桶排序
13+
- <img src="http://latex.codecogs.com/gif.latex?O(n*log_2n)" /> - 对数线性时间复杂度 - 高级排序算法(归并排序、快速排序)
14+
- <img src="http://latex.codecogs.com/gif.latex?O(n^2)" /> - 平方时间复杂度 - 简单排序算法(选择排序、插入排序、冒泡排序)
15+
- <img src="http://latex.codecogs.com/gif.latex?O(n^3)" /> - 立方时间复杂度 - Floyd算法 / 矩阵乘法运算
16+
- <img src="http://latex.codecogs.com/gif.latex?O(2^n)" /> - 几何级数时间复杂度 - 汉诺塔
17+
- <img src="http://latex.codecogs.com/gif.latex?O(n!)" /> - 阶乘时间复杂度 - 旅行经销商问题 - NP
1018
- $O(c)$ - 常量时间复杂度 - 布隆过滤器 / 哈希存储
1119
- $O(log_2n)$ - 对数时间复杂度 - 折半查找(二分查找)
1220
- $O(n)$ - 线性时间复杂度 - 顺序查找 / 桶排序

0 commit comments

Comments
 (0)