fbpx
Wikipedia

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.[1] Each class in the hierarchy is contained within PSPACE. The hierarchy can be defined using oracle machines or alternating Turing machines. It is a resource-bounded counterpart to the arithmetical hierarchy and analytical hierarchy from mathematical logic. The union of the classes in the hierarchy is denoted PH.

Classes within the hierarchy have complete problems (with respect to polynomial-time reductions) that ask if quantified Boolean formulae hold, for formulae with restrictions on the quantifier order. It is known that equality between classes on the same level or consecutive levels in the hierarchy would imply a "collapse" of the hierarchy to that level.

Definitions edit

There are multiple equivalent definitions of the classes of the polynomial hierarchy.

Oracle definition edit

For the oracle definition of the polynomial hierarchy, define

 

where P is the set of decision problems solvable in polynomial time. Then for i ≥ 0 define

 
 
 

where   is the set of decision problems solvable in polynomial time by a Turing machine augmented by an oracle for some complete problem in class A; the classes   and   are defined analogously. For example,  , and   is the class of problems solvable in polynomial time by a deterministic Turing machine with an oracle for some NP-complete problem.[2]

Quantified boolean formulae definition edit

For the existential/universal definition of the polynomial hierarchy, let L be a language (i.e. a decision problem, a subset of {0,1}*), let p be a polynomial, and define

 

where   is some standard encoding of the pair of binary strings x and w as a single binary string. The language L represents a set of ordered pairs of strings, where the first string x is a member of  , and the second string w is a "short" ( ) witness testifying that x is a member of  . In other words,   if and only if there exists a short witness w such that  . Similarly, define

 

Note that De Morgan's laws hold:   and  , where Lc is the complement of L.

Let C be a class of languages. Extend these operators to work on whole classes of languages by the definition

 
 

Again, De Morgan's laws hold:   and  , where  .

The classes NP and co-NP can be defined as  , and  , where P is the class of all feasibly (polynomial-time) decidable languages. The polynomial hierarchy can be defined recursively as

 
 
 

Note that  , and  .

This definition reflects the close connection between the polynomial hierarchy and the arithmetical hierarchy, where R and RE play roles analogous to P and NP, respectively. The analytic hierarchy is also defined in a similar way to give a hierarchy of subsets of the real numbers.

Alternating Turing machines definition edit

An alternating Turing machine is a non-deterministic Turing machine with non-final states partitioned into existential and universal states. It is eventually accepting from its current configuration if: it is in an existential state and can transition into some eventually accepting configuration; or, it is in a universal state and every transition is into some eventually accepting configuration; or, it is in an accepting state.[3]

We define   to be the class of languages accepted by an alternating Turing machine in polynomial time such that the initial state is an existential state and every path the machine can take swaps at most k – 1 times between existential and universal states. We define   similarly, except that the initial state is a universal state.[4]

If we omit the requirement of at most k – 1 swaps between the existential and universal states, so that we only require that our alternating Turing machine runs in polynomial time, then we have the definition of the class AP, which is equal to PSPACE.[5]

Relations between classes in the polynomial hierarchy edit

 
Commutative diagram equivalent to the polynomial time hierarchy. The arrows denote inclusion.

The union of all classes in the polynomial hierarchy is the complexity class PH.

The definitions imply the relations:

 
 
 

Unlike the arithmetic and analytic hierarchies, whose inclusions are known to be proper, it is an open question whether any of these inclusions are proper, though it is widely believed that they all are. If any  , or if any  , then the hierarchy collapses to level k: for all  ,  .[6] In particular, we have the following implications involving unsolved problems:

  • P = NP if and only if P = PH.[7]
  • If NP = co-NP then NP = PH. (co-NP is  .)

The case in which NP = PH is also termed as a collapse of the PH to the second level. The case P = NP corresponds to a collapse of PH to P.

Unsolved problem in computer science:

 

The question of collapse to the first level is generally thought to be extremely difficult. Most researchers do not believe in a collapse, even to the second level.

Relationships to other classes edit

