Skip to content

NP-Equivalent

A decision or output problem that is both NP-hard and NP-easy under polynomial-time Turing reductions.

Version
v1 · 2026-10-03 · History
Domain-specific #
13473
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Complexity Theory, Search and Optimization → Computer Science & Software Engineering
Aliases
NP equivalence, NP-equivalent problem

Core Idea

A decision or output-producing problem is NP-equivalent under a specified polynomial-time oracle-reduction convention if it is both NP-hard and NP-easy. NP-hard means an NP-complete decision problem can be solved using this problem as an oracle. NP-easy means the candidate's specified answer—its Boolean result or full requested output—can be computed with polynomial work and queries to some NP decision oracle.[1]

How would you explain it like I'm…

Exactly-as-Hard Puzzles

Imagine a famous family of really hard puzzles. A puzzle is NP-equivalent if it is exactly as hard as them: if you had a magic helper for your puzzle, you could quickly solve the famous ones, and if you had a magic helper for the famous ones, you could quickly solve yours, answer and all.

Just as Hard, No Harder

Computer scientists sort problems by how hard they are for computers. NP-complete problems are a famous group of yes-or-no puzzles believed to be very hard. A problem is NP-equivalent if it is both at least as hard as those puzzles and no harder than them. 'At least as hard' means a helper that solves your problem would let a computer solve an NP-complete puzzle quickly. 'No harder' means a helper that answers NP yes-or-no questions would let a computer find your problem's full answer quickly. The problem can be a yes-or-no question or ask for a full answer, like the best route.

Both NP-Hard and NP-Easy

In complexity theory, an oracle is an imaginary helper that answers a problem instantly. A problem is NP-hard if an NP-complete decision problem can be solved in polynomial time with an oracle for it: it is at least as hard. It is NP-easy if it can be solved, including producing its full requested output, in polynomial time with an oracle for an NP decision problem: it is no harder. A problem that is both is NP-equivalent. Both directions are needed: NP-hard alone might be much harder, and NP-easy alone includes easy problems. The idea is especially useful for search and optimization problems that output answers rather than yes/no, which cannot be NP-complete because NP-complete applies to yes/no languages.

 

A computational problem, whether a decision problem or a function problem with non-Boolean output, is NP-equivalent under a specified polynomial-time Turing-reduction convention when it is both NP-hard and NP-easy. NP-hardness supplies a lower bound: some NP-complete decision problem can be solved by a polynomial-time algorithm with an oracle for the problem. NP-easiness supplies an upper bound: the problem's specified answer, including the full requested output for search or optimization tasks, can be computed in polynomial time with access to an NP decision oracle. Both clauses matter, since a lower bound alone may leave the problem even harder, and an upper bound alone admits easy problems. The class, as Klocker presents it, explicitly includes both decision and function problems; an NP-complete decision language can satisfy both clauses, but the terminology is most useful for comparing search and optimization tasks with NP decision problems. Being NP-equivalent does not make a function problem NP-complete, which is a classification of decision languages. 'Equivalent' is reduction-relative: the oracle convention and input/output encoding must be stated, and it does not mean two algorithms have identical runtimes.

Scope of Application

Klocker explicitly includes decision and function problems; the label is especially useful beyond yes/no tasks for witnesses or optima. His specific RTPP1 asks for a maximum-profit feasible closed walk under arc costs, penalties, a cost interval and an at-most-twice arc-use rule. Corollary 3.2.6 proves Q′_D ≤ᴾ_T RTPP1 ≤ᴾ_T Q′_D for an associated NP-complete decision problem, on finite rational-encoded inputs. The left direction supplies hardness; the right supplies easiness. This does not classify every routing variant.[1]

Clarity

NP-hard alone is only a lower bound; NP-easy alone is only an upper bound. NP-equivalence requires both for the exact candidate problem. It does not turn a non-Boolean output problem into an NP-complete decision language.[1][2]

Manages Complexity

Two reductions replace a vague claim of “NP difficulty” with a checkable sandwich: an NP-complete problem below and an NP decision oracle above. The comparison classifies relative difficulty without requiring an actual fast solution.[1]

Abstract Reasoning

State the problem, answer type and encoding. Prove that a solver for it can decide a known NP-complete task with polynomial overhead. Separately give a polynomial-time algorithm that returns its specified answer, including full reconstruction if it is an output task, with NP decision-oracle calls. If either direction is missing, report only the supported half.[1][2]

Knowledge Transfer

The proof pattern covers decisions as well as search and optimization tasks, but output reconstruction algorithms differ. The live Computational Problem identity is the strict genus; NP-equivalent is not automatically NP-complete. A satisfying assignment can be built by repeated SAT queries as Goldreich proves in Proposition 3.7; an optimum route requires its own finite bounds and reconstruction argument. “Equivalent” remains tied to the stated reduction model.[2]

Relationships to Other Abstractions

Local relationship map for NP-EquivalentParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.NP-EquivalentDOMAINDomain-specific abstraction: Computational problem — is a kind ofComputationalproblemDOMAIN

Current abstraction NP-Equivalent Domain-specific

Parents (1) — outgoing typed relations

  • NP-Equivalent is a kind of Computational problem Domain-specific

    NP-equivalent tasks are computational problems.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

NP-Equivalent sits in a sparse region of the domain-specific corpus (62nd percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Computational Complexity & Hardness (18 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] TU Wien, formal NP-equivalence definitions and optimization proof. registry ↩a ↩b ↩c ↩d ↩e

[2] Goldreich, P, NP, and NP-Completeness: The Basics of Computational Complexity, author-hosted 2008 version, §3.3.1 Proposition 3.7. registry ↩a ↩b ↩c