Big-O notation

只要预先设定一个常系数c,能够确定上界就可。 

 

Two properties of the Big-O notation:

(1) O(f(n))=O(c∙f(n)) for any constant c>0.

 (2)O(n^a+n^b)=O(n^a) for any constant a>b>0. 

 

时间复杂度可以看成次数,==T(n)经过多少次变成T(1).

全部评论

相关推荐

溱元:前端每年固定死几次,看两集广告就复活了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务