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 computational problem—whether it asks for a yes/no decision or a non-Boolean output—is NP-equivalent, under a specified polynomial-time Turing-reduction convention, when it is both NP-hard and NP-easy. NP-hard supplies a lower bound: an NP-complete decision problem can be solved with polynomial work and access to an oracle for the candidate. NP-easy supplies an upper bound: the candidate's specified answer, including the full requested output for a search or optimization task, can be computed with polynomial work and access to an NP decision oracle. Both directions matter; a lower bound alone may leave the problem even harder, and an upper bound alone can include easy tasks.[1]

Klocker explicitly includes decision and function problems in this class; an ordinary NP-complete decision language can meet both clauses, while the terminology is especially useful for comparing search and optimization tasks with NP decision problems. It does not make a non-Boolean output problem an NP-complete language: NP-complete is ordinarily a membership-and-hardness classification for yes/no decision languages. “Equivalent” is also reduction-relative; the oracle convention and input/output encoding must be stated rather than read as a claim that two algorithms have identical runtimes.[1][2]

Structural Signature

Sig role-phrases:

  • Specified computational problem — Fix precisely whether the solver must return only a yes/no answer, a witness, an optimum value or a complete optimal object. Hardness of a related decision variant is not automatically the same claim about a different output task.[2]
  • NP-hardness reduction — A polynomial-time machine using the candidate solver as an oracle decides an NP-complete benchmark. This shows the candidate is at least hard enough for that benchmark.[1]
  • NP-easiness reduction — A polynomial-time computation, with queries to some NP decision oracle, returns the candidate's specified answer (a Boolean decision or, for an output task, its full output). This prevents the classification from being only a lower-bound label.[1]
  • Reduction and encoding convention — Polynomial-time Turing access, query count and finite representation are part of the comparison; changing them may change the claim.[1][2]

Condensed: fix the exact problem and answer type → prove NP decision hardness below → prove NP-oracle computation above → report equivalence under the stated reduction.

What It Is Not

  • Not merely NP-hard. A hard problem may lack the NP-oracle upper bound; the lower reduction alone says nothing about that ceiling.[1]
  • Not merely NP-easy. Easy polynomial-time tasks also meet an oracle upper bound, so easiness alone does not supply the lower-bound half.[1]
  • Not automatically NP-complete. A candidate may be an output task such as finding an optimal tour or satisfying assignment, not a yes/no language. Its associated decision question may be NP-complete while the full output problem has a different type.[1][2]
  • Not a numerical equality of running times. An oracle reduction ignores the internal cost of each oracle answer to express relative complexity under a formal model.[2]
  • Not guaranteed by a vague self-reduction. The upper proof must reconstruct the whole output in polynomially many valid queries for the specified encoding.[1]

Scope of Application

The classification covers decision as well as function, search and optimization problems with finite encoded inputs and specified answers. Its distinctive value is often to classify an output task that cannot itself be called an NP-complete decision language. A university complexity proof, for example, defines NP-hard, NP-easy and NP-equivalent with polynomial Turing reductions and proves an optimization routing problem NP-equivalent by pairing an NP-complete decision counterpart with an oracle upper reduction.[1]

The traveling-salesman family illustrates why the output specification matters. Deciding whether there is a tour below a threshold is a decision question; returning an optimal tour is an output question. A proof of equivalence for the latter must show how bounded decision-oracle calls recover the optimum and, if demanded, an actual tour. Encoding and reconstruction details cannot be skipped. The same two-sided method applies to witness search where successive decision queries fix candidate choices.[3][2]

Clarity

“As hard as NP” is ambiguous, especially when the requested answer is not Boolean. NP-equivalence replaces that slogan with two explicit directional reductions. The lower one answers “could this solver decide a known NP-complete task?” The upper one answers “could an NP decision oracle produce the candidate's specified answer, including its entire output if non-Boolean?”[1]

The definition also prevents a common type error: using the NP-completeness of an associated decision question as if it classified a separate search or optimization version without an argument. The decision and output formulations are related, but their relation must be proved under the chosen reduction.[2]

Manages Complexity

Potentially many implementation strategies can be ignored once the two oracle reductions are established. One need not find the fastest actual solver to classify the problem's relative difficulty. A known NP-complete benchmark supplies the lower anchor; an NP oracle plus a polynomial decision or output procedure supplies the upper anchor.[1]

This abstraction compresses a computational landscape into a sandwich argument, but the compression is conditional. For optimization, a bound on the objective's encoded size and a way to reconstruct a solution may be needed. If those are absent, a decision oracle's one-bit answers do not automatically deliver an exponentially long or ill-specified output.[1][2]

Abstract Reasoning

Start by writing down the exact decision language, function or relation and its representation. For the lower bound, choose an NP-complete decision problem and show how a candidate oracle decides it with polynomial overhead. For the upper bound, exhibit a polynomial-time algorithm that calls an NP decision oracle and returns the candidate's specified answer, including a complete result if the task is output-producing. Only after both arguments close should the NP-equivalent label be applied.[1]

For satisfiability search, a witness-producing oracle can decide whether a formula is satisfiable by returning an assignment or none. In the other direction, a SAT decision oracle can be queried after fixing variables one by one, recovering a satisfying assignment with polynomially many calls. For an optimization problem, an analogous threshold search and solution reconstruction require explicit finite bounds and feasibility tests. These are proof patterns, not a universal algorithm shared by every NP-equivalent task.[2][3]

Knowledge Transfer

The two-sided proof pattern transfers across decision and unlike output tasks: a Boolean answer, witness, route or optimum can each be classified if its respective reductions are established. What does not transfer automatically is an output reconstruction algorithm; it depends on the task's encoding and structure. Likewise, a hardness proof for one decision version does not settle every output variant.[1][2]

