Skip to content
EntityQ1322138· pop 13· linked from 110 articles

Also known as number P, sharp P, hash P, #P

In computational complexity theory, the complexity class #P (pronounced "sharp P" or, sometimes "number 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 f(x)", where f 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. The most difficult, representative problems of this class are #P-complete.

In the Vinony graph

Vinony's link graph records 110 inbound references to ♯P, and connects out to polynomial hierarchy, ♯P-complete and International Standard Book Number.

It sits within the topics Complexity classes and Restricted titles (leading number sign).

Vinony links it to 13 Wikipedia language editions.

Wikidata facts

Instance of
complexity class
Named after
P
Sources (1)

via Wikidata · CC0

~5 min read

Encyclopedic overview

7 sections
Contents
  • Relation to decision problems
  • Related complexity classes
  • Formal definitions
  • History
  • See also
  • References
  • External links

In computational complexity theory, the complexity class #P (pronounced "sharp P" or, sometimes "number 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 f(x)", where f 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. The most difficult, representative problems of this class are #P-complete.

==Relation to decision problems== An NP decision problem can often be stated in 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 (conjunctive normal form) formula? (Boolean satisfiability problem or SAT) Does a univariate real polynomial have any positive roots? (root finding)

Excerpted from Wikipedia’s “♯P” article, available under the CC BY-SA 4.0 licence.

Categories