Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
NP-easy
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
In [[computational complexity theory|complexity theory]], the [[complexity class]] '''NP-easy''' is the set of [[function problem]]s that are solvable in [[polynomial time]] by a [[deterministic Turing machine]] with an [[oracle machine|oracle]] for some [[decision problem]] in [[NP (complexity)|NP]]. In other words, a problem X is NP-easy [[if and only if]] there exists some problem Y in NP such that X is [[polynomial-time Turing reduction|polynomial-time Turing reducible]] to Y.<ref>{{harvtxt|Garey|Johnson|1979}}, p. 117, 120.</ref> This means that given an [[oracle machine|oracle]] for Y, there exists an algorithm that solves X in polynomial time (possibly by repeatedly using that oracle). NP-easy is another name for FP<sup>NP</sup> (see the [[function problem]] article) or for FΞ<sub>2</sub>P (see the [[polynomial hierarchy]] article). 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 uses 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. ==Notes== {{reflist}} ==References== * {{Garey-Johnson}}. {{DEFAULTSORT:Np-Easy}} [[Category:Complexity classes]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Garey-Johnson
(
edit
)
Template:Harvtxt
(
edit
)
Template:Reflist
(
edit
)