NP-equivalent

NP-equivalent

In computational complexity theory, the complexity class NP-equivalent is the set of function problems that are both NP-easy and NP-hard.[1] NP-equivalent is the analogue of NP-complete for function problems.

For example, the problem FIND-SUBSET-SUM is in NP-equivalent. Given a set of integers, FIND-SUBSET-SUM is the problem of finding some nonempty subset of the integers that adds up to zero (or returning the empty set if there is no such subset). This optimization problem is similar to the decision problem SUBSET-SUM. Given a set of integers, SUBSET-SUM is the problem of finding whether there exists a subset summing to zero. SUBSET-SUM is NP-complete.

To show that FIND-SUBSET-SUM is NP-equivalent, we must show that it is both NP-hard and NP-easy.

Clearly it is NP-hard. If we had a black box that solved FIND-SUBSET-SUM in unit time, then it would be easy to solve SUBSET-SUM. Simply ask the black box to find the subset that sums to zero, then check whether it returned a nonempty set.

It is also NP-easy. If we had a black box that solved SUBSET-SUM in unit time, then we could use it to solve FIND-SUBSET-SUM. If it returns false, we immediately return the empty set. Otherwise, we visit each element in order and remove it provided that SUBSET-SUM would still return true after we remove it. Once we've visited every element, we will no longer be able to remove any element without changing the answer from true to false; at this point the remaining subset of the original elements must sum to zero. This requires us to note that later removals of elements do not alter the fact that removal of an earlier element changed the answer from true to false. In pseudocode:

function FIND-SUBSET-SUM(set S)
    if not(SUBSET-SUM(S))
        return {}
    for each x in S
        if SUBSET-SUM(S - {x})
            S := S - {x}
    return S

Another well-known NP-equivalent problem is the traveling salesman problem.

Notes

  1. ^ Garey & Johnson (1979), p. 117, 120.

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • équivalent — équivalent, ente (é ki va lan, lan t ) adj. 1°   Qui équivaut, qui est de même valeur. Rendre un service équivalent à celui que l on a reçu. 2°   Terme de géométrie. Il se dit des surfaces ou des volumes qui ont les mêmes contenances sans avoir… …   Dictionnaire de la Langue Française d'Émile Littré

  • Equivalent — E*quiv a*lent ([ e]*kw[i^]v [.a]*lent), n. 1. Something equivalent; that which is equal in value, worth, weight, or force; as, to offer an equivalent for damage done. [1913 Webster] He owned that, if the Test Act were repealed, the Protestants… …   The Collaborative International Dictionary of English

  • Equivalent weight — is the amount of an element that reacts, or is involved in reaction with, 1 mole of electrons. It is defined by many texts as the weight of the element combining with 1 g hydrogen, 8 g oxygen or 35.5 g chlorine, each of which would either provide …   Wikipedia

  • equivalent — e‧quiv‧a‧lent [ɪˈkwɪvlənt] noun [countable] something that is equal in value, amount, quality etc to something else: • The Japanese bank had the equivalent of $131 billion in assets on March 31. equivalent adjective : • It must issue 5 million… …   Financial and business terms

  • equivalent — eq·uiv·a·lent n: something that performs substantially the same function as another thing in substantially the same way compare aggregation, combination, invention ◇ Under patent law, a patentee may bring a claim for infringement against the… …   Law dictionary

  • Equivalent — Équivalent Pour les articles homonymes, voir équivalence. La notion d équivalence permet de dire précisément et « mathématiquement » quand deux fonctions ou deux suites ont le même comportement au voisinage d un point ou de l infini.… …   Wikipédia en Français

  • Équivalent (mathématiques) — Équivalent Pour les articles homonymes, voir équivalence. La notion d équivalence permet de dire précisément et « mathématiquement » quand deux fonctions ou deux suites ont le même comportement au voisinage d un point ou de l infini.… …   Wikipédia en Français

  • Équivalent simple — Équivalent Pour les articles homonymes, voir équivalence. La notion d équivalence permet de dire précisément et « mathématiquement » quand deux fonctions ou deux suites ont le même comportement au voisinage d un point ou de l infini.… …   Wikipédia en Français

  • Equivalent potential temperature — Equivalent potential temperature, commonly referred to as Theta e left( heta e ight), is a quantity related to the stability of a column of air in the atmosphere. heta e is the temperature a parcel of air would reach if all the water vapor in the …   Wikipedia

  • equivalent weight — n EQUIVALENT (1) * * * the amount of a substance that combines with or displaces 8.0 g of oxygen (or 1.008 g of hydrogen), usually expressed in grams; for acid base reactions, one equivalent donates or receives a mole of protons, and the… …   Medical dictionary

  • Equivalent variation — (EV) is a measure of how much more money a consumer would pay before a price increase to avert the price increase. Because the meaning of equivalent may be unclear, it is also called extortionary variation . John Hicks (1939) is attributed with… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”