P

Definition. P\mathsf{P} is the class of languages decidable in polynomial time on a deterministic single-tape Turing machine: P=⋃k≥1TIME(nk)\mathsf{P} = \bigcup_{k \geq 1} \mathsf{TIME}(n^k), where TIME(t(n))\mathsf{TIME}(t(n)) is the set of languages some decider decides with running time O(t(n))O(t(n)).

P\mathsf{P} is the course's formal version of "efficiently solvable". It is the same class for every reasonable deterministic model, since those models simulate one another with polynomial overhead, and it is closed under composition, since a polynomial of a polynomial is a polynomial. Membership is proved by exhibiting a polynomial-time algorithm; PATHPATH and DIVIDESDIVIDES are the examples of Lecture 9. The question of whether P\mathsf{P} equals the class NP of Lecture 10 is open. Defined in Lecture 9; a complexity class.

Updated
Copyright © 2026 Jared Coleman. All rights reserved.