Copyright © Philip M. Parker, INSEAD. Terms of Use.

NP-COMPLETE

Specialty Definition: NP-COMPLETE

DomainDefinition

Computing

NP-complete (NPC, Nondeterministic Polynomial time complete) A set or property of computational decision problems which is a subset of NP (i.e. can be solved by a nondeterministic Turing Machine in polynomial time), with the additional property that it is also NP-hard. Thus a solution for one NP-complete problem would solve all problems in NP. Many (but not all) naturally arising problems in class NP are in fact NP-complete. There is always a polynomial-time algorithm for transforming an instance of any NP-complete problem into an instance of any other NP-complete problem. So if you could solve one you could solve any other by transforming it to the solved one. The first problem ever shown to be NP-complete was the satisfiability problem. Another example is Hamilton's problem. See also computational complexity, halting problem, Co-NP, NP-hard. (http://fi-www.arc.nasa.gov/fia/projects/bayes-group/group/NP/) [Other examples?] (1995-04-10). Source: The Free On-line Dictionary of Computing.

Math

The complexity class of decision problems for which answers can be checked for correctness, given a certificate, by an algorithm whose run time is polynomial in the size of the input (that is, it is NP) and no other NP problem is more than a polynomial factor harder. Informally, a problem is NP-complete if answers can be verified quickly, and a quick algorithm to solve this problem can be used to solve all other NP problems quickly. (references)

Source: compiled by the editor from various references; see credits.

Top     

Specialty Definition: NP-complete

(From Wikipedia, the free Encyclopedia)

In complexity theory, the NP-complete problems are the hardest problems in NP, in the sense that they are the ones most likely not to be in P. The reason is that if you could find a way to solve an NP-complete problem quickly, then you could use that algorithm to solve all NP problems quickly. (A more formal definition is given below. See also Complexity classes P and NP).

One example of an NP-complete problem is the subset sum problem which is: given a finite set of integers, determine whether any non-empty subset of them adds up to zero. A supposed answer is very easy to verify for correctness, but no-one knows a faster way to solve the problem than to try every single possible subset, which is very slow.

At present, all known algorithms for NP-complete problems require time which is exponential in the problem size. It is unknown whether there are any faster algorithms. Therefore, in order to solve an NP-complete problem for any non-trivial problem size, one of the following approaches is used:

Formal definition of NP-completeness

A decision problem C is NP-complete if it is in NP and if every other problem in NP is reducible to it. "Reducible" here means that for every NP problem L, there is a polynomial-time algorithm which transforms instances of L into instances of C, such that the two instances have the same truth values. As a consequence, if we had a polynomial time algorithm for C, we could solve all NP problems in polynomial time.

In mathematical terms,

This definition was given by Stephen Cook in 1971. At first it seems rather surprising that NP-complete problems should even exist, but in a celebrated theorem Cook proved that the Boolean satisfiability problem is NP-complete. Since Cook's original results, thousands of other problems have been shown to be NP-complete by reductions from other problems previously shown to be NP-complete; many of these problems are collected in (Garey and Johnson, 1979).

It isn't really correct to say that NP-complete problems are the hardest problems in NP. Assuming that P and NP are not equal, there are guaranteed to be an infinite number of problems that are in NP, but are neither NP-complete nor in P. Some of these problems may actually have higher complexity than some of the NP-complete problems.

Example problems

An interesting example is the problem, in graph theory, of graph isomorphism. Two graphs are isomorphic if one can be transformed into the other simply by renaming vertices. Consider these two problems:

    Graph Isomorphism:    Is graph G1 isomorphic to graph G2?
    Subgraph Isomorphism: Is graph G1 isomorphic to a subgraph of graph G2?

The Subgraph Isomorphism problem is NP-complete. The Graph Isomorphism problem is suspected to be neither in P nor NP-complete, though it is obviously in NP. This is an example of a problem that is thought to be hard, but isn't thought to be NP-complete.

The easiest way to prove that some new problem is NP-complete is to reduce some known NP-complete problem to it. Therefore, it is useful to know a variety of NP-complete problems. Here are a few:

Here is a diagram of some of the NP-Complete problems and the reductions typically used to prove their NP-completeness. In this diagram, an arrow from one problem to another indicates the direction of the reduction. Note that this diagram is misleading as a description of the mathematical relationship between these problems, as there exists a polynomial-time reduction between any two NP-complete problems; but it indicates where demonstrating this polynomial-time reduction has been easiest.

