It is shown that the MAX2SAT problem is NP-complete even if every vari
able appears in at most three clauses. However, if every variable appe
ars in at most two clauses, it is shown that it (and even the general
MAXSAT problem) can be solved in linear time. When every variable appe
ars in at most three clauses, we give an exact algorithm for MAXSAT th
at takes at most 0(3(n/2)n) steps where n is the number of variables.
(C) 1998 Published by Elsevier Science B.V.