GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 30

Complexity of two-SAT and three-SAT

Theory of Computation · Complexity & Reductions · Full GATE CSE 2004 paper

GATE 2004, Q30 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Complexity & Reductions

Question 30, GATE 2004: Which complexity classification applies to 3-SAT and 2-SAT respectively?
Options:
(A) Both in P
(B) Both NP-complete
(C) NP-complete and in P
(D) Undecidable and NP-complete
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: 3-SAT is NP-complete.2-SAT is decidable in polynomial time, for example by strongly connected components of its implication graph, so C. These classifications are established without assuming P≠NP; saying 3-SAT is NP-complete is not a proof that it lies outside P.

Step 2: Teaching check: For 2-SAT, clause (u∨v) adds implications ¬u→v and ¬v→u. The formula is unsatisfiable exactly when some variable and its negation occupy one strongly connected component. This polynomial algorithm is why one cannot extend the 3-SAT hardness conclusion to two literals.

Original paper, page 4