Question
Consider the decision problem 2CNFSAT defined as follows:
For example, is a Boolean formula and it is in 2CNFSAT.
The decision problem 2CNFSAT is
Official answer and solution
- Official answer
- B
- From
- Official GATE 2014 answer key
Solution
Recall the complexity and algorithmic reduction of the 2-Satisfiability (2-SAT) problem.
-
2-CNF Satisfiability (2-SAT):
In a 2-CNF formula, each clause has at most two literals (e.g., ).
Every such clause is logically equivalent to two implications: -
Reduction to Implication Graph:
- Construct a directed graph where vertices represent all literals ( and ), and directed edges represent the implication rules.
- A formula is satisfiable if and only if no variable and its negation lie in the same Strongly Connected Component (SCC) of .
-
Complexity:
- Finding SCCs in a directed graph takes linear time using Tarjan's or Kosaraju's algorithm.
- Reachability between literals can be checked in polynomial (linear) time.
- Thus, 2CNFSAT is solvable in polynomial time by reduction to directed graph reachability (option B).
-
Other options are incorrect: 3-SAT is NP-complete, but 2-SAT is in P (not NP-complete).
B
Confusing 2-SAT (in P) with 3-SAT (NP-complete).
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 48 of 65, printed as CS Q.38
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.