Metraipolis › archive › dc_d6ba2a19c97e
NP-completeness — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/NP-completeness
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-07T11:27:25.465Z
- SHA-256 of the archived text
8be2cecc788967006d392623e99efd91bfdea597543e386b5d55fffb26a96bb0- Stable URL of this page
https://metraipolis.com/documento/dc_d6ba2a19c97e
How to cite
NP-completeness — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/NP-completeness (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_d6ba2a19c97e (Metraipolis archive dc_d6ba2a19c97e, sha256 8be2cecc788967006d392623e99efd91bfdea597543e386b5d55fffb26a96bb0)
BibTeX
@misc{dcd6ba2a19c97e,
title = {NP-completeness — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/NP-completeness},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_d6ba2a19c97e; sha256 8be2cecc788967006d392623e99efd91bfdea597543e386b5d55fffb26a96bb0},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/NP-completeness. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In computational complexity theory, NP-complete problems are the hardest of the problems to which solutions can be verified quickly. Somewhat more precisely, a problem is NP-complete when: It is a decision problem, meaning that for any input to the problem, the output is either "yes" or "no". Each input to the problem is associated with a collection of short (polynomial size) solutions, which might or might not validly solve the input. The output is "yes" when at least one of these solutions is valid, and "no" when none of them is. The validity of each solution can be verified quickly (namely, in polynomial time), and a brute-force search algorithm can find a valid solution (if one exists) by trying all possible solutions. The problem can be used to simulate every other problem for which we can verify quickly that a solution is valid. Hence, if we could find valid solutions of some NP-complete problem quickly (when they exist), we could quickly find valid solutions for every other problem in which a given solution can be easily verified. Problems that meet the first three criteria belong to the class NP, which is short for "nondeterministic polynomial-time". In this name, "nondeterministic" refers to nondeterministic Turing machines, a way of mathematically formalizing the idea of a brute-force search algorithm. Polynomial time refers to an amount of time that is considered "quick" for a deterministic algorithm to check a single solution, or for a nondeterministic Turing machine to perform the whole search. A problem that is in NP and also meets the fourth criterion is said to be "NP-complete". The term "complete" refers to the property of being able to simulate everything in the same complexity class: If some NP-complete problem has a polynomial-time algorithm, all problems in NP do. The set of NP-complete problems is often denoted by NP-C or NPC. Although a solution to an NP-complete problem can be verified "quickly", there is no known way to find a solution quickly. That is, the time required to solve the problem using any currently known algorithm increases rapidly as the size of the problem grows. As a consequence, determining whether it is possible to solve these problems quickly, called the P versus NP problem, is one of the fundamental unsolved problems in computer science today. While a method for computing the solutions to NP-complete problems quickly remains undiscovered, computer scientists and programmers still frequently encounter NP-complete problems. NP-complete problems are often addressed by using heuristic methods and approximation algorithms. Tema degli esploratori: matematica e informatica teorica (deposito sistematico; categoria «Mathematical optimization»). Fonte: Wikipedia in inglese, voce «NP-completeness» — https://en.wikipedia.org/wiki/NP-completeness Wikidata Q215206 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q215206 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/NP-completeness?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1375967366, consultata il 2026-10-07T11:16:47.993Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 8531b2841a66fbf7c336995593351456186b4f3225f1ec1bc49ac72214d1341b