Lably
Skip to content

P (complexity)

Class of problems solvable in polynomial time

  • 6 min read
  • 7 chapters

Related on Lably

Through Turing machine, Polynomial and Linear programming

Cobham's thesis holds that P is the class of computational problems that are "efficiently solvable" or "tractable". This is inexact: in practice, some problems not known to be in P have practical solutions, and some that are in P do not, but this is a useful rule of thumb.

Definition

A language L is in P if and only if there exists a deterministic Turing machine M, such that

  • M runs for polynomial time on all inputs
  • For all x in L, M outputs 1
  • For all x not in L, M outputs 0

P can also be viewed as a uniform family of Boolean circuits. A language L is in P if and only if there exists a polynomial-time uniform family of Boolean circuits {Cn:n∈N}, such that

  • For all n∈N, Cn takes n bits as input and outputs 1 bit
  • For all x in L, C|x|(x)=1
  • For all x not in L, C|x|(x)=0

The circuit definition can be weakened to use only a logspace uniform family without changing the complexity class.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Theoretical computer science