Skip to content

Commit

Permalink
✏️ 对习题集中的笔误做标记(kangjianwei#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangjianwei committed Mar 19, 2020
1 parent 5175d76 commit 200aad1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 习题解析/01 绪论/第01章 绪论.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,12 @@ int Time (int n)
### 1.10 按增长率由小至大的顺序排列下列各函数:
#### 2<sup>100</sup>,(3/2)<sup>n</sup>,(2/3)<sup>n</sup>,(4/3)<sup>n</sup>,n<sup>n</sup>,n<sup>3/2</sup>,n<sup>2/3</sup>,√n,n!,n,log<sub>2</sub>n,n/log<sub>2</sub>n,log<sup>2</sup><sub>2</sub>n,log<sub>2</sub>(log<sub>2</sub>n),nlog<sub>2</sub>n,n<sup>log<sub>2</sub>n</sup>
> 各函数的排列次序如下:
![1.10.1](_v_images/20181125002335576_8701.png)
![1.10.2](_v_images/20181125002344865_51.png)
> 各函数的排列次序如下:
>
> ![1.10.1](_v_images/20181125002335576_8701.png)
> ![1.10.2](_v_images/20181125002344865_51.png)
> 注:习题集中给出的第12个函数为n/logn2,这应当是笔误,实际为n/log2n
### 1.11 已知有实现同一功能的两个算法,其时间复杂度分别为O(2<sup>n</sup>)和O(n<sup>10</sup>),假设现实计算机可连续运算的时间为10<sup>7</sup>秒(100多天),又每秒可执行基本操作(根据这些操作来估算算法时间复杂度)10<sup>5</sup>次。试问在此条件下,这两个算法可解问题的规模(即n值的范围)各为多少?哪个算法更适宜?请说明理由。
Expand Down

0 comments on commit 200aad1

Please sign in to comment.