Math 2.0

Computer science Computational complexity: resources and classes Concept

Time complexity

Summary

The time complexity of an algorithm is the number of elementary steps it takes, as a function of the length of its input. Usually one takes the worst case over all inputs of a given length. It is stated up to constant factors with big O notation, such as O(n)O(n), O(nlog⁡n)O(n \log n) or O(2n)O(2^n). The time complexity of a problem is that of the fastest algorithm solving it, and it defines classes such as DTIME(f(n))\mathrm{DTIME}(f(n)) and P. Time is the main resource studied in computational complexity theory.

Where this leads

12 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Time_complexity
About this page
TagT00W8RQT8E
URIm2://T00W8RQT8E
Kindconcept
WritingW0 stub
MSC68Q25, 68Q15, 68W40
Same as
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by

Results about this

Definitions