Sharp-P

Sharp-P

In computational complexity theory, the complexity class #P (pronounced "number P" or, sometimes "sharp P" or "hash P") is the set of the counting problems associated with the decision problems in the set NP. More formally, #P is the class of function problems of the form "compute ƒ(x)," where ƒ is the number of accepting paths of a nondeterministic Turing machine running in polynomial time. Unlike most well-known complexity classes, it is not a class of decision problems but a class of function problems.

An NP problem is often of the form, "Are there any solutions that satisfy certain constraints?" For example:

  • Are there any subsets of a list of integers that add up to zero? (subset sum problem)
  • Are there any Hamiltonian cycles in a given graph with cost less than 100? (traveling salesman problem)
  • Are there any variable assignments that satisfy a given CNF formula? (Boolean satisfiability problem)

The corresponding #P problems ask "how many" rather than "are there any". For example:

  • How many subsets of a list of integers add up to zero?
  • How many Hamiltonian cycles in a given graph have cost less than 100?
  • How many variable assignments satisfy a given CNF formula?

Clearly, a #P problem must be at least as hard as the corresponding NP problem. If it's easy to count answers, then it must be easy to tell whether there are any answers. Just count them, and see if the count is greater than zero.

One consequence of Toda's theorem is that a polynomial-time machine with a #P oracle (P#P) can solve all problems in PH, the entire polynomial hierarchy. In fact, the polynomial-time machine only needs to make one #P query to solve any problem in PH. This is an indication of the extreme difficulty of solving #P-complete problems exactly.

Surprisingly, some #P problems that are believed to be difficult correspond to easy P problems. For more information on this, see #P-complete.

The closest decision problem class to #P is PP, which asks if a majority (more than half) of the computation paths accept. This finds the most significant bit in the #P problem answer. The decision problem class ⊕P instead asks for the least significant bit of the #P answer.

The complexity class #P was first defined by Leslie Valiant in a 1979 paper on the computation of the permanent, in which he proved that permanent is #P-complete.[1]

Larry Stockmeyer has proved that for every #P problem P there exists a randomized algorithm using oracle for SAT, which given an instance a of P and ε>0 returns with high probability a number x such that (1-\epsilon) P(a) \leq x \leq (1+\epsilon) P(a). The runtime of the algorithm is polynomial in a and 1/ε. The algorithm is based on leftover hash lemma.

References

  1. ^ Leslie G. Valiant (1979). "The Complexity of Computing the Permanent". Theoretical Computer Science (Elsevier) 8 (2): 189–201. doi:10.1016/0304-3975(79)90044-6. 

External links


Wikimedia Foundation. 2010.

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

Look at other dictionaries:

  • Sharp — Sharp, a. [Compar. {Sharper}; superl. {Sharpest}.] [OE. sharp, scharp, scarp, AS. scearp; akin to OS. skarp, LG. scharp, D. scherp, G. scharf, Dan. & Sw. skarp, Icel. skarpr. Cf. {Escarp}, {Scrape}, {Scorpion}.] 1. Having a very thin edge or fine …   The Collaborative International Dictionary of English

  • Sharp — K.K Rechtsform Kabushiki kaisha ISIN JP3359600008[1] Gründung …   Deutsch Wikipedia

  • SHARP —  Pour l’article homophone, voir Sharpe. Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom …   Wikipédia en Français

  • sharp — [ʆɑːp ǁ ʆɑːrp] adjective a sharp increase, fall etc is very sudden and very big: • a sharp rise in interest rates • Unemployment generally brings a sharp fall in income. • The group reported a sharp decline in full year profits. sharply adverb …   Financial and business terms

  • sharp — [shärp] adj. [ME < OE scearp, akin to Ger scharf, ON skarpr < IE * (s)kerb(h) < base * (s)ker , to cut > SHEAR, HARVEST, L caro, flesh] 1. suitable for use in cutting or piercing; having a very thin edge or fine point; keen 2. having… …   English World dictionary

  • sharp — sharp, keen, acute can all mean having a fine point or edge, but it is in several of their extended senses that they are most likely to come into comparison. As applied to persons or their qualities, especially of intellect, all three can… …   New Dictionary of Synonyms

  • Sharp — may refer to: *Sharp (music), a musical notation sign (music|sharp) *Sharp (flour), a flour made from hard wheat *Sharp (set theory) *Sharp (crater), a lunar impact crater *Sharp (material property)An organization: *Sharp Corporation, a Japanese… …   Wikipedia

  • sharp — [adj1] knifelike, cutting aciculate, acuate, acuminate, acuminous, acute, apical, barbed, briery, cuspate, cuspidate, edged, fine, ground fine, honed, horned, jagged, keen, keen edged, knife edged, needlelike, needle pointed, peaked, pointed,… …   New thesaurus

  • sharp — sharp; sharp·en; sharp·en·er; sharp·er; sharp·ie; sharp·ish; sharp·ite; sharp·ly; sharp·ness; sharp·ster; un·sharp; …   English syllables

  • Sharp — Sharp, adv. 1. To a point or edge; piercingly; eagerly; sharply. M. Arnold. [1913 Webster] The head [of a spear] full sharp yground. Chaucer. [1913 Webster] You bite so sharp at reasons. Shak. [1913 Webster] 2. Precisely; exactly; as, we shall… …   The Collaborative International Dictionary of English

  • Sharp EL-8 — von 1971 Der EL 8 von Sharp ist der erste mobile elektronische Taschenrechner der Welt, der in Serie gefertigt wurde. Er wurde im Januar 1971 eingeführt. Die Elektronik ist in vier von Rockwell hergestellten LSI ICs (large scale integration)… …   Deutsch Wikipedia

Share the article and excerpts

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