ArticleslgStudy

mathematics

Karp's 21 NP-complete problems

Karp's 21 NP-complete problems is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Karp's 21 NP-complete problems rather than just read about it. In short: In computational complexity theory, Karp's 21 NP-complete problems are a set of computational problems which are NP-complete. In his 1972 paper, "Reducibility Among Combinatorial Problems", Richard Karp used Stephen Cook's 1971 theorem that the Boolean satisfiability problem is NP-complete (also called the Cook–Levin theorem) to show that there is a polynomial time many-one reduction from the Boolean satisfiability…

Key takeaways

  • Karp's 21 NP-complete problems belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Karp's 21 NP-complete problems to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Karp's 21 NP-complete problems from memory before moving on to harder problems.

Reference excerpt

In computational complexity theory, Karp's 21 NP-complete problems are a set of computational problems which are NP-complete. In his 1972 paper, "Reducibility Among Combinatorial Problems", Richard Karp used Stephen Cook's 1971 theorem that the Boolean satisfiability problem is NP-complete (also called the Cook–Levin theorem) to show that there is a polynomial time many-one reduction from the Boolean satisfiability problem to each of 21 combinatorial and graph theoretical computational problems, thereby showing that they are all NP-complete. This was one of the first demonstrations that many natural computational problems occurring throughout computer science are computationally intractable, and it drove interest in the study of NP-completeness and the P versus NP problem.

The problems Karp's 21 problems are shown below, many with their original names. The nesting indicates the direction of the reductions used. For example, Knapsack was shown to be NP-complete by reducing Exact cover to Knapsack.

Satisfiability: the Boolean satisfiability problem for formulas in conjunctive normal form (often referred to as SAT) 0–1 integer programming (A variation in which only the restrictions must be satisfied, with no optimization) Clique (see also independent set problem) Set packing Vertex cover Set covering Feedback node set Feedback arc set Directed Hamilton circuit (Karp's name, now usually called Directed Hamiltonian cycle) Undirected Hamilton circuit (Karp's name, now usually called Undirected Hamiltonian cycle) Satisfiability with at most 3 literals per clause (equivalent to 3-SAT) Chromatic number (also called the Graph Coloring Problem) Clique cover Exact cover Hitting set Steiner tree 3-dimensional matching Knapsack (Karp's definition of Knapsack is closer to Subset sum) Job sequencing Partition Max cut

Approximations As time went on it was discovered that many of the problems can be solved efficiently if restricted to special cases, or can be solved within any fixed percentage of the optimal result. However, David Zuckerman showed in 1996 that every one of these 21 problems has a constrained optimization version that is impossible to approximate within any constant factor unless P = NP, by showing that Karp's approach to reduction generalizes to a specific type of approximability reduction. However, these may be different from the standard optimization versions of the problems, which may have approximation algorithms (as in the case of maximum cut).

See also List of NP-complete problems

Notes

References Cook, Stephen (1971). "The Complexity of Theorem Proving Procedures". Proc. 3rd Annual ACM Symposium on Theory of Computing (STOC). pp. 151–158. doi:10.1145/800157.805047. ISBN 9781450374644. S2CID 7573663. Karp, Richard M. (1972). "Reducibility Among Combinatorial Problems" (PDF). In R. E. Miller; J. W. Thatcher; J.D. Bohlinger (eds.). Complexity of Computer Computations. New York: Plenum. pp. 85–103. doi:10.1007/978-1-4684-2001-2_9. ISBN 978-1-4684-2003-6.{{cite book}}: CS1 maint: publisher location (link) Zuckerman, David (1996). "On Unapproximable Versions of NP-Complete Problems". SIAM Journal on Computing. 25 (6): 1293–1304. doi:10.1137/S0097539794266407.{{cite journal}}: CS1 maint: miscellaneous url (link) [1]

Worked examples

Example 1 — a first encounter with Karp's 21 NP-complete problems

Start with the simplest possible case. Write down what Karp's 21 NP-complete problems claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Karp's 21 NP-complete problems before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Karp's 21 NP-complete problems ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Karp's 21 NP-complete problems

In research
Karp's 21 NP-complete problems appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Karp's 21 NP-complete problems in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Karp's 21 NP-complete problems is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematics-related lists, NP-complete problems, so understanding it makes those chapters shorter.
In everyday life
Look for Karp's 21 NP-complete problems outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Karp's 21 NP-complete problems” →

How to study Karp's 21 NP-complete problems in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Karp's 21 NP-complete problems means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Karp's 21 NP-complete problems out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Karp's 21 NP-complete problems in simple terms?

In computational complexity theory, Karp's 21 NP-complete problems are a set of computational problems which are NP-complete. In his 1972 paper, "Reducibility Among Combinatorial Problems", Richard Karp used Stephen Cook's 1971 theorem that the Boolean satisfiability problem is NP-complete (also ca…

Why does Karp's 21 NP-complete problems matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Karp's 21 NP-complete problems?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Karp's 21 NP-complete problems.

Tags

  • Mathematics-related lists
  • NP-complete problems

Keep exploring