《算法导论》第三章-第2节_练习(参考答案)

这篇博客详细解答了《算法导论》第三章第二节的全部习题,包括函数单调性证明、斯特林近似公式应用、阶乘的渐进行为分析、对数函数的比较、斐波那契数列的性质以及黄金比例的数学证明等。
摘要由CSDN通过智能技术生成

算法导论(第三版)参考答案:练习3.2-1,练习3.2-2,练习3.2-3,练习3.2-4,练习3.2-5,练习3.2-6,练习3.2-7,练习3.2-8

Exercise 3.2-1

Show that if f(n) and g(n) are monotonically increasing functions, then so are the functions f(n)+g(n) and f(g(n)) , and if f(n) and g(n) are in addition nonnegative, then f(n)g(n) is monotonically increasing.

f(n) , g(n) 单调递增,则:

f(m)f(n) for mng(m)f(n) for mn

可得:
f(m)+g(m)f(n)+g(n)f(g(m))f(g(n))f(m)g(m)f(n)g(n),if f(n),g(n) are nonnegative.

所以,得证。

Exercise 3.2-2

Prove equation (3.16)

>alogbc=clogba>

alogbc=alogaclogab=(alogac)1logab=clogba

Exercise 3.2-3

Prove equation (3.19). Also prove that n!=ω(2n) and n!=o(nn) .

>lg(n!)=Θ(nlgn)>(3.19)

根据斯特林近似公式

lg(n!)=lg(2πn(
  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值