Introduction
SAT (Boolean satisfiability) is the problem of assigning truth values to variables so that a given Boolean formula becomes true.
A formula is called 2-SAT if it is written in 2-CNF form, that is, as an AND of clauses, where each clause contains exactly two literals.
For example:
The 2-SAT problem can be solved in linear time.
Idea
The main idea is to transform the formula into an implication graph.
A clause