The 2-Satisfiability (2-SAT or 2CNFSAT) problem can be solved in linear (and therefore polynomial) time by constructing an implication graph:
Each clause of the form (a∨b) is equivalent to two implications: $(
eg a \to b)and(
eg b \to a)$.
In the directed implication graph, each variable xi and its negation $
eg x_i$ are represented as vertices, and each implication represents a directed edge.
The formula is satisfiable if and only if no variable xi and its negation $
eg x_ibelongtothesameStronglyConnectedComponent(SCC),whichisequivalenttocheckingdirectedreachabilitybetweenx_iand
eg x_i$.
Since computing strongly connected components or testing reachability takes O(V+E) time using algorithms like Kosaraju's or Tarjan's, the problem is solvable in polynomial time by reduction to directed graph reachability.
Therefore, option (B) is correct.