Alternative approaches

In the definition of NP-complete given above, the term "reduction" was used in the technical meaning of polynomial-time many-one reduction.

Another type of reduction is polynomial-time Turing reduction. A problem X is polynomial-time Turing-reducible to a problem Y if, given a subroutine that solves Y in polynomial time, you could write a program that calls this subroutine and solves X in polynomial time. This contrasts with many-one reducibility, which has the restriction that the program can only call the subroutine once, and the return value of the subroutine must be the return value of the program.

If one defines the analogue to NP-complete with Turing reductions instead of many-one reductions, the resulting set of problems won't be smaller than NP-complete; it is an open question whether it will be any larger. If the two concepts were the same, then it would follow that NP = Co-NP. This holds because by their definition the classes of NP-complete and co-NP-complete problems under Turing reductions are the same and because these classes are both supersets of the same classes defined with many-one reductions. So if both definitions of NP-completeness are equal then there is a co-NP-complete problem (under both definitions) such as for example the complement of the boolean satisfiability problem that is also NP-complete (under both definitions). This implies that NP = co-NP as is shown in the proof in the article on co-NP. Although the question of NP = co-NP is an open question it is considered unlikely and therefore it is also unlikely that the two definitions of NP-completeness are equivalent.

Another type of reduction that is also often used to define NP-completness is the logarithmic-space many-one reduction which is a many-one reduction that can be computed with only a logarithmic amount of space. Since every computation that can be done in logarithmic space can also be done in polynomial time it follows that if there is a logarithmic-space many-one reduction then there is also a polynomial-time many-one reduction. This type of reduction is more refined than the more usual polynomial-time many-one reductions and it allows us to distinguish more classes such as P-complete. Whether under these types of reductions the definition of NP-complete changes is still an open problem.

References

Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "NP-complete."

Top     

Crosswords: NP-COMPLETE

Specialty definitions using "NP-COMPLETE": Chinese postman problem, constraint satisfaction, Cook's theorem, cutting stock problemexponential-time algorithmgraph colouringHamiltonian problemmetaheuristicNPC, NP-hardpolynomial-time algorithmquantum computersatisfiability problemvertex set. (references)

Top     

Usage Frequency: NP-COMPLETE

"NP-COMPLETE" is generally used as an adjective (general or positive) -- approximately 100.00% of the time. "NP-COMPLETE" is used about 6 times out of a sample of 100 million words spoken or written in English. Its rank is based on over 700,000 words used in the English language. Some parts-of-speech are not covered due to the samples used by the British National Corpus. (note: percents less than one-hundredth of one percent have been omitted)
Parts of SpeechPercentUsage per
100 Million Words
Rank in English
Adjective (general or positive)100%6143,867

Source: compiled by the editor from several corpora; see credits.

Top     

Anagrams: NP-COMPLETE

Scrabble® Enable2K-Verified Anagrams

Words within the letters "c-e-e-l-m-n-o-p-p-t"

-2 letters: complete.

-3 letters: clement, compete, peptone, potence.

-4 letters: cement, cenote, cleome, coempt, compel, lepton, loment, melton, metope, molten, moppet, omelet, pecten, pelmet, pencel, people, poteen, potmen, telome, temple, toneme, topple.

-5 letters: celom, cento, clepe, clept, clomp, clone, comet, compt, comte, conte, copen, elect, elope, emote, lemon, lento, leone, melon, monte, motel, netop, pelon, pence, ponce.

Source: compiled by the editor from various references; see credits.

SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro.

Top     

Alternative Orthography: NP-COMPLETE


Hexadecimal (or equivalents, 770AD-1900s) (references)

4E 50 2D 43 4F 4D 50 4C 45 54 45

Leonardo da Vinci (1452-1519; backwards) (references)

Binary Code (1918-1938, probably earlier) (references)

01001110 01010000 00101101 01000011 01001111 01001101 01010000 01001100 01000101 01010100 01000101

HTML Code (1990) (references)

&#78 &#80 &#45 &#67 &#79 &#77 &#80 &#76 &#69 &#84 &#69

ISO 10646 (1991-1993) (references)

004E 0050 002D 0043 004F 004D 0050 004C 0045 0054 0045

Encryption (beginner's substitution cypher): (references)

4850153749475046395439

Top     



INDEX

1. Crosswords
2. Usage Frequency
3. Anagrams
4. Orthography
5. Bibliography


  

Copyright © Philip M. Parker, INSEAD. Terms of Use.