Definition
2-Colouring Problem
Reduction
Many-One Reduction to 2-SAT
Let be an instance of 2-colouring, i.e. is an undirected graph with vertices and edges .
We construct an instance of 2-SAT with variables of form:
where means that vertex is coloured with the first colour, and means that it is coloured with the second colour.
For every edge , the two clauses force and to have different truth values. Therefore, adjacent vertices receive different colours.
Conversely, if is 2-colourable, then the two colours induce a truth assignment that satisfies every clause in .
Thus, is 2-colourable if and only if is satisfiable, so 2-colouring many-one reduces to 2-SAT.
Completeness ( )
Soundness ( )
If is satisfiable, then for every edge , the clauses and force and to have different truth values. Hence adjacent vertices receive different colours, so is 2-colourable.