Unsolved problem in computer science:

 

 
Hasse diagram of complexity classes including P, NP, co-NP, BPP, P/poly, PH, and PSPACE

The polynomial hierarchy is an analogue (at much lower complexity) of the exponential hierarchy and arithmetical hierarchy.

It is known that PH is contained within PSPACE, but it is not known whether the two classes are equal. One useful reformulation of this problem is that PH = PSPACE if and only if second-order logic over finite structures gains no additional power from the addition of a transitive closure operator over relations of relations (i.e., over the second-order variables).[8]

If the polynomial hierarchy has any complete problems, then it has only finitely many distinct levels. Since there are PSPACE-complete problems, we know that if PSPACE = PH, then the polynomial hierarchy must collapse, since a PSPACE-complete problem would be a  -complete problem for some k.[9]

Each class in the polynomial hierarchy contains  -complete problems (problems complete under polynomial-time many-one reductions). Furthermore, each class in the polynomial hierarchy is closed under  -reductions: meaning that for a class C in the hierarchy and a language  , if  , then   as well. These two facts together imply that if   is a complete problem for  , then  , and  . For instance,  . In other words, if a language is defined based on some oracle in C, then we can assume that it is defined based on a complete problem for C. Complete problems therefore act as "representatives" of the class for which they are complete.

The Sipser–Lautemann theorem states that the class BPP is contained in the second level of the polynomial hierarchy.

Kannan's theorem states that for any k,   is not contained in SIZE(nk).

Toda's theorem states that the polynomial hierarchy is contained in P#P.

Problems edit

  • An example of a natural problem in   is circuit minimization: given a number k and a circuit A computing a Boolean function f, determine if there is a circuit with at most k gates that computes the same function f. Let C be the set of all boolean circuits. The language
     

    is decidable in polynomial time. The language

     
    is the circuit minimization language.   because L is decidable in polynomial time and because, given  ,   if and only if there exists a circuit B such that for all inputs x,  .
  • A complete problem for   is satisfiability for quantified Boolean formulas with k – 1 alternations of quantifiers (abbreviated QBFk or QSATk). This is the version of the boolean satisfiability problem for  . In this problem, we are given a Boolean formula f with variables partitioned into k sets X1, ..., Xk. We have to determine if it is true that
     
    That is, is there an assignment of values to variables in X1 such that, for all assignments of values in X2, there exists an assignment of values to variables in X3, ... f is true? The variant above is complete for  . The variant in which the first quantifier is "for all", the second is "exists", etc., is complete for  . Each language is a subset of the problem obtained by removing the restriction of k – 1 alternations, the PSPACE-complete problem TQBF.
  • A Garey/Johnson-style list of problems known to be complete for the second and higher levels of the polynomial hierarchy can be found in this Compendium.

See also edit

References edit

General references edit

  1. Arora, Sanjeev; Barak, Boaz (2009). Complexity Theory: A Modern Approach. Cambridge University Press. ISBN 978-0-521-42426-4. section 1.4, "Machines as strings and the universal Turing machine" and 1.7, "Proof of theorem 1.9"
  2. A. R. Meyer and L. J. Stockmeyer. The Equivalence Problem for Regular Expressions with Squaring Requires Exponential Space. In Proceedings of the 13th IEEE Symposium on Switching and Automata Theory, pp. 125–129, 1972. The paper that introduced the polynomial hierarchy.
  3. L. J. Stockmeyer. The polynomial-time hierarchy. Theoretical Computer Science, vol.3, pp. 1–22, 1976.
  4. C. Papadimitriou. Computational Complexity. Addison-Wesley, 1994. Chapter 17. Polynomial hierarchy, pp. 409–438.
  5. Michael R. Garey and David S. Johnson (1979). Computers and Intractability: A Guide to the Theory of NP-Completeness. W.H. Freeman. ISBN 0-7167-1045-5. Section 7.2: The Polynomial Hierarchy, pp. 161–167.

Citations edit

  1. ^ Arora and Barak, 2009, pp.97
  2. ^ Completeness in the Polynomial-Time Hierarchy A Compendium, M. Schaefer, C. Umans
  3. ^ Arora and Barak, pp.99–100
  4. ^ Arora and Barak, pp.100
  5. ^ Arora and Barak, pp.100
  6. ^ Arora and Barak, 2009, Theorem 5.4
  7. ^ Hemaspaandra, Lane (2018). "17.5 Complexity classes". In Rosen, Kenneth H. (ed.). Handbook of Discrete and Combinatorial Mathematics. Discrete Mathematics and Its Applications (2nd ed.). CRC Press. pp. 1308–1314. ISBN 9781351644051.
  8. ^ Ferrarotti, Flavio; Van den Bussche, Jan; Virtema, Jonni (2018). "Expressivity Within Second-Order Transitive-Closure Logic". DROPS-IDN/V2/Document/10.4230/LIPIcs.CSL.2018.22. Schloss-Dagstuhl - Leibniz Zentrum für Informatik. doi:10.4230/LIPIcs.CSL.2018.22. S2CID 4903744.
  9. ^ Arora and Barak, 2009, Claim 5.5

polynomial, hierarchy, this, article, includes, list, references, related, reading, external, links, sources, remain, unclear, because, lacks, inline, citations, please, help, improve, this, article, introducing, more, precise, citations, july, 2019, learn, wh. This article includes a list of references related reading or external links but its sources remain unclear because it lacks inline citations Please help improve this article by introducing more precise citations July 2019 Learn how and when to remove this message 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 1 Each class in the hierarchy is contained within PSPACE The hierarchy can be defined using oracle machines or alternating Turing machines It is a resource bounded counterpart to the arithmetical hierarchy and analytical hierarchy from mathematical logic The union of the classes in the hierarchy is denoted PH Classes within the hierarchy have complete problems with respect to polynomial time reductions that ask if quantified Boolean formulae hold for formulae with restrictions on the quantifier order It is known that equality between classes on the same level or consecutive levels in the hierarchy would imply a collapse of the hierarchy to that level Contents 1 Definitions 1 1 Oracle definition 1 2 Quantified boolean formulae definition 1 3 Alternating Turing machines definition 2 Relations between classes in the polynomial hierarchy 3 Relationships to other classes 4 Problems 5 See also 6 References 6 1 General references 6 2 CitationsDefinitions editThere are multiple equivalent definitions of the classes of the polynomial hierarchy Oracle definition edit For the oracle definition of the polynomial hierarchy define D 0 P S 0 P P 0 P P displaystyle Delta 0 mathsf P Sigma 0 mathsf P Pi 0 mathsf P mathsf P nbsp where P is the set of decision problems solvable in polynomial time Then for i 0 define D i 1 P P S i P displaystyle Delta i 1 mathsf P mathsf P Sigma i mathsf P nbsp S i 1 P N P S i P displaystyle Sigma i 1 mathsf P mathsf NP Sigma i mathsf P nbsp P i 1 P c o N P S i P displaystyle Pi i 1 mathsf P mathsf coNP Sigma i mathsf P nbsp where P A displaystyle mathsf P rm A nbsp is the set of decision problems solvable in polynomial time by a Turing machine augmented by an oracle for some complete problem in class A the classes N P A displaystyle mathsf NP rm A nbsp and c o N P A displaystyle mathsf coNP rm A nbsp are defined analogously For example S 1 P N P P 1 P c o N P displaystyle Sigma 1 mathsf P mathsf NP Pi 1 mathsf P mathsf coNP nbsp and D 2 P P N P displaystyle Delta 2 mathsf P mathsf P NP nbsp is the class of problems solvable in polynomial time by a deterministic Turing machine with an oracle for some NP complete problem 2 Quantified boolean formulae definition edit For the existential universal definition of the polynomial hierarchy let L be a language i e a decision problem a subset of 0 1 let p be a polynomial and define p L x 0 1 w 0 1 p x x w L displaystyle exists p L left x in 0 1 left left exists w in 0 1 leq p x right langle x w rangle in L right right nbsp where x w 0 1 displaystyle langle x w rangle in 0 1 nbsp is some standard encoding of the pair of binary strings x and w as a single binary string The language L represents a set of ordered pairs of strings where the first string x is a member of p L displaystyle exists p L nbsp and the second string w is a short w p x displaystyle w leq p x nbsp witness testifying that x is a member of p L displaystyle exists p L nbsp In other words x p L displaystyle x in exists p L nbsp if and only if there exists a short witness w such that x w L displaystyle langle x w rangle in L nbsp Similarly define p L x 0 1 w 0 1 p x x w L displaystyle forall p L left x in 0 1 left left forall w in 0 1 leq p x right langle x w rangle in L right right nbsp Note that De Morgan s laws hold p L c p L c displaystyle left exists p L right rm c forall p L rm c nbsp and p L c p L c displaystyle left forall p L right rm c exists p L rm c nbsp where Lc is the complement of L Let C be a class of languages Extend these operators to work on whole classes of languages by the definition P C p L p is a polynomial and L C displaystyle exists mathsf P mathcal C left exists p L p text is a polynomial and L in mathcal C right nbsp P C p L p is a polynomial and L C displaystyle forall mathsf P mathcal C left forall p L p text is a polynomial and L in mathcal C right nbsp Again De Morgan s laws hold c o P C P c o C displaystyle mathsf co exists mathsf P mathcal C forall mathsf P mathsf co mathcal C nbsp and c o P C P c o C displaystyle mathsf co forall mathsf P mathcal C exists mathsf P mathsf co mathcal C nbsp where c o C L c L C displaystyle mathsf co mathcal C left L c L in mathcal C right nbsp The classes NP and co NP can be defined as N P P P displaystyle mathsf NP exists mathsf P mathsf P nbsp and c o N P P P displaystyle mathsf coNP forall mathsf P mathsf P nbsp where P is the class of all feasibly polynomial time decidable languages The polynomial hierarchy can be defined recursively as S 0 P P 0 P P displaystyle Sigma 0 mathsf P Pi 0 mathsf P mathsf P nbsp S k 1 P P P k P displaystyle Sigma k 1 mathsf P exists mathsf P Pi k mathsf P nbsp P k 1 P P S k P displaystyle Pi k 1 mathsf P forall mathsf P Sigma k mathsf P nbsp Note that N P S 1 P displaystyle mathsf NP Sigma 1 mathsf P nbsp and c o N P P 1 P displaystyle mathsf coNP Pi 1 mathsf P nbsp This definition reflects the close connection between the polynomial hierarchy and the arithmetical hierarchy where R and RE play roles analogous to P and NP respectively The analytic hierarchy is also defined in a similar way to give a hierarchy of subsets of the real numbers Alternating Turing machines definition edit An alternating Turing machine is a non deterministic Turing machine with non final states partitioned into existential and universal states It is eventually accepting from its current configuration if it is in an existential state and can transition into some eventually accepting configuration or it is in a universal state and every transition is into some eventually accepting configuration or it is in an accepting state 3 We define S k P displaystyle Sigma k mathsf P nbsp to be the class of languages accepted by an alternating Turing machine in polynomial time such that the initial state is an existential state and every path the machine can take swaps at most k 1 times between existential and universal states We define P k P displaystyle Pi k mathsf P nbsp similarly except that the initial state is a universal state 4 If we omit the requirement of at most k 1 swaps between the existential and universal states so that we only require that our alternating Turing machine runs in polynomial time then we have the definition of the class AP which is equal to PSPACE 5 Relations between classes in the polynomial hierarchy edit nbsp Commutative diagram equivalent to the polynomial time hierarchy The arrows denote inclusion The union of all classes in the polynomial hierarchy is the complexity class PH The definitions imply the relations S i P D i 1 P S i 1 P displaystyle Sigma i mathsf P subseteq Delta i 1 mathsf P subseteq Sigma i 1 mathsf P nbsp P i P D i 1 P P i 1 P displaystyle Pi i mathsf P subseteq Delta i 1 mathsf P subseteq Pi i 1 mathsf P nbsp S i P c o P i P displaystyle Sigma i mathsf P mathsf co Pi i mathsf P nbsp Unlike the arithmetic and analytic hierarchies whose inclusions are known to be proper it is an open question whether any of these inclusions are proper though it is widely believed that they all are If any S k P S k 1 P displaystyle Sigma k mathsf P Sigma k 1 mathsf P nbsp or if any S k P P k P displaystyle Sigma k mathsf P Pi k mathsf P nbsp then the hierarchy collapses to level k for all i gt k displaystyle i gt k nbsp S i P S k P displaystyle Sigma i mathsf P Sigma k mathsf P nbsp 6 In particular we have the following implications involving unsolved problems P NP if and only if P PH 7 If NP co NP then NP PH co NP is P 1 P displaystyle Pi 1 mathsf P nbsp The case in which NP PH is also termed as a collapse of the PH to the second level The case P NP corresponds to a collapse of PH to P Unsolved problem in computer science P N P displaystyle mathsf P overset mathsf NP nbsp more unsolved problems in computer science The question of collapse to the first level is generally thought to be extremely difficult Most researchers do not believe in a collapse even to the second level Relationships to other classes editSee also PH complexity Relationship to other classes Unsolved problem in computer science P H P S P A C E displaystyle mathsf PH overset mathsf PSPACE nbsp more unsolved problems in computer science nbsp Hasse diagram of complexity classes including P NP co NP BPP P poly PH and PSPACE The polynomial hierarchy is an analogue at much lower complexity of the exponential hierarchy and arithmetical hierarchy It is known that PH is contained within PSPACE but it is not known whether the two classes are equal One useful reformulation of this problem is that PH PSPACE if and only if second order logic over finite structures gains no additional power from the addition of a transitive closure operator over relations of relations i e over the second order variables 8 If the polynomial hierarchy has any complete problems then it has only finitely many distinct levels Since there are PSPACE complete problems we know that if PSPACE PH then the polynomial hierarchy must collapse since a PSPACE complete problem would be a S k P displaystyle Sigma k mathsf P nbsp complete problem for some k 9 Each class in the polynomial hierarchy contains m P displaystyle leq rm m mathsf P nbsp complete problems problems complete under polynomial time many one reductions Furthermore each class in the polynomial hierarchy is closed under m P displaystyle leq rm m mathsf P nbsp reductions meaning that for a class C in the hierarchy and a language L C displaystyle L in mathcal C nbsp if A m P L displaystyle A leq rm m mathsf P L nbsp then A C displaystyle A in mathcal C nbsp as well These two facts together imply that if K i displaystyle K i nbsp is a complete problem for S i P displaystyle Sigma i mathsf P nbsp then S i 1 P N P K i displaystyle Sigma i 1 mathsf P mathsf NP K i nbsp and P i 1 P c o N P K i displaystyle Pi i 1 mathsf P mathsf coNP K i nbsp For instance S 2 P N P S A T displaystyle Sigma 2 mathsf P mathsf NP mathsf SAT nbsp In other words if a language is defined based on some oracle in C then we can assume that it is defined based on a complete problem for C Complete problems therefore act as representatives of the class for which they are complete The Sipser Lautemann theorem states that the class BPP is contained in the second level of the polynomial hierarchy Kannan s theorem states that for any k S 2 displaystyle Sigma 2 nbsp is not contained in SIZE nk Toda s theorem states that the polynomial hierarchy is contained in P P Problems editAn example of a natural problem in S 2 P displaystyle Sigma 2 mathsf P nbsp is circuit minimization given a number k and a circuit A computing a Boolean function f determine if there is a circuit with at most k gates that computes the same function f Let C be the set of all boolean circuits The language L A k B x C N C 0 1 B has at most k gates and A x B x displaystyle L left langle A k B x rangle in mathcal C times mathbb N times mathcal C times 0 1 left B text has at most k text gates and A x B x right right nbsp is decidable in polynomial time The language C M A k C N there exists a circuit B with at most k gates such that A and B compute the same function displaystyle mathit CM left langle A k rangle in mathcal C times mathbb N left begin matrix text there exists a circuit B text with at most k text gates text such that A text and B text compute the same function end matrix right right nbsp is the circuit minimization language C M S 2 P P P P displaystyle mathit CM in Sigma 2 mathsf P exists mathsf P forall mathsf P mathsf P nbsp because L is decidable in polynomial time and because given A k displaystyle langle A k rangle nbsp A k C M displaystyle langle A k rangle in mathit CM nbsp if and only if there exists a circuit B such that for all inputs x A k B x L displaystyle langle A k B x rangle in L nbsp A complete problem for S k P displaystyle Sigma k mathsf P nbsp is satisfiability for quantified Boolean formulas with k 1 alternations of quantifiers abbreviated QBFk or QSATk This is the version of the boolean satisfiability problem for S k P displaystyle Sigma k mathsf P nbsp In this problem we are given a Boolean formula f with variables partitioned into k sets X1 Xk We have to determine if it is true that X 1 X 2 X 3 f displaystyle exists X 1 forall X 2 exists X 3 ldots f nbsp That is is there an assignment of values to variables in X1 such that for all assignments of values in X2 there exists an assignment of values to variables in X3 f is true The variant above is complete for S k P displaystyle Sigma k mathsf P nbsp The variant in which the first quantifier is for all the second is exists etc is complete for P k P displaystyle Pi k mathsf P nbsp Each language is a subset of the problem obtained by removing the restriction of k 1 alternations the PSPACE complete problem TQBF A Garey Johnson style list of problems known to be complete for the second and higher levels of the polynomial hierarchy can be found in this Compendium See also editEXPTIME Exponential hierarchy Arithmetic hierarchyReferences editGeneral references edit Arora Sanjeev Barak Boaz 2009 Complexity Theory A Modern Approach Cambridge University Press ISBN 978 0 521 42426 4 section 1 4 Machines as strings and the universal Turing machine and 1 7 Proof of theorem 1 9 A R Meyer and L J Stockmeyer The Equivalence Problem for Regular Expressions with Squaring Requires Exponential Space In Proceedings of the 13th IEEE Symposium on Switching and Automata Theory pp 125 129 1972 The paper that introduced the polynomial hierarchy L J Stockmeyer The polynomial time hierarchy Theoretical Computer Science vol 3 pp 1 22 1976 C Papadimitriou Computational Complexity Addison Wesley 1994 Chapter 17 Polynomial hierarchy pp 409 438 Michael R Garey and David S Johnson 1979 Computers and Intractability A Guide to the Theory of NP Completeness W H Freeman ISBN 0 7167 1045 5 Section 7 2 The Polynomial Hierarchy pp 161 167 Citations edit Arora and Barak 2009 pp 97 Completeness in the Polynomial Time Hierarchy A Compendium M Schaefer C Umans Arora and Barak pp 99 100 Arora and Barak pp 100 Arora and Barak pp 100 Arora and Barak 2009 Theorem 5 4 Hemaspaandra Lane 2018 17 5 Complexity classes In Rosen Kenneth H ed Handbook of Discrete and Combinatorial Mathematics Discrete Mathematics and Its Applications 2nd ed CRC Press pp 1308 1314 ISBN 9781351644051 Ferrarotti Flavio Van den Bussche Jan Virtema Jonni 2018 Expressivity Within Second Order Transitive Closure Logic DROPS IDN V2 Document 10 4230 LIPIcs CSL 2018 22 Schloss Dagstuhl Leibniz Zentrum fur Informatik doi 10 4230 LIPIcs CSL 2018 22 S2CID 4903744 Arora and Barak 2009 Claim 5 5 Retrieved from https en wikipedia org w index php title Polynomial hierarchy amp oldid 1196336821, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.