A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

The P Versus NP Problem: Central Open Question

Graduate Depth 97 in the knowledge graph I know this Set as goal
9topics build on this
585prerequisites beneath it
See this on the map →
Complexity Classes and the Complexity HierarchyNP and Polynomial-Time Verification+1 moreNP-Hardness: Definition and PropertiesThe Polynomial Time Hierarchy: Levels Beyond NP
p-vs-np open-problem millennium-problem cryptography

Core Idea

P is the class of problems solvable in polynomial time, while NP is the class of problems whose solutions are verifiable in polynomial time. The P vs. NP question asks if these classes are equal. The Clay Mathematics Institute offers a $1 million prize for settling this question, reflecting its fundamental importance to computer science, mathematics, and cryptography.

How It's Best Learned

Read the Clay Institute problem statement and at least one accessible essay. Study why P = NP would imply most NP-hard problems have fast solutions.

Common Misconceptions

Explainer

You know that P is the class of decision problems solvable by a deterministic algorithm in polynomial time — problems where you can find an answer efficiently. You also know that NP is the class of problems where a proposed solution can be *verified* in polynomial time. The gap the P vs. NP question probes is this: does the ability to efficiently check answers imply the ability to efficiently find them? Intuitively, checking a completed Sudoku puzzle is easy; filling one in from scratch seems harder. P vs. NP asks whether that intuition is correct.

Formally, P ⊆ NP follows trivially: if you can solve a problem efficiently, you can certainly verify a solution efficiently (just re-solve it). The open question is whether the containment is strict, i.e., whether NP ⊈ P — whether there are problems in NP that are genuinely not in P. The Cook-Levin theorem proved that SAT (Boolean satisfiability) is NP-complete: it is in NP, and every other NP problem reduces to it in polynomial time. This means SAT is a hardest problem in NP. If SAT ∈ P, then P = NP; if not, then P ≠ NP.

The consequences of each resolution would be dramatic. If P = NP, virtually every problem whose solutions can be checked efficiently could also be solved efficiently. This would collapse cryptography: RSA, Diffie-Hellman, and all public-key systems rely on problems believed not to be in P (integer factoring, discrete logarithm). It would also make proofs easier to find than to verify — a prospect that most mathematicians find counterintuitive. Conversely, P ≠ NP would confirm that the computational universe is genuinely structured: that search is harder than verification, and that no algorithmic shortcut exists for NP-hard optimization problems.

The reason the problem remains open is not lack of effort — thousands of researchers have attacked it — but a deep insufficiency in our mathematical tools. Proving lower bounds (showing that no algorithm can solve a problem faster than some threshold) is far harder than proving upper bounds (exhibiting an algorithm). Most complexity theorists believe P ≠ NP, but intuition is not proof. Understanding P vs. NP precisely requires engaging with NP-hardness reductions and the structural theory of complexity classes, not just the high-level statement.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityProbabilistic Computation and BPPBPP and Randomized ComplexityRandomized Complexity: RP, co-RP, and ZPPComplexity Classes and the Complexity HierarchyThe P Versus NP Problem: Central Open Question

Longest path: 98 steps · 585 total prerequisite topics

Prerequisites (3)

Leads To (2)