CMP设计分享 http://blog.sciencenet.cn/u/accsys 没有逆向思维就没有科技原创。 不自信是科技创新的大敌。

博文

The proof of time complexity of the algorithm is not reliabl

已有 2866 次阅读 2015-6-16 14:27 |个人分类:科研讨论|系统分类:科研笔记| time, Complexity, not, reliable

The proof of time complexity of the algorithm is not reliable

Jiang Yongjiang

Email: accsys@126.com

The polynomial in the algorithm theory is P=  ,

Where aiis the coefficient, k is the positive integer, and n is the integer variable.We know that any integer n can be expressed  as n =, bjis decimal number.Thus we have

          P=.

So, the highest order item aknk becomes akbmk10mk.

For examplen=100+3×10mP=5n+n2Thus

P = 5(1+3×10m)+ (1+3×10m)2

= 5+15×10m+1+6×10m+9×102m

= 6+21×10m+9×102m.

The highest order n2 becomes 9×102m.

Because Wikipedia says:

"The time complexity of an algorithm is commonly expressed using big O notation, which excludes coefficients and lower order terms."

Therefore we haveO(nk) = O(10mk), where n is variable and m is also.

The time complexity of the algorithm represented by large O is a mistake. The above sentence is the wrong rule.This is the key to the error.

The time complexity of the research algorithm must take all the time of the algorithm into account .

2015-6-16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



https://blog.sciencenet.cn/blog-340399-898416.html

上一篇:算法多项式时间复杂度不靠谱的证明
下一篇:科学网将成为理论科学研究成果发表最好的地方
收藏 IP: 118.187.8.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (5 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-12-28 23:53

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部