




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























We know that the following problem is NP -complete:
∃x 1 · · · xn[(x 1 ∨ ¬x 2 ∨ x 4 ) ∧ · · · ∧ (x 1 ∨ ¬x 6 ∨ ¬x 5 )]
(only existential quantifier).
And that this problem is PSPACE -complete:
∀x 1 ∃x 2 ∀x 3 · · · [(x 1 ∨ ¬x 2 ∨ x 4 ) ∧ · · · ∧ (x 1 ∨ ¬x 6 ∨ ¬x 5 )]
(alternating existential and universal quantifiers).
Note ∃x 1 ∃x 2 · · · ∃xk is equivalent to ∃x = [x 1 , x 2 ,... , xk ] ∀x 1 ∀x 2 · · · ∀xk is equivalent to ∀x = [x 1 , x 2 ,... , xk ]
Definition Σi is the class of all languages reducible to deciding the satisfiability of a formula of type
∃x 1 ∀x 2 ∃x 3 · · · R(x 1 , x 2 , x 3 ,.. .)
where there are i alternating quantifiers
Definition Πi is the class of all languages reducible to deciding the satisfiability of a formula of type
∀x 1 ∃x 2 ∀x 3 · · · R(x 1 , x 2 , x 3 ,.. .)
where there are i alternating quantifiers
Definition Σi is the class of all languages reducible to deciding the satisfiability of a formula of type
∃x 1 ∀x 2 ∃x 3 · · · R(x 1 , x 2 , x 3 ,.. .)
where there are i alternating quantifiers
Definition Πi is the class of all languages reducible to deciding the satisfiability of a formula of type
∀x 1 ∃x 2 ∀x 3 · · · R(x 1 , x 2 , x 3 ,.. .)
where there are i alternating quantifiers
Definition
PH =
i
Σi
Some observations
Σ 1 = NP
Σi ⊆ Σi+ 1 and Σi ⊆ Πi+ 1
PH ⊆ PSPACE
Theorem If NP = coNP then PH = NP.
(Prove that Σi = NP by induction on i.)
A probabilistic Turing Machine takes as input a problem instance x and a guess input r. (We can imagine that this input is received from an external “coin tossing device”).
The probability that a machine M with input x will give output z is written
Prob[M(x) = z]
A polynomial probabilistic Turing Machine halts after a polynomial (in the length of the input) number of steps for any guess input.
A probabilistic Turing Machine takes as input a problem instance x and a guess input r. (We can imagine that this input is received from an external “coin tossing device”).
The probability that a machine M with input x will give output z is written
Prob[M(x) = z]
A polynomial probabilistic Turing Machine halts after a polynomial (in the length of the input) number of steps for any guess input.
Theorem RP ⊆ NP.
Proof. Let L be a language in RP. Let M be a polynomial probabilistic Turing Machine that decides L. If x ∈ L, then there exists a sequence of coin tosses y such that M accepts x with y as the guess input. (More than half of all possible sequences of coin tosses have this property.) So we can consider y as a certificate (instead of a guess input). The same machine will verify the certificate in polynomial time. If x ∈/ L, then M rejects x regardless of the guess input (so there is no certificate). So L ∈ NP.
Theorem RP ⊆ NP.
Proof. Let L be a language in RP. Let M be a polynomial probabilistic Turing Machine that decides L. If x ∈ L, then there exists a sequence of coin tosses y such that M accepts x with y as the guess input. (More than half of all possible sequences of coin tosses have this property.) So we can consider y as a certificate (instead of a guess input). The same machine will verify the certificate in polynomial time. If x ∈/ L, then M rejects x regardless of the guess input (so there is no certificate). So L ∈ NP.
Theorem RP ⊆ NP.
Proof. Let L be a language in RP. Let M be a polynomial probabilistic Turing Machine that decides L. If x ∈ L, then there exists a sequence of coin tosses y such that M accepts x with y as the guess input. (More than half of all possible sequences of coin tosses have this property.) So we can consider y as a certificate (instead of a guess input). The same machine will verify the certificate in polynomial time. If x ∈/ L, then M rejects x regardless of the guess input (so there is no certificate). So L ∈ NP.
Theorem RP ⊆ NP.
Proof. Let L be a language in RP. Let M be a polynomial probabilistic Turing Machine that decides L. If x ∈ L, then there exists a sequence of coin tosses y such that M accepts x with y as the guess input. (More than half of all possible sequences of coin tosses have this property.) So we can consider y as a certificate (instead of a guess input). The same machine will verify the certificate in polynomial time. If x ∈/ L, then M rejects x regardless of the guess input (so there is no certificate). So L ∈ NP.
The constant 1/2 in the definition of RP can be replaced by any constant k, 0 < k < 1.
Example: if you had a machine M that accepted x ∈ L with probability 1/3 (and always rejected x ∈ L/ ) how could you design a procedure that accepted x ∈ L with probability 1 /2?
In fact, it is possible to show that a machine that accepts x ∈ L with probability 1/(p(x)) (for any polynomial p) is as good as one accepts x ∈ L with probability 1 − 2 p(x).
The constant 1/2 in the definition of RP can be replaced by any constant k, 0 < k < 1.
Example: if you had a machine M that accepted x ∈ L with probability 1/3 (and always rejected x ∈ L/ ) how could you design a procedure that accepted x ∈ L with probability 1 /2?
In fact, it is possible to show that a machine that accepts x ∈ L with probability 1/(p(x)) (for any polynomial p) is as good as one accepts x ∈ L with probability 1 − 2 p(x).