« Complexité en temps » : différence entre les versions


(Page créée avec « == Domaine == Category:Vocabulary == Définition == == Termes privilégiés == == Anglais == === Time complexity === In computer science, the time co... »)
 
m (Remplacement de texte — « Termes privilégiés » par « Français »)
Ligne 8 : Ligne 8 :
   
   


== Termes privilégiés ==
== Français ==


   
   

Version du 31 décembre 2018 à 15:55

Domaine

Définition

Français

Anglais

Time complexity

In computer science, the time complexity is the computational complexity that measures or estimates the time taken for running an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by the algorithm, supposing that an elementary operation takes a fixed amount of time to perform. Thus, the amount of time taken and the number of elementary operations performed by the algorithm differ by at most a constant factor.

Since an algorithm's running time may vary with different inputs of the same size, one commonly considers the worst-case time complexity, which is the maximum amount of time taken on inputs of a given size. Less common, and usually specified explicitly, is the average-case complexity, which is the average of the time taken on inputs of a given size (this makes sense, as there is only a finite number of possible inputs of a given size).