1. Complexity [20 marks] (A)Prove that is both and . [4 marks] (B)Consider the following functions of . Put them in order from smallest to largest asymptotic growth rate. [8 marks] (C)Let be the processing time of an algorithm for the input of size . Which is the asymptotic time complexity of this algorithm, or ? Please show your working to justify your answer. [8 marks]
时间: 2023-03-12 22:04:39 浏览: 181
评估算法的时间复杂度(time complexity)的技巧小结
5星 · 资源好评率100%
A:证明 既是 又是 。[4 分]
B:考虑 的以下函数。将它们按从最小到最大的渐近增长率排序。[8 分]
C:让 是算法对输入大小 的处理时间。该算法的渐近时间复杂度是 还是 ?请出示您的计算步骤以证明您的答案。[8 分]
阅读全文