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 more→→NP-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 Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Probabilistic Computation and BPP → BPP and Randomized Complexity → Randomized Complexity: RP, co-RP, and ZPP → Complexity Classes and the Complexity Hierarchy → The P Versus NP Problem: Central Open Question

Longest path: 98 steps · 585 total prerequisite topics

Prerequisites (3)

Leads To (2)