- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Chapte:AlgorithmAnalysis
2.1 2/N , 37, √N , N , N log log N , N log N , N log (N2), N log2N , N 1.5, N 2, N2log N , N 3, 2N/ 2, 2N . N log N and N log (N2) grow at the samerate.
2.2 (a) True.
(b) False. A counterexample is T 1(N ) = 2N , T2(N ) = N , and f (N ) = N .
(c) False. A counterexample is T 1(N ) = N 2, T2(N ) = N , and f (N ) = N 2.
(d) False. The same counterexample as in part (c) applies.
2.3 We claim that N log N is the slower growing function. To see this, suppose otherwise. Then, N ε/ √log N would grow slower than log N . Taking logs of both sides, we ?nd that,
under this assumption, ε/ √log N log N grows slower than log log N . But the ?rst expres- sion simpli?es to ε√log N . If L = log N , then we are claiming that ε√L grows slower than log L , or equivalently, that 2εL grows slower than log2 L . But we know that log 2 L = ο(L ), so the original assumption is false, proving the claim.
2.4 Clearly, log k1 N = ο(log k2N ) if The claim is clearly true for L’ Hospital ru’les,
k 1 k 2 , so we need to worry only about positive integers. k = 0 and k = 1. Suppose it is true for k i . Then, by
lim ______ = lim i _______logi
lim ______ = lim i _______
N →∞ N N →∞ N
The second limit is zero by the inductive hypothesis, proving the claim.
2.5 Let f (N ) = 1 when N is even, and N when N is odd. Likewise, let g (N ) = 1 when N is odd, and N when N is even. Then the ratio f (N ) / g (N ) oscillates between 0 and ∞.
2.6 For all these programs, the following analysis will agreewith a simulation:
(I) The running time is O (N ). (II) The running time is O (N2).
(III) The running time is O (N3). (IV) The running time is O (N2).
(V) j can be as large as i 2 , which
could be as large as N 2. k can be as large as j , which is
N 2. The running time is thus proportional to N .N2. N 2, which is O ( N5).
(VI) The if statement is execute
您可能关注的文档
- 一年级下册古诗日积月累填空练习.docx
- 【精编】四年级上册英语试题-期末测试题人教(新起点).docx
- 【校级公开课】必修一unit4earthquakes教学设计及反思.docx
- 【新教材】部编版三年级语文上册期中知识复习.docx
- 【数学】苏教版数学六年级下册第6单元《正比例与反比例》测试卷(一).docx
- 【公开课教案】人教版教材四年级上册《跨越海峡的生命桥》教学设计.docx
- 【常考题】数学中考试卷(及答案).docx
- 【优选】2020年中考数学复习中考数学复习中考数学复习专题19平行四边形(教师版).docx
- 《麦田里的守望者》初中读后感.docx
- 【3套打包】长沙五年级上册英语期末单元综合练习卷(解析版).docx
- 2026年消防设施操作员之消防设备基础知识考试题库500道带答案(新).docx
- 销售岗前培训课件.ppt
- 2026年消防设备操作员考试题库500道(典型题).docx
- 2026年消防设施操作员之消防设备高级技能考试题库300道附答案(实用).docx
- 2026年消防设施操作员之消防设备高级技能考试题库300道标准卷.docx
- 2026年材料员之材料员基础知识考试题库300道附完整答案(全优).docx
- 2026年材料员之材料员基础知识考试题库300道带答案(培优a卷).docx
- 2026年机械员考试题库含答案(轻巧夺冠).docx
- 2026年材料员之材料员基础知识考试题库300道【夺分金卷】.docx
- 2026年期货从业资格之期货法律法规考试题库500道(考点精练).docx
文档评论(0)