NP-complete - Formal Definition of NP-completeness

Formal Definition of NP-completeness

A decision problem is NP-complete if:

  1. is in NP, and
  2. Every problem in NP is reducible to in polynomial time.

can be shown to be in NP by demonstrating that a candidate solution to can be verified in polynomial time.


Note that a problem satisfying condition 2 is said to be NP-hard, whether or not it satisfies condition 1.

A consequence of this definition is that if we had a polynomial time algorithm (on a UTM, or any other Turing-equivalent abstract machine) for, we could solve all problems in NP in polynomial time.

Read more about this topic:  NP-complete

Famous quotes containing the words formal and/or definition:

    The conviction that the best way to prepare children for a harsh, rapidly changing world is to introduce formal instruction at an early age is wrong. There is simply no evidence to support it, and considerable evidence against it. Starting children early academically has not worked in the past and is not working now.
    David Elkind (20th century)

    The man who knows governments most completely is he who troubles himself least about a definition which shall give their essence. Enjoying an intimate acquaintance with all their particularities in turn, he would naturally regard an abstract conception in which these were unified as a thing more misleading than enlightening.
    William James (1842–1910)