Today, I came across a post from OpenAI presenting a proof that VP ≠ VNP, which inspired me to revisit and summarize the P vs NP problem.
1. Time Complexity
Let
- Polynomial Time:
, where is a fixed non-negative constant. - Typical Exponential Time:
, where is a fixed constant.
As the input size increases, exponential functions grow significantly faster than polynomial functions.
2. P (Polynomial Time)
P is the class of decision problems that can be solved by a Deterministic Turing Machine (DTM) in polynomial time.
Deterministic means that the next computational step is uniquely determined by the current state and input symbol.
Key characteristic: solvable in polynomial time.
References: [1] §1, [2]
3. NP (Nondeterministic Polynomial Time)
NP is the class of decision problems that can be solved by a Nondeterministic Turing Machine (NTM) in polynomial time.
Nondeterministic means that computation may branch into multiple possible paths. An input is accepted if at least one computational path accepts it.
Equivalently, NP consists of decision problems whose Yes instances have polynomial-length certificates that can be verified in polynomial time.
Key characteristic: Yes certificates can be verified in polynomial time.
NP does not stand for Non-Polynomial, nor does it imply that a problem cannot be solved in polynomial time.
References: [1] §1, [2]
4. Reduction
If there exists a polynomial-time computable function
Then problem
This means that solving
Polynomial-time reduction is also transitive.
References: [1] Definition 3, Proposition 1
5. NP-Hard
A problem
NP-Hard establishes a lower bound on computational difficulty but does not impose an upper bound.
An NP-Hard problem does not necessarily belong to NP and may even be undecidable.
Key characteristic: at least as hard as every problem in NP.
References: [1] §2, [3] Chapter 12
6. NP-Complete (NPC)
An NP-Complete problem must satisfy two conditions:
- It belongs to NP.
- It is NP-Hard.
Since every NP problem can be reduced to any NP-Complete problem, all NP-Complete problems are mutually reducible.
Therefore, all NP-Complete problems are equivalent with respect to polynomial-time reducibility, but they do not necessarily have identical time complexities.
Key characteristic: the hardest class of problems within NP under polynomial-time reductions.
Reference: [1] Definition 4 (mutual reducibility follows directly from the definition)
7. The P vs NP Problem
The fundamental question is whether every decision problem whose Yes certificates can be verified in polynomial time can also be solved in polynomial time.
Since every NP problem can be reduced to any NP-Complete problem:
- Finding a polynomial-time algorithm for any NP-Complete problem
would prove
. - Proving that any NP-Complete problem cannot be solved in polynomial
time would prove
.
The prevailing conjecture is that
Reference: [1] Proposition 1(c) (the equivalence follows from this proposition)
8. Summary
| Class | Polynomial-Time Solvability | Polynomial-Time Verification of Yes Certificates | All NP Problems Reducible to It |
|---|---|---|---|
| P | Yes | Yes | No, assuming P ≠ NP |
| NP | Not necessarily | Yes | Not necessarily |
| NP-Hard | Not necessarily | Not necessarily | Yes |
| NP-Complete | Unknown | Yes | Yes |
References
[1] Stephen Cook — The P versus NP Problem, Clay Mathematics Institute.
[2] Michael Sipser — Theory of Computation, Lecture 14, MIT OpenCourseWare.
[3] Jeff Erickson — Algorithms, Chapter 12: NP-Hardness, University of Illinois Urbana-Champaign.
