- 6
- 0
- 约小于1千字
- 约 21页
- 2022-04-07 发布于上海
- 举报
1;第1页/共21页;;Since O-notation describes an upper bound, when we use it to bound the worst-case running time of an algorithm, we have a bound on the running time of the algorithm on every input. Thus, the O(n2) bound on worst-case running time of insertion sort also applies to its running time on every input. The Θ(n2) bound on the worst-case running time of insertion sort, however, does not imply a Θ(n2) bound on the running time of insertion sort on every input.For example, we saw in Chapter 2 that when the input is already sorted, insertion sort runs in Θ(n) time.;第4页/共21页;第5页/共21页;第6页/共21页;
您可能关注的文档
最近下载
- 胸腔闭式引流及护理重点.ppt VIP
- 运筹学第3版熊伟编著习题答案.doc VIP
- 11J930住宅建筑构造图集.docx VIP
- 标准图集-03S402-室内管道支架及吊架.pdf VIP
- SL∕T 618-2021 水利水电工程可行性研究报告编制规程.pdf
- 电流与电压和电阻的关系说课(1) --2023-2024学年人教版 九年级物理上学期.pptx VIP
- 2026年智能网联汽车装调运维员知识题库(附答案).docx
- 22J603-1 铝合金门窗(建筑图集).docx
- 2025年特许金融分析师回归分析中的多重共线性问题专题试卷及解析.pdf VIP
- 2025年质量工程师ISO_TS16949(IATF16949)标准对MSA的要求专题试卷及解析.pdf VIP
原创力文档

文档评论(0)