In
complexity theory, the counting hierarchy is a
hierarchy
A hierarchy (from Ancient Greek, Greek: , from , 'president of sacred rites') is an arrangement of items (objects, names, values, categories, etc.) that are represented as being "above", "below", or "at the same level as" one another. Hierarchy ...
of
complexity class
In computational complexity theory, a complexity class is a set (mathematics), set of computational problems "of related resource-based computational complexity, complexity". The two most commonly analyzed resources are time complexity, time and s ...
es. It is analogous to the
polynomial hierarchy
In computational complexity theory, the polynomial hierarchy (sometimes called the polynomial-time hierarchy) is a hierarchy of complexity classes that generalize the classes NP and co-NP. Each class in the hierarchy is contained within PSPACE. ...
, but with
NP replaced with
PP. It was defined in 1986 by Klaus Wagner.
More precisely, the zero-th level is C
0P =
P, and the (''n''+1)-th level is C
''n''+1P = PP
C''n''P (i.e.,
PP with
oracle
An oracle is a person or thing considered to provide insight, wise counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. If done through occultic means, it is a form of divination.
Descript ...
C
''n''). Thus:
* C
0P = P
* C
1P = PP
* C
2P = PP
PP
* C
3P = PP
PPPP
* ...
The counting hierarchy is contained within
PSPACE
In computational complexity theory, PSPACE is the set of all decision problems that can be solved by a Turing machine using a polynomial amount of space.
Formal definition
If we denote by SPACE(''f''(''n'')), the set of all problems that can ...
. By
Toda's theorem, the
polynomial hierarchy
In computational complexity theory, the polynomial hierarchy (sometimes called the polynomial-time hierarchy) is a hierarchy of complexity classes that generalize the classes NP and co-NP. Each class in the hierarchy is contained within PSPACE. ...
PH is entirely contained in P
PP, and therefore in C
2P = PP
PP.
References
Further reading
*
{{compsci-stub
Complexity classes
Hierarchy