What are P and NP?
P is the class of decision problems solvable in polynomial time in the input size. NP is the class of decision problems for which every yes-instance has a certificate (a proposed solution) whose length is bounded by a polynomial in the input size and whose validity can be checked in polynomial time. Because a solution to a problem in P can also be checked in polynomial time, P ⊆ NP.
SAT as an example
SAT asks whether a given Boolean formula has an assignment that makes it true. For a yes-instance, the assignment is a certificate: checking that it satisfies every clause takes polynomial time in the formula size. SAT, including 3-SAT, is NP-complete. Therefore, a polynomial-time algorithm for SAT would imply P = NP. NP-completeness means that every problem in NP can be reduced to the problem in polynomial time.
The open question
Whether P = NP or P ≠ NP remains open. The Clay Mathematics Institute lists P vs. NP as unsolved. P≠NP is a widely studied conjecture, not a proved theorem. Informally, the question asks whether every problem whose proposed solution can be checked efficiently can also be solved efficiently.