The wider idea of bounding a subject from above and below is portable, but this named entry remains within computational complexity. “NP,” polynomial-time oracle access and reduction type are not metaphors that travel intact to institutional or physical systems.

Examples

Given a Boolean formula, ask for one satisfying assignment or a report that none exists. A solver for this output answers SAT by the presence of a witness; a SAT decision oracle can recover a witness by fixing variables and querying whether a satisfying completion remains. Under the polynomial oracle convention, the exact search task fits the two-sided pattern.[2]

Mapped back: output = assignment or none; hardness = SAT answer follows from search oracle; easiness = repeated SAT decisions construct the assignment; convention = polynomially many encoded queries.

Klocker's RTPP1 route optimization

Klocker's RTPP1 asks for a maximum-profit closed walk from a stated start vertex in a finite encoded multigraph. Arc profits and costs, pairwise/reuse penalties, a cost interval [C_min,C_max], and the rule that each arc is used at most twice define this particular output problem; it is not arbitrary “routing.” The thesis treats finite numeric input as rational, constructs an associated NP-complete decision problem Q′_D, and in Corollary 3.2.6 gives the explicit polynomial-Turing chain Q′_D ≤ᴾ_T RTPP1 ≤ᴾ_T Q′_D. The left reduction says an RTPP1 optimizer can answer the decision benchmark (hardness). The right says a polynomial algorithm with the decision oracle can recover the specified optimization output (easiness). Both directions are required; NP-completeness of the yes/no counterpart alone would not classify the route-output task as a Boolean NP-complete language.[1]

Mapped back: output = maximum-profit feasible closed walk for RTPP1's graph, cost and penalty encoding; hardness = Q′_D ≤ᴾ_T RTPP1; easiness = RTPP1 ≤ᴾ_T Q′_D; convention = polynomial Turing oracle reductions on finite rational-encoded instances.

Near miss: a hardness proof only

Suppose a candidate can decide SAT if treated as an oracle, but no polynomial-time computation from an NP decision oracle is known for its complete output. The available evidence establishes NP-hardness, not NP-equivalence.

Structural Tensions

The formal NP-equivalent classification has no intrinsic two-sided design tradeoff. Hardness and easiness are conjunctive proof obligations, not competing goals to balance. Similarly, decision-versus-output is a type distinction: a yes/no oracle may help reconstruct a witness or optimum only when the polynomial query and output procedure is proved. Diagnostic: for the exact candidate problem, where are the two reduction directions and the finite encoding stated? Missing one direction or silently replacing an output task by its decision counterpart changes the classification, not merely its quality.[1][2]

Structural–Framed Character

NP-Equivalent is strongly structural within theoretical computer science: its two reductions are mathematical relations among formally represented problems. The vocabulary travels from decision languages to witness search and optimization only when the same oracle convention is specified; importing “NP-equivalent” into informal talk about comparable difficulty loses the theorem. Human practice chooses encodings and admissible reduction types, but evaluative weight is low once they are fixed: the proof either meets the formal clauses or not. The classification arose in complexity research rather than one governing institution. The portable above-and-below skeleton is much broader than this named class, yet the NP and oracle commitments keep the entry domain-specific. Its character: highly structural, with a reduction-convention boundary that must be stated explicitly.

Structural Core vs. Domain Accent

The skeleton is a two-sided comparison proof: lower-bound a task by a benchmark and upper-bound it by a resource. The domain accent is exact: NP decision languages as benchmarks and oracles, polynomial-time Turing reductions, finite encoded problem instances and specified answers. Replace any of those with a loose analogy and the NP-equivalent claim no longer follows.

The live Computational Problem identity is the strict genus of the specified task, but it does not itself carry this portable above-and-below proof pattern. Whether such a comparison pattern warrants a cross-domain prime is a future-prime question, not an asserted parent relation. Complexity Class instead classifies collections and does not necessarily cover all output-bearing variants. The named NP-equivalent entry fails the prime bar because its proof obligations and counterexamples remain specific to complexity theory.

This entry is a kind of Computational problem.

Staged strict parent: Computational problem. An NP-equivalent item is a specified problem whose full requested answer meets both NP-hard and NP-easy reductions; a generic computational problem need not. Complexity Class classifies a different bearer, while FNP Complexity, Strong NP-Completeness and P versus NP remain neighbors, not aliases. Decision-variant equivalence alone does not establish full-output equivalence.

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) — more general patterns this builds on

  • 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 (66th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Computational Complexity & Hardness (17 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-10-08

Not to Be Confused With

NP-equivalent is not interchangeable with NP-hard, NP-easy, NP-complete, or “same practical runtime.” The classification says that the specified candidate problem, whether decision or output-producing, under a stated polynomial oracle reduction, both supports an NP-complete decision benchmark and can itself be answered from an NP decision oracle. Remove either reduction or change the candidate problem and the conclusion must be reconsidered.[1]

References

[1] TU Wien thesis, Section 3.2, Definitions 3.2.3–3.2.5 and Corollary 3.2.6, formal NP-hard, NP-easy, NP-equivalent definitions and optimization example. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j ↩k ↩l ↩m ↩n ↩o ↩p ↩q ↩r

[2] Oded Goldreich, P, NP, and NP-Completeness: The Basics of Computational Complexity (author-hosted 2008 version), §3.3.1, Proposition 3.7 and proof, pp. 60–61, on SAT assignment search using a SAT decision oracle. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j ↩k ↩l

[3] Johnson and Papadimitriou, “Computational Complexity and the Traveling Salesman Problem,” original MIT technical report. registry ↩a ↩b