更改

跳到导航 跳到搜索
添加171字节 、 2021年1月26日 (二) 17:57
第84行: 第84行:     
==Complexity as a function of input size==
 
==Complexity as a function of input size==
 +
复杂度作为关于输入长度的函数
 +
    
:''For clarity, only time complexity is considered in this section, but everything applies (with slight modifications) to the complexity with respect to other resources.''  
 
:''For clarity, only time complexity is considered in this section, but everything applies (with slight modifications) to the complexity with respect to other resources.''  
第103行: 第105行:  
The worst-case complexity is the maximum of the complexity over all inputs of size , and the average-case complexity is the average of the complexity over all inputs of size  (this makes sense, as the number of possible inputs of a given size is finite). Generally, when "complexity" is used without being further specified, this is the worst-case time complexity that is considered.
 
The worst-case complexity is the maximum of the complexity over all inputs of size , and the average-case complexity is the average of the complexity over all inputs of size  (this makes sense, as the number of possible inputs of a given size is finite). Generally, when "complexity" is used without being further specified, this is the worst-case time complexity that is considered.
   −
最坏情况复杂性是所有大小输入的最大复杂性,平均情况复杂性是所有大小输入的平均复杂性(这是有道理的,因为给定大小的可能输入的数量是有限的)。一般来说,如果不进一步说明就使用“复杂性” ,那么这就是考虑的最坏情况时间复杂性。
+
'''<font color="#ff8000">最坏情况复杂度 worst-case complexity</font>'''是所有输入{{mvar|n}}长度的最大复杂度,'''<font color="#ff8000">平均情况复杂度 average-case complexity</font>'''是所有输入{{mvar|n}}长度的平均复杂度(这是有道理的,因为给定长度的可能输入的数量是有限的)。一般来说,如果使用“复杂度”且不进行进一步说明 ,即考虑最坏情况时间复杂度。
    
==Asymptotic complexity==
 
==Asymptotic complexity==
307

个编辑

导航菜单