更改

跳到导航 跳到搜索
添加130字节 、 2020年11月14日 (六) 08:50
第131行: 第131行:  
If the input size is n, the time taken can be expressed as a function of n. Since the time taken on different inputs of the same size can be different, the worst-case time complexity T(n) is defined to be the maximum time taken over all inputs of size n. If T(n) is a polynomial in n, then the algorithm is said to be a polynomial time algorithm. Cobham's thesis argues that a problem can be solved with a feasible amount of resources if it admits a polynomial time algorithm.
 
If the input size is n, the time taken can be expressed as a function of n. Since the time taken on different inputs of the same size can be different, the worst-case time complexity T(n) is defined to be the maximum time taken over all inputs of size n. If T(n) is a polynomial in n, then the algorithm is said to be a polynomial time algorithm. Cobham's thesis argues that a problem can be solved with a feasible amount of resources if it admits a polynomial time algorithm.
   −
如果输入大小为 n,所花费的时间可以表示为 n 的函数。由于同一大小的不同输入所占用的时间可能不同,最坏情况下的时间复杂度 t (n)被定义为大小 n 的所有输入所占用的最大时间。如果 t (n)是 n 中的多项式,那么该算法称为多项式时间算法。Cobham 的论文认为,如果一个问题采用多项式时间算法,那么它可以用可行的资源量来解决。
+
如果输入大小为 n,所花费的时间可以表示为 n 的函数。由于同一大小的不同输入所占用的时间可能不同,最坏情况下的时间复杂度 T(n)被定义为大小为 n 的所有输入所占用的最大时间。如果 T(n)是 n 中的多项式,那么该算法称为'''<font color="#ff8000"> 多项式时间Polynomial time</font>'''算法。'''<font color="#ff8000"> 科巴姆Cobham</font>'''的论文认为,如果一个问题采用'''<font color="#ff8000"> 多项式时间算法</font>''',那么它可以用可行的资源量来解决。
 
  −
 
      
==Machine models and complexity measures机器模型与复杂性度量==
 
==Machine models and complexity measures机器模型与复杂性度量==
561

个编辑

导航菜单