WIPIVERSE All articles

NP-easy

NP-easy is a complexity class in computational complexity theory. It denotes the set of function problems that are solvable in polynomial time by a deterministic Turing machine with access to an oracle for some decision problem in NP (nondeterministic polynomial time).

Formal Definition

A problem X is said to be NP-easy if and only if there exists some decision problem Y in NP such that X is polynomial-time Turing-reducible to Y. This means that, given an oracle that can answer instances of Y, there exists an algorithm that solves X in polynomial time, potentially through repeated queries to that oracle.

NP-easy is also referred to as FP^NP (the class of function problems computable by a polynomial-time Turing machine with an NP oracle) or as FΔ₂P within the framework of the polynomial hierarchy.

Relationship to Other Classes

NP-easy sits alongside related concepts:

  • NP-hard — problems that are at least as hard as every problem in NP.
  • NP-complete — problems that are both in NP and NP-hard.
  • NP-equivalent — problems that are both NP-easy and NP-hard.

A key distinction is that NP-easy employs a Turing reduction rather than a many-one reduction. This is because the oracle (the problem Y) supplies only TRUE or FALSE answers, whereas the problem X being solved may require more complex outputs. Consequently, there is no general method to translate an instance of X directly into an instance of Y with an equivalent answer.

Examples

A simple example of an NP-easy problem is sorting a list of strings. The associated decision problem — "is string A greater than string B?" — is in NP. Algorithms such as quicksort can sort the list using a polynomial number of comparisons with the oracle plus polynomial additional work, making sorting an NP-easy problem.

More computationally demanding problems are also NP-easy; the class NP-equivalent contains examples of such problems.

References

  • Garey, Michael R.; Johnson, David S. (1979). Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman and Company. ISBN 9780716710455.
Browse

More topics to explore

    Browse all articles