mirror of
https://github.com/kangjianwei/Data-Structure.git
synced 2026-08-18 01:10:14 +08:00
✏️ 对习题集中的笔误做标记(#16)
This commit is contained in:
@@ -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>
|
||||
|
||||
> 各函数的排列次序如下:
|
||||

|
||||

|
||||
> 各函数的排列次序如下:
|
||||
>
|
||||
> 
|
||||
> 
|
||||
|
||||
> 注:习题集中给出的第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值的范围)各为多少?哪个算法更适宜?请说明理由。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user