Encyclopedia > NP-easy

  Article Content

NP-easy

In complexity theory, NP-easy is a set of problems similar to NP, except that NP-easy problems do not have to be decision problems.

A problem X is in NP-easy if and only if there exists some problem Y in NP such that X is Turing reducible[?] to Y. This means that given a black box that solves instances of Y in unit time, there exists an algorithm that solves X in polynomial time by repeatedly using that black box.

An example of an NP-easy problem is the problem of sorting a list of strings. The decision problem "is string A greater than string B" is in NP. There are algorithms such as Quicksort that can sort the list using only a polynomial number of calls to the comparison routine, plus a polynomial amount of additional work. Therefore, sorting is NP-easy.

There are also more difficult problems that are NP-easy. See NP-equivalent for an example.

The definition of NP-easy used a Turing reduction rather than a many-one reduction[?] because the answers to problem Y are only TRUE or FALSE, but the answers to problem X can be more general. Therefore, there is no general way to translate an instance of X to an instance of Y with the same answer. NP-hard also uses a Turing reduction, for the same reason.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Kings Park, New York

... with 25.2% under the age of 18, 5.7% from 18 to 24, 31.9% from 25 to 44, 23.3% from 45 to 64, and 13.9% who are 65 years of age or older. The median age is 38 years. For ...

 
 
 
This page was created in 38 ms