知识卡片
对数底数变换只改变常数
固定且大于1的对数底数互换,只差一个常数倍,因此渐近复杂度常省略底数。
本书的lg n指以2为底;换底只能消去常数因子,不能把lg n、(lg n)^k或lg(lg n)视作同一增长阶。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第3章 运行时间的刻画 · 查看原书依据
By equation (3.19), changing the base of a logarithm from one constant to another changes the value of the logarithm by only a constant factor.
参考来源
- 位置:《算法导论(第4版)》第 3 章 3.3 节“Logarithms”与“The iterated logarithm function”(`OEBPS/chapter003.xhtml`,换底公式图片已核对)。
- 结论依据:第3章式(3.19)给出固定底数间的换底公式,原文指出换底仅改变常数因子;不同对数复合或幂次不能据此合并。
- 原始内容:By equation (3.19), changing the base of a logarithm from one constant to another changes the value of the logarithm by only a constant factor.