NP-completeness
Builds on NPNP-hardnessPolynomial-time reductionFormal languageP
Definition
Let be a finite alphabet, and let be a language. The language is NP-complete when both conditions hold.
- lies in the class NP.
- is NP-hard, that is, for every , where is polynomial-time reducibility.
Remarks
Example: the satisfiability problem SAT for propositional formulas is NP-complete, by the Cook–Levin theorem. It lies in NP, since a satisfying assignment is a certificate that can be checked in polynomial time.
Non-example: the halting problem is NP-hard but not NP-complete. It fails clause 1, since it is undecidable and every language in NP is decidable.
To show that a language in NP is NP-complete, it is enough to give for one known NP-complete , since is transitive. If some NP-complete language lies in P, then .
Reading path
To understand this page from the ground up, read these 6 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Formal language concept
- NP concept
- NP-hardness concept
- P concept
- Polynomial-time reduction concept
- NP-completeness definition
Further reading
About this page
| Tag | REKDJ8V504 |
|---|---|
| URI | m2://REKDJ8V504 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q17, 68Q15 |
| Defines | NP-completeness |
| Uses | NP, NP-hardness, Polynomial-time reduction, Formal language, P |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.