请输入您要查询的字词:

 

单词 TimeComplexity
释义

time complexity


1 Time Complexity

Time complexity refers to a function describing how much time it will take an algorithmMathworldPlanetmath to execute, based on the parameters of its input. The exact value of this function is usually ignored in favour of its order, expressed in the so-called Big-O notation (this is based on the limit of the time complexity function as the values of its parameters increase without bound.)

Complexity classes are equivalence classesMathworldPlanetmathPlanetmath of time complexities which are “equal” in Big-O notation. Further, there are meta-complexity classes11This term has been invented for use in this entry. of time complexities which have Big-O expressions that differ only by some specific parameter. For instance, O(n2) and O(n3) are both polynomial time complexity classes, similarly O(2n) and O(3n) are exponential time complexity classes.

2 Example

All comparison-based sorting has time complexity no better than O(nlogn), where n is the number of elements to be sorted. The exact expression for time complexity of a particular sorting algorithm may be something like T(n)=anlogn+b, with a and b constants, which still is order O(nlogn).

Titletime complexity
Canonical nameTimeComplexity
Date of creation2013-03-22 11:47:39
Last modified on2013-03-22 11:47:39
Ownerakrowne (2)
Last modified byakrowne (2)
Numerical id10
Authorakrowne (2)
Entry typeDefinition
Classificationmsc 68Q15
Definespolynomial time
Definespolynomial-time
Definesexponential time
Definesexponential-time
Definescomplexity classes
Definesmeta-complexity classes
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 22:11:37