Jump to content
Wikipedia The Free Encyclopedia

PR (complexity)

From Wikipedia, the free encyclopedia

PR is the complexity class of all primitive recursive functions—or, equivalently, the set of all formal languages that can be decided in time bounded by such a function. This includes addition, multiplication, exponentiation, tetration, etc.

The Ackermann function is an example of a function that is not primitive recursive, showing that PR is strictly contained in R (Cooper 2004:88).

On the other hand, we can "enumerate" any recursively enumerable set (see also its complexity class RE) by a primitive-recursive function in the following sense: given an input ( M , k ) {\displaystyle (M,k)} {\displaystyle (M,k)}, where M {\displaystyle M} {\displaystyle M} is a Turing machine and k {\displaystyle k} {\displaystyle k} is an integer, if M {\displaystyle M} {\displaystyle M} halts within k {\displaystyle k} {\displaystyle k} steps then output M {\displaystyle M} {\displaystyle M}; otherwise output nothing. Then the union of the outputs, over all possible inputs ( M {\displaystyle M} {\displaystyle M} k {\displaystyle k} {\displaystyle k}), is exactly the set of M {\displaystyle M} {\displaystyle M} that halt.

PR strictly contains ELEMENTARY.

PR does not contain "PR-complete" problems (assuming, e.g., reductions that belong to ELEMENTARY).

Hierarchy

[edit ]

The PR class can be divided into an infinite hierarchy of increasingly large complexity levels, according to the fast-growing hierarchy.

The F 0 {\displaystyle {\text{F}}_{0}} {\displaystyle {\text{F}}_{0}} class is the class of problems that can be solved in n + O ( 1 ) {\displaystyle n+O(1)} {\displaystyle n+O(1)} time. That is, there exists a Turing machine and a constant C {\displaystyle C} {\displaystyle C}, such that given an input of length n {\displaystyle n} {\displaystyle n}, the machine solves it and halts within n + C {\displaystyle n+C} {\displaystyle n+C} steps.

The F 1 {\displaystyle {\text{F}}_{1}} {\displaystyle {\text{F}}_{1}} class is the class of problems that can be solved in p o l y ( n ) {\displaystyle {\mathsf {poly}}(n)} {\displaystyle {\mathsf {poly}}(n)} time.

The F 2 {\displaystyle {\text{F}}_{2}} {\displaystyle {\text{F}}_{2}} class is ELEMENTARY.

The F 3 {\displaystyle {\text{F}}_{3}} {\displaystyle {\text{F}}_{3}} class is TOWER, which can be equivalently written as the class of problems that can be solved in tetration-time.

The union n N F n {\displaystyle \bigcup _{n\in \mathbb {N} }{\text{F}}_{n}} {\displaystyle \bigcup _{n\in \mathbb {N} }{\text{F}}_{n}} is PR.

In practice, many problems that are not in PR but just beyond it are F ω {\displaystyle {\text{F}}_{\omega }} {\displaystyle {\text{F}}_{\omega }}-complete (Schmitz 2016).

References

[edit ]
[edit ]

AltStyle によって変換されたページ (->オリジナル) /