


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!



Def 0.1 Let gSAT be the function that does the following: On input φ (a formula),
The following lemma we leave to the reader.
Lemma 0.2 There exists program P ROGSAT for gSAT that calls a subrou- tine for SAT O(n) times (where n is the number of variables) and, other than those calls, takes O(n^2 ) steps.
THOUGHT EXPERIMENT ONE: I have the code for P ROGSAT and I have code for an ALLEGED SAT algorithm. I run P ROGSAT (φ) using that ALLEGED SAT algorithm for the subroutine. I get an assignment ~b. I evaluate φ(~b) and it is TRUE. I now KNOW that φ ∈ SAT since I have a satisfying assignment for it. The alleged SAT algorithm may be wrong, but it does not matter— I definitly know that φ ∈ SAT.
Theorem 0.3 Let be a well quasi order on formulas such that the follow- ing is true.
(a) Every element of OBS is in SAT. (b) x ∈ SAT iff (∀y ∈ OBS)[y 6 x].
Then one can write down a polynomial time algorithm for SAT.
Proof: THOUGHT EXPERIMENT TWO:‘ You somehow know that ψ /∈ SAT. You then find out that ψ φ. You now KNOW that φ /∈ SAT since, by the premise of the theorem, if φ ∈ SAT and ψ φ, then ψ ∈ SAT. The key to the algorithm is that we will try to get a set OBS′^ that is just as good as OBS for our purposes. We will then use gSAT using the algorithm for SAT obtained by pretending that OBS′^ is really OBS. Let F M L = {ψ 1 , ψ 2 ,.. .} be a list of all formulas. ALGORITHM FOR SAT
Input φ (We want to know if φ is satisfiable.)
KNOW=FALSE.
i = 1.
While KNOW=FALSE DO
Test ψ 1 , ψ 2 ,... , ψi for membership in SAT by brute force. Let OBSi be the subset of {ψ 1 ,... , ψi} that were found to NOT be in SAT. For all y ∈ OBSi test y φ. If there is some y ∈ OBSi such that y φ then we KNOW φ /∈ SAT. Set KNOW to TRUE and ANSWER to NO. (If you are at this state we know that (∀y ∈ OBSi)[y 6 φ].) Pretend that
x ∈ SAT iff (∀y ∈ OBSi)[y 6 x].
This yields a (possibly incorrect) algorithm for SAT. Denote this algorithm SATOBSi. Compute gSAT (φ) using SATOBSi as the alleged SAT algorithm. Let the answer be ~b. If φ(~b) = T RU E then KNOW=TRUE ANSWER=TRUE else i = i + 1
Output ANSWER
Given this reasoning, how come SAT this does not prove SAT in P? Because we do not know of an ordering and an OBS set as specified in the premise. Then why did we go through this excerise? Because it shows a principle that CAN be applied to other problems. The only property of SAT that I used was Lemma 1. A similar lemma holds for V Ck, as you proved on the HW. Hence the nonconstructive algorithm shown for V Ck can be turned into a constructive one. With this in mind, let us recap what we now know
Theorem 0.4 The set of graphs under the ordering minor is a well quasi order. (This is called the GRAPH MINOR THEOREM and was proven in a series of papers by Robertson and Seymour. It is difficult.)
Theorem 0.5 If (X, ) is any WQO and Z ⊆ X is such that (a ∈ Z)∧(b a) → b ∈ Z then there exists a finite set OBS ⊆ Z such that
z ∈ Z iff (∀y ∈ OBS)[y 6 z]. (This proof was easy but NONCONSTRUCTIVE. All we get is that OBS exists, but not how to find it.)
Theorem 0.6 Fix k. There exists a finite set OBS ⊆ V Ck such that
z ∈ V Ck iff (∀y ∈ OBS)[y 6 V Ck]. (This follows easily from Theorem 0.5 above and the fact that V Ck is closed downward under minors.)
Theorem 0.7 The following problem is in O(n^3 ) and we have the code for it: Given (H, G), determine if H is a minor of G.
From Theorems 0.5 and 0.7 we can obtain that THERE EXISTS a poly time algorithm for V Ck that is in time O(n^3 ): Given G, for every H ∈ OBS test if H is a minor of G. Since we do not know OBS this algorithm as stated cannot be used. But we can STILL get code for this algorithm by Theorem 0.3.
Theorem 0.8 Fix k. There is an O(n^3 ) algorithm for V Ck that we can write down. (This follows from Theorems 0.6, 0.7, and the HW that will show that a form of Lemma 0.2 holds for V Ck.)