Why the hardest problems in computer science are surprisingly easy to verify
In short: NP-complete problems represent a strange computational frontier. While finding an optimal solution for them is notoriously difficult, verifying a proposed answer is remarkably fast. This asymmetry sits at the heart of the P versus NP problem, one of the most significant unsolved mysteries in modern mathematics and computer science.
An NP-complete problem is a decision problem—yielding a simple yes or no—where every potential solution can be verified in polynomial time. These problems are the hardest in the class NP, meaning that if a fast, polynomial-time algorithm were discovered for just one of them, it would solve every problem in the entire NP class. Despite decades of research, no such efficient algorithm has been found, and the time required to solve these problems grows rapidly as input size increases.
The field began in 1971 with the Cook–Levin theorem, which proved the Boolean satisfiability problem is NP-complete. By 1972, Richard Karp expanded this by demonstrating that many other problems shared this property. Today, thousands of problems are known to be NP-complete, often identified by reducing a known NP-complete problem to a new one. These tasks are frequently encountered in practice, where programmers rely on heuristics, approximation algorithms, and parameterization to manage them when exact solutions remain computationally out of reach.
The boundary between easy and hard is often razor-thin. For instance, 2-satisfiability is solvable in polynomial time, but the slightly more general 3-satisfiability is NP-complete. Similarly, coloring a graph with two colors is easy, while three colors make the problem NP-complete. Because the P versus NP question remains unresolved, the Clay Mathematics Institute designated it as one of the seven Millennium Prize Problems in 2000, reflecting its fundamental importance to our understanding of computation.
Not all hard problems are NP-complete. The graph isomorphism problem, for example, is in NP but is not known to be NP-complete, placing it in a category sometimes called NP-intermediate. This distinction highlights the complexity of classifying computational difficulty, as researchers continue to explore whether these problems are truly distinct or if our current definitions simply lack the necessary refinement.
Opens the Intellect+ feed with this card first. Swipe up for the next one.
Sources
- Summary by Intellect · source: NP-completeness
- Also: Wikidata — NP-complete · CC0
- Also: Wikidata — NP-completeness of the domatic number problem on circular arc graphs · CC0
To cite this card, link to https://intellectplus.co.uk/app/places-np-completeness.
How we source, check and correct cards: Editorial standards.
General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.
Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?
Related
More in Cities · More in Countries & Cities · Latest · A–Z · All topics