P vs NP
P vs NP asks whether every problem whose solution can be checked quickly can also be solved quickly. Explore a small SAT instance and compare searching all assignments with verifying one.
Checking one assignment takes 8 clause checks. Finding a satisfying assignment may require searching all 2⁶ = 64 possibilities. That gap — fast verification versus unknown search time — is the heart of P vs NP. This is a toy instance; real SAT instances have thousands of variables.
What you are seeing
P contains problems solvable in polynomial time. NP contains problems whose proposed solutions can be verified in polynomial time.
A SAT formula with n variables has 2ⁿ possible assignments. Verifying one assignment is fast; searching all of them explodes.
Nobody knows whether P = NP. A proof either way would be one of the biggest results in mathematics and computer science.
Why it matters
P vs NP shapes cryptography, optimization, scheduling, and algorithm design. If P = NP, many hard problems would suddenly become tractable.
Complexity & details
Brute-force SAT over n variables costs O(2ⁿ · m) for m clauses. Verification of one assignment costs O(m).
Frequently asked questions
What does NP stand for?+
Nondeterministic Polynomial time. It is the class of problems with solutions that can be verified in polynomial time.
Is SAT in NP?+
Yes. Given an assignment, you can check every clause in polynomial time. SAT is also NP-complete.