TOPICS
Search

P Versus NP Problem


The P versus NP problem, often shortened to P versus NP, is the determination of whether all NP-problems are actually P-problems. If P!=NP, then some NP-problems cannot be solved in polynomial time. This does not imply that every NP-problem requires an exhaustive search. If P=NP, then every NP-problem has a polynomial time algorithm (Cook).

The problem is one of the Millennium Prize Problems and remains unsolved. Determination of the status of this question would have dramatic consequences for the potential speed with which many difficult and important problems could be solved.

Naik and Selman's hypothesis B states that every total function on binary strings computable in polynomial time with one nonadaptive batch of queries to an NP-problem is computable in polynomial time with O(logn) adaptive queries to an NP-problem, where n is the input length. Nonadaptive queries are fixed before any answers arrive, while adaptive queries can depend on previous answers. Leitmeir (2026) reports a Lean proof that this inclusion holds if and only if P=NP.

In the Season 1 episode "Uncertainty Principle" (2005) of the television crime drama NUMB3RS, math genius Charlie Eppes uses the game minesweeper as an analogy for the P vs. NP problem.


See also

Complexity Theory, Millennium Prize Problems, NP-Problem, P-Problem

Explore with Wolfram|Alpha

References

Borwein, J. and Bailey, D. Mathematics by Experiment: Plausible Reasoning in the 21st Century. Wellesley, MA: A K Peters, pp. 4-5, 2003.Cook, S. "The P Versus NP Problem." https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf.Leitmeir, L. "Functional NP Query Compression Is Equivalent to P = NP." Palomar Registry, Nov. 26, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-26-000052&version=2.Naik, A. V. and Selman, A. L. "A Note on P-Selective Sets and on Adaptive versus Nonadaptive Queries to NP." https://cse.buffalo.edu/documents/selman/note.pdf.Numberphile. "What Next for the Millennium Prizes?" Featuring M. Bridson. Nov. 30, 2026. https://www.youtube.com/watch?v=pPIfPh8VCcI&t=1332s.

Referenced on Wolfram|Alpha

P Versus NP Problem

Cite this as:

Weisstein, Eric W. "P Versus NP Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PVersusNPProblem.html

Subject classifications