SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Computational complexity

Computational complexity classifies problems by the resources an algorithm needs, usually the number of steps as a function of the length of the input. Hartmanis and Stearns opened their 1965 paper by noting that Turing had separated the computable sequences from the noncomputable ones, while some computable sequences are very easy to compute and others "seem to have an inherent complexity that makes them difficult to compute". They classified sequences by how fast a multitape Turing machine can print them.1 They proved a speed-up theorem, under which multiplying the time bound by a constant leaves the class unchanged, and a theorem giving a limit condition under which more time computes strictly more.1

The central classes are P and NP. In Cook's Clay Institute description, P is the set of languages accepted by a Turing machine whose worst-case running time is at most n^k + k for some k. NP is the set of languages whose yes-instances have certificates of polynomial length that a polynomial-time checking relation verifies.2 Cook notes that Turing machines can simulate more efficient models, such as many tapes or random access memory, with at most a squaring or cubing of the time, so P does not depend on the model chosen.2 Cobham and Edmonds introduced polynomial-time computation in the 1960s. Cook states a feasibility thesis, that a natural problem has a feasible algorithm if and only if it has a polynomial-time one, and concedes that a program needing n^100 steps could never run even on an input of size 10.2

Whether P equals NP is open. The Clay Mathematics Institute lists the problem as unsolved.3 Complexity results concern the worst case and asymptotic growth, so they do not by themselves say how hard specific instances are.

Source · On the Computational Complexity of Algorithms (opens in a new tab) · Transactions of the American Mathematical Society

References

  1. On the Computational Complexity of Algorithms (opens in a new tab) · Transactions of the American Mathematical Society (authors: J. Hartmanis and R. E. Stearns) · J. Hartmanis and R. E. Stearns, Trans. Amer. Math. Soc. 117 (1965), pp. 285-306, DOI 10.1090/S0002-9947-1965-0170805-7; Internet Archive copy of the AMS PDF. ↩ ↩
  2. The P versus NP Problem (opens in a new tab) · Clay Mathematics Institute · Definitions of P and NP, the model-independence remark and the feasibility thesis. ↩ ↩ ↩
  3. P vs NP (opens in a new tab) · Clay Mathematics Institute · Problem page, labelled Unsolved when opened on 26 November 2026. ↩

Research articles

In the news

See what connects to it on the map of ideas →

See also