I study complexity and computation independently. I have a problem that I can not solve.
That's the problem:
For the SAT problem, there is a version in which we receive as input phrase $\varphi$ in the form of CNF and we have to decide whether there is a placement in each of the closures $\varphi$ provides at least one literal and does not provide at least one literal. (This version is called NAE-SAT, where NAE is the acronym for Not All Equal).
for example:
- $( x_1 \vee \overline{x_2} \vee x_3 )\wedge (\overline{x_1} \vee \overline{x_2} \vee x_3) \in NAE-SAT$ because for the placement $s(x_1)=T$ , $s(x_2)=T$ and $s(x_3)=T$ it holds that in each clause there is a literal about T and a literal about F, since it will show from the shape: $( T \vee F \vee T )\wedge (F \vee F \vee T )$
- $( x_1 \vee x_2 \vee x_3 )\wedge (\overline{x_1} \vee x_2 \vee x_3) \wedge (\overline{x_1} \vee \overline{x_2} \vee x_3) \wedge (\overline{x_1} \vee x_2 \vee \overline{x_3}) \notin NAE-SAT$. because in every placement for the phrase there will be at least one clause in which all the literals will be provided or all will not be provided, contrary to the requirements of the language.
We would like to show a reduction $ SAT \leq _p NAE-SAT $. Given phrase $\varphi = c_1 \wedge c_2 \wedge \cdots \wedge c_m$ (from the Boolean variables $x_1 , x_2 , \cdots , x_n $) as an instance for the SAT problem, we will first create the new variables $ y_1 , y_2 , \cdots , y_m , z$. Now, for each clause $C_i = (l_{i,1} \vee \cdots \vee l_{i,k_i})$ (which has $k_i \geq 3$ literals) we construct the clauses: $D_{i,1} = (l_{i,1} \vee \cdots \vee l_{i,k_i-1} \vee y_i) $ and $D_{i,2} = ( \overline{y_i} \vee l_{i,k_i} \vee z)$ . Finally, we will define the whole phrase to be $f(\varphi ) = D_{1,1} \wedge D_{1,2} \wedge D_{2,1} \wedge D_{2,2} \wedge \cdots \wedge D_{m,1} \wedge D_{m,2}$.
The question has 3 sections, which are related to each other, so I can not ask each one separately
Section A
For the phrase $\varphi = ( \overline{x_1} \vee x_2 \vee \overline{x_3} \vee x_4 )\wedge (x_1 \vee x_2 \vee x_3)$, what is the phrase FP that will be constructed by the reduction?
$f(\varphi ) = ( \overline{x_1} \vee x_2 \vee \overline{x_3} \vee y_1 )\wedge (\overline{y_1} \vee x_4 \vee z) \wedge (x_1 \vee x_2 \vee y_2) \wedge (\overline{y_2} \vee x_3 \vee z)$
$ f(\varphi ) = ( \overline{y_1} \vee x_4 \vee z) \wedge (x_1 \vee \overline{x_3} \vee y_2) \wedge (y_1 \vee y_2 \vee y_3) \wedge (\overline{y_3} \vee \overline{x_3} \vee z) $
none of the answers is correct.
I think the answer is 1, It's not complicated.
Section B
Is the reduction, as a function of the length of the phrase, polynomial?
- Yes and also linear
- Yes but it is not linear
- This cannot be determined
- No, since the number of new variables we add may increase exponentially depending on the number of original variables
- none of the answers is correct.
I think the answer is yes, so 3 and 4 are certainly incorrect. The reduction takes a phrase in SAT and at most doubles it 2. If in SAT there were m clauses, at the moment there will be 2m clauses. And if in SAT there were n variables, currently in NAE-SAT there will be n + m variables. So in my opinion the correct answer is 1, but I'm not sure here.
Section C Is the reduction correct and defined on each input?
- Yes and yes
- Although the reduction is correct, in the description we do not refer to clauses with less than 3 liters. Nevertheless, it can be easily adapted to the case of 2 literals, and in the case of a single literal is simply rejected, as it will not be possible to simultaneously supply and not supply it.
- The reduction is incorrect and is not defined on the entire input, which is why we do not handle clauses of even length
- Although the reduction is defined on the entire input, it is incorrect.
- none of the answers is correct.
I think the reduction is correct because it is polynomial. And I think it's also defined, because of every clause in SAT you can get 2 clauses in NAE-SAT, but I'm not sure about that. I stand out between answer 1 and answer 2
The question was translated from Hebrew. So I have no source for the question.