# Maximum number of positive literals in 2SAT

MAX 2SAT is NP complete.

Instead of satisfying the maximum number of clauses, I have a fully satisfiable 2SAT formula and I want to have the maximum number of positive literals in the assignment (such that all the clauses are satisfied, of course).

What is the difficulty of this problem?

• Can you edit the question to clarify what you mean? What do you mean by "positive literals in the assignment"? An assignment maps from variables to {True,False}. There are no literals in an assignment.
– D.W.
Commented May 20, 2020 at 4:57
• As a remark to the OP, I added two possible interpretations in a comment to Laakeri's answer. Maybe those could be helpful when editing the question :) Commented May 20, 2020 at 5:37
• I mean if I choose a standard assignment {True,False,True,True,True,False...} how close can I get to this assignment (the number of variables assigned the same way). If I flip the literals in the formula that must be False I can reduce this to the problem where a maximum must be True, then I ask in the question if this can be solved. I don't know how to clarify it though.
– user102180
Commented May 20, 2020 at 7:28

• Maybe I'm missing something, it seems that the OP wants to assign "true" to the maximum number of variables that appear as positive literals in the formula. If we interpret that as "only appear as positive literals" then the problem is in P, as 2-SAT formulas are monotone with respect to variables that appear only as positive literals. If we interpret it as "appear at least once as positive literals", then the formula given by the conjunction of $(\bar{x_u} \lor \bar{x_v})$ for every edge $(u,v)$ and $(x_1 \lor x_2 \ldots \lor x_n)$, works as reduction from MIS. Still upvoted your answer. Commented May 19, 2020 at 17:49