P vs NP asks whether every problem whose solution can be verified quickly can also be solved quickly. If P=NP, search collapses to verification; if P≠NP, there are inherent barriers to efficient algorithms.
The stakes range from cryptography and logistics to AI and scientific discovery.
Formal statement
Let Σ be an alphabet. A decision problem L ⊆ Σ* is in P if there exists a deterministic Turing machine that decides membership in L in time polynomial in the input size. L is in NP if there exists a polynomial-time verifier V(x,w) and a polynomial p such that x∈L iff there is a witness w with |w|≤p(|x|) and V accepts.
P vs NP asks: is P = NP?
If P=NP, optimization, learning, and cryptanalysis change fundamentally.
If P≠NP, widely used cryptography stands on firmer ground.
P=?NP
∃V∈P,p:x∈L⟺∃w,∣w∣≤p(∣x∣)∧V(x,w)=1
Landscape of P, NP, coNP, and NP-complete reductions.
Why it matters in the real world
Many real tasks reduce to NP-complete cores (SAT, Max-Cut, TSP). Today we lean on heuristics and relaxations; P=NP would upend that. Conversely, a proof that P≠NP would formalize the computational limits behind secure communication and resource allocation.
Drug discovery & protein design: combinatorial search over astronomically large spaces.
Scheduling & logistics: exact solutions at global scale vs. approximations.
Security: factorization-based and lattice-based cryptography under threat if P=NP.