Britannica Sources used in this answer

How are P problems related to NP problems?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In computational complexity, the relationship between P and NP problems is a fundamental question in computer science.

A P problem is considered tractable because it can be solved by an algorithm in polynomial time. An NP problem is one where a proposed solution can be verified in polynomial time, even if finding that solution is difficult.12

Crucially, all P problems are a subset of NP problems. The central, unresolved P versus NP problem asks whether all NP problems are actually P problems—that is, whether every problem whose solution can be verified efficiently can also be solved efficiently.2

If a polynomial-time algorithm were discovered for any NP-complete problem, it would prove that P = NP, meaning all NP problems are tractable. Currently, this remains one of the most significant open questions in mathematics and science, with a $1 million prize designated by the Millennium Problem initiative for its resolution